/*
 Theme Name: Retrouvaille Child
 Theme URI: https://retrouvaillepanama.com
 Description: Child theme para Retrouvaille Panamá
 Author: Retrouvaille Panamá
 Template: astra
 Version: 1.0
*/

/* ===== VARIABLES DE COLOR ===== */
:root {
  --navy: #1B3A6B;
  --gold: #B8860B;
  --cream: #F9F6F0;
  --dark: #2C2C2C;
  --white: #FFFFFF;
}

/* ===== BASE ===== */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2C2C2C;
  background-color: #FFFFFF;
}

/* ===== ENCABEZADO ===== */

/* Transparente — el color lo definen los wrappers internos */
.site-header,
.ast-header-html-wrap {
  background: transparent !important;
}

#masthead {
  border-top: 12px solid #1B3A6B !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Wrapper exterior: blanco — misma base que el logo */
.main-header-bar-wrap {
  background-color: #FFFFFF !important;
  padding: 0 !important;
}

.main-header-bar {
  background: transparent !important;
  padding: 0 !important;
}

/* Quitar limite de 1200px en el header — logo y nav ocupan 100% */
.main-header-bar .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Ocultar titulo de texto del sitio (solo logo) */
.site-title,
.ast-site-name-wrap,
.site-description,
.ast-header-logo-description,
p.site-description {
  display: none !important;
}

/* Contenedor en columna: fila 1 = logo, fila 2 = menu */
.main-header-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
}

/* Fila 1: Caja del logo — fondo blanco, logo centrado, ancho completo */
.site-branding {
  order: 1 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 14px 24px !important;
  background: #FFFFFF !important;
  margin: 0 !important;
}

/* Ocultar BUSCAR y extras del header en desktop */
.ast-masthead-custom-menu-items {
  display: none !important;
}

/* Fila 2 (escritorio): franja azul marino con navegacion centrada */
#ast-desktop-navigation {
  order: 2 !important;
  background: transparent !important;
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  padding: 0 !important;
  min-height: 54px !important;
  width: 100% !important;
}

/* z-index para sticky header */
#masthead,
.main-header-bar-wrap {
  z-index: 9999 !important;
  position: relative !important;
}

/* Sombra al activarse sticky */
.ast-sticky-active #masthead,
.ast-sticky-active .main-header-bar-wrap {
  box-shadow: 0 3px 12px rgba(27,58,107,0.2) !important;
}

/* ===== NAVEGACIÓN DE ESCRITORIO ===== */
.main-navigation {
  background-color: transparent !important;
  width: auto !important;
  padding: 0 !important;
}

.main-header-menu {
  background: transparent !important;
  height: 100% !important;
}

.main-header-menu .menu-item > a,
.main-header-menu .menu-item > a:focus {
  color: #1B3A6B !important;
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-family: 'Georgia', serif !important;
  padding: 14px 15px !important;
  line-height: 1.2 !important;
}

.main-header-menu .menu-item > a:hover {
  color: #B8860B !important;
  background: transparent !important;
}

.main-header-menu > .menu-item.current-menu-item > a,
.main-header-menu > .menu-item.current_page_item > a {
  color: #B8860B !important;
  border-bottom: 2px solid #B8860B !important;
}

/* ===== HAMBÚRGUER (MÓVIL) ===== */
/* Botón hambúrguer — visible en azul marino */
.menu-toggle,
.ast-button-wrap .menu-toggle,
.ast-mobile-menu-buttons {
  color: #FFFFFF !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  border-radius: 3px !important;
  padding: 6px 10px !important;
}

.menu-toggle:hover { background: rgba(255,255,255,0.1) !important; }

/* Icono SVG del hambúrguer en blanco */
.ast-mobile-menu-buttons svg,
.menu-toggle .mobile-menu-wrap,
.menu-toggle span { color: #FFFFFF !important; fill: #FFFFFF !important; }

/* Menú móvil desplegable — fondo azul marino */
.main-navigation.toggled ul,
.main-navigation.toggled .main-header-menu,
.navigation-accessibility.toggled ul {
  background-color: #1B3A6B !important;
}

.main-navigation.toggled li a,
.navigation-accessibility.toggled li a {
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  padding: 12px 20px !important;
}

.main-navigation.toggled li a:hover,
.navigation-accessibility.toggled li a:hover {
  color: #B8860B !important;
  background: rgba(0,0,0,0.2) !important;
}

/* Submenús */
.main-header-menu .sub-menu {
  background: #0f2347 !important;
}

.main-header-menu .sub-menu li a {
  color: #DDD7CD !important;
  font-size: 12px !important;
  padding: 10px 20px !important;
}

.main-header-menu .sub-menu li a:hover { color: #B8860B !important; }

/* ===== MÓVIL: ajustes adicionales ===== */
@media (max-width: 920px) {
  /* En móvil, #ast-desktop-navigation desaparece (Astra lo oculta)
     Quedará solo la barra azul marino con el hambúrguer */
  .ast-masthead-custom-menu-items {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* ===== LOGO ===== */
.custom-logo { max-height: 80px !important; width: auto !important; }
.site-logo-img a { display: block !important; }

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1B3A6B;
  font-weight: normal;
}

p { line-height: 1.85; font-size: 17px; }

/* ===== BOTONES ===== */
.ast-button, .wp-block-button__link, .btn-retro, input[type="submit"],
.wpcf7-submit, .ast-btn {
  background-color: #B8860B !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 14px 32px !important;
  font-family: 'Georgia', serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  display: inline-block !important;
}

.ast-button:hover, .wp-block-button__link:hover,
.btn-retro:hover, input[type="submit"]:hover, .wpcf7-submit:hover {
  background-color: #1B3A6B !important;
  color: #FFFFFF !important;
}

/* ===== HERO ===== */
.retro-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.retro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27,58,107,0.78) 0%, rgba(27,58,107,0.55) 100%);
  z-index: 1;
}

.retro-hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 850px;
  padding: 60px 30px;
}

.retro-hero h1 {
  color: #FFFFFF;
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.4);
}

.retro-hero .subtitulo {
  font-size: 22px;
  color: #F9F6F0;
  margin-bottom: 35px;
  line-height: 1.6;
}

.retro-hero .btn-hero {
  background-color: #B8860B;
  color: #FFFFFF;
  padding: 16px 44px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: background 0.3s;
  font-family: 'Georgia', serif;
}

.retro-hero .btn-hero:hover {
  background-color: #F9F6F0;
  color: #1B3A6B;
}

/* ===== SECCIONES — paddings equilibrados ===== */
.retro-section { padding: 55px 20px; }
.retro-section-navy { background-color: #1B3A6B; color: #F9F6F0; }
.retro-section-cream { background-color: #F9F6F0; }
.retro-section-white { background-color: #FFFFFF; }
.retro-section-gold  { background-color: #B8860B; color: #FFFFFF; }

.retro-section-navy h1,
.retro-section-navy h2,
.retro-section-navy h3 { color: #F9F6F0; }

.retro-section-navy p { color: #DDD7CD; }

.retro-container {
  max-width: 1100px;
  margin: 0 auto;
}

.retro-section-title {
  text-align: center;
  margin-bottom: 38px;
}

.retro-section-title h2 {
  font-size: 38px;
  margin-bottom: 14px;
}

.retro-section-title .separador {
  width: 60px;
  height: 3px;
  background-color: #B8860B;
  margin: 0 auto 20px;
}

.retro-section-title p {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
  color: #666;
}

.retro-section-navy .retro-section-title p { color: #DDD7CD; }

/* ===== CITAS BÍBLICAS ===== */
.retro-scripture {
  text-align: center;
  padding: 38px 20px;
  background: #F9F6F0;
  border-top: 3px solid #B8860B;
  border-bottom: 3px solid #B8860B;
}

.retro-scripture blockquote {
  font-size: 22px;
  font-style: italic;
  color: #1B3A6B;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
  border: none;
  padding: 0;
}

.retro-scripture cite {
  display: block;
  color: #B8860B;
  font-size: 15px;
  margin-top: 18px;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== TARJETAS - 3 FASES ===== */
.retro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.retro-card {
  background: #FFFFFF;
  padding: 35px 28px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0,0,0,0.07);
  border-top: 4px solid #B8860B;
}

.retro-card-num {
  width: 55px;
  height: 55px;
  background-color: #1B3A6B;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: 'Georgia', serif;
  margin: 0 auto 20px;
}

.retro-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #1B3A6B;
}

.retro-card p { color: #666; line-height: 1.75; font-size: 16px; }

/* ===== DOS COLUMNAS ===== */
.retro-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.retro-two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.retro-two-col h2 { font-size: 34px; margin-bottom: 20px; }

/* ===== PRÓXIMO FIN DE SEMANA ===== */
.retro-prox-fds {
  background: linear-gradient(135deg, #1B3A6B 0%, #0f2347 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 45px 30px;
  border-radius: 4px;
}

.retro-prox-fds h2 {
  color: #B8860B;
  font-size: 38px;
  margin-bottom: 5px;
}

.retro-prox-fds .fecha {
  font-size: 28px;
  font-weight: bold;
  color: #F9F6F0;
  margin: 20px 0;
  letter-spacing: 2px;
}

.retro-prox-fds p {
  font-size: 18px;
  color: #DDD7CD;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TESTIMONIOS ===== */
.retro-testimonial {
  background: #FFFFFF;
  border-left: 5px solid #B8860B;
  padding: 30px 35px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.retro-testimonial p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 10px;
}

.retro-testimonial cite {
  font-style: normal;
  font-weight: bold;
  color: #1B3A6B;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ===== SEPARADOR DECORATIVO ===== */
.retro-divider {
  text-align: center;
  margin: 50px 0;
  color: #B8860B;
  font-size: 20px;
  letter-spacing: 15px;
  opacity: 0.6;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 3px !important;
  font-family: 'Georgia', serif !important;
  font-size: 16px !important;
  margin-bottom: 15px !important;
  color: #333 !important;
}

.wpcf7-form textarea { min-height: 150px !important; }

/* ===== FOOTER ===== */
.site-footer,
#colophon,
.ast-small-footer {
  background-color: #0f2347 !important;
  color: #B8C5D9 !important;
}

.site-footer a,
#colophon a,
.ast-small-footer a {
  color: #B8860B !important;
}

.site-footer a:hover,
#colophon a:hover { color: #F9F6F0 !important; }

/* ===== INFO DE CONTACTO EN FOOTER ===== */
.retro-footer-info {
  text-align: center;
  padding: 40px 20px 20px;
  color: #B8C5D9;
  font-size: 15px;
  line-height: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .retro-two-col { grid-template-columns: 1fr; gap: 30px; }
  .retro-two-col img { height: 280px; }
  .retro-hero h1 { font-size: 34px; }
  .retro-hero .subtitulo { font-size: 18px; }
}

@media (max-width: 600px) {
  .retro-cards { grid-template-columns: 1fr; }
  .retro-section { padding: 50px 15px; }
  .retro-hero { min-height: 500px; }
  .retro-hero h1 { font-size: 28px; }
}

/* ===== PÁGINA INTERIOR ===== */
.retro-page-header {
  background: linear-gradient(to right, #1B3A6B, #0f2347);
  color: #FFFFFF;
  padding: 60px 30px;
  text-align: center;
}

.retro-page-header h1 {
  color: #FFFFFF;
  font-size: 42px;
  margin-bottom: 10px;
}

.retro-page-header p {
  color: #DDD7CD;
  font-size: 18px;
}

/* ===== ASTRA OVERRIDES ===== */
.ast-container { max-width: 1200px !important; }
.entry-content { font-size: 17px; line-height: 1.85; }
.ast-page-builder-template .hentry { padding: 0 !important; }

/* ===== OCULTAR BUSCAR / SEARCH DEL HEADER ===== */
.ast-header-html-wrap,
.ast-search-icon,
.ast-header-search,
.header-search-icon,
[data-section="ast-header-button-1"],
[data-section="ast-header-button-2"],
.ast-builder-layout-element[data-section*="button"],
.ast-builder-layout-element[data-section*="search"] {
  display: none !important;
}
