/*
Theme Name: Awa (Child Theme)
Theme URI: http://wp.themedemo.co/awa
Author: Fox-Themes
Author URI: https://themeforest.net/user/fox-themes
Version: 1.0.0
Description: Child theme de Awa para Studio La Fortuna.
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awa-child
Template: awa
*/

/* = Ajustes de La Fortuna
-------------------------------------------------------------- */

/* --- Responsivo: red de seguridad contra scroll horizontal accidental.
   (El sitio ya es responsive; verificado con emulación móvil real, 0 desbordes.
   El "corte" que aparecía en capturas headless era un artefacto del método de
   captura, no un problema real del sitio.) --- */
html, body { overflow-x: hidden; max-width: 100%; }

/* --- Cabecera: alinear verticalmente logo, menú y redes (menu_style = right) --- */

/* Logo horizontal (wordmark "LA FORTUNA ESTUDIO", ratio ~5:1, ya recortado a su
   tinta). Se fija la altura; el ancho sale solo. 40px se lee bien sin ocupar
   media barra. */
header.right-menu .logo .main-logo,
header.right-menu .logo .logo-hover {
  max-height: 30px;
  width: auto !important;
  height: auto !important;
}

/* Centrar verticalmente todos los elementos de la cabecera en una sola línea */
header.right-menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap;
}

/* El logo no ocupa toda la fila */
header.right-menu .logo {
  float: none !important;
  display: inline-flex;
  align-items: center;
  margin-right: auto; /* empuja menú y redes a la derecha */
}

/* Menú y redes juntos a la derecha, centrados verticalmente */
header.right-menu .topmenu,
header.right-menu .awa-top-social {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
}

/* Centrar las redes sociales con la línea del menú.
   Los iconos son una fuente y quedaban un pelín altos respecto al texto;
   se bajan ~2px para que casen con la línea base del menú. */
header.right-menu .awa-top-social {
  align-self: center;
  margin-top: 8px;
}
header.right-menu .awa-top-social .social,
header.right-menu .awa-top-social ul,
header.right-menu .awa-top-social li {
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

/* --- Hero: titular reducido a subtítulo (el logo grande es el protagonista).
   34px + line-height holgado para que la palabra animada no se deforme/recorte
   mientras se teclea. --- */
.headings.style5 { font-size: 34px !important; line-height: 1.45 !important; }
.headings.style5 * { font-size: inherit !important; line-height: inherit !important; }
@media (max-width: 767px) { .headings.style5 { font-size: 24px !important; } }

/* --- Barra: wordmark de texto "STUDIO LA FORTUNA" (el logo mini se sustituye) --- */
header.right-menu .logo span {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: #222222 !important;
  white-space: nowrap !important;
  text-transform: uppercase;
  line-height: 1 !important;
}

/* --- Logo grande protagonista en la primera vista (hero) --- */
.lf-hero-logo { text-align: center !important; margin-bottom: 34px !important; }
.lf-hero-logo img {
  max-height: 300px !important;
  width: auto !important;
  display: inline-block !important;
}
@media (max-width: 1024px) { .lf-hero-logo img { max-height: 240px !important; } }
@media (max-width: 767px)  { .lf-hero-logo img { max-height: 190px !important; } }

/* --- Títulos de sección (News, Portfolio): mismo estilo para separar bloques --- */
.lf-section-title { text-align: center !important; margin-bottom: 30px !important; }
.lf-section-title h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  margin: 0 !important;
}
/* Espaciado: News se separa de los proyectos; el título Portfolio respira arriba */
.lf-news-section { margin: 30px 0 70px !important; }
.lf-portfolio-title { margin-top: 10px !important; }

/* --- Sección News (flyers diarios): REJILLA de 5 flyers que rotan cada día.
   Formato vertical 9:16 (tipo Instagram Stories, 1080x1920). Todos los flyers
   del día se ven a la vez, sin carrete ni flechas. Adaptable: 5 en fila en
   escritorio, 3 en tablet, 2 en móvil. Sin plugins ni JS. --- */
.lf-news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.lf-news-grid .lf-news-item {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;   /* formato Instagram vertical 1080x1920 */
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 4px;
}
.lf-news-grid .lf-news-item img,
.lf-news-grid .lf-news-item .lf-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* recorta al 9:16 sin deformar */
  display: block;
  transition: transform .4s ease;
}
.lf-news-grid .lf-news-item:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .lf-news-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .lf-news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* --- Preloader: logo de La Fortuna --- */
/* Usa el PNG RECORTADO (adjunto 3340), no el de la cabecera: el original tiene
   ~38% de margen transparente y obligaba a inflar el tamaño para compensar.
   La marca es vertical (665x1056), así que fijamos la ALTURA, no el ancho.
   Ojo: .animsition-loading se anima con scaleout-image (scale .5 -> 1), así que
   al inicio del pulso se ve a la MITAD de lo declarado aquí. */
.animsition-loading {
  background-size: auto 380px !important;
}

@media (max-width: 1024px) {
  .animsition-loading { background-size: auto 280px !important; }
}

@media (max-width: 767px) {
  .animsition-loading { background-size: auto 200px !important; }
}

/* --- Newsletter (call to action): título más sobrio (venía a 40px/800) --- */
.call-to-action.center .title {
  font-size: 24px !important;
  font-weight: 600 !important;
  max-width: 620px !important;
  margin-bottom: 34px !important;
  line-height: 1.4 !important;
}
@media (max-width: 1024px) {
  .call-to-action.center .title { font-size: 22px !important; }
}
@media (max-width: 767px) {
  .call-to-action.center .title { font-size: 19px !important; margin-bottom: 26px !important; }
}

/* --- Anclas del menú (Portfolio -> #portafolio, Contact -> #contacto):
       scroll suave y compensar la altura de la cabecera fija --- */
html { scroll-behavior: smooth; }
#portafolio, #contacto { scroll-margin-top: 100px; }

/* --- Newsletter: casilla y botón a la MISMA altura y pegados (flush) ---
   El botón (.wpcf7-submit) no recibe el estilo alto del tema (ese estilo pide
   un envoltorio que CF7 no genera aquí), así que salía más bajo que la casilla.
   Forzamos ambos a 50px de alto con box-sizing:border-box para que casen. */
.call-to-action.center .form p {
  align-items: stretch !important;
}
.call-to-action.center .form input:not([type="submit"]) {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: top !important;
  border: 2px solid #f05030 !important; /* el plugin lo pinta rosa; forzamos rojo */
}
.call-to-action.center .form .wpcf7-submit {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 26px !important; /* mata el padding 20px 38px del tema que lo hacía alto */
  border: 2px solid #f05030 !important;
  background-color: #f05030 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 40px !important; /* 44px - 4px de borde: centra el texto vertical */
  vertical-align: top !important;
  cursor: pointer !important;
}
@media (max-width: 767px) {
  /* en móvil se apilan: casilla ancho completo y botón debajo con aire */
  .call-to-action.center .form input:not([type="submit"]) {
    width: 100% !important;
    margin-bottom: 14px !important;
  }
}

/* --- Teléfonos de contacto: abajo a la derecha de la sección gris #contacto --- */
#contacto { position: relative; }
.lf-contact-phones {
  position: absolute;
  right: 40px;
  bottom: 30px;
  text-align: right;
  z-index: 3;
  line-height: 1.5;
}
.lf-contact-phones .lf-phones-loc {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}
.lf-contact-phones .lf-phones-loc:first-child { margin-top: 0; }
.lf-contact-phones a {
  display: block;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.lf-contact-phones a:hover { color: #f05030; }

@media (max-width: 991px) {
  /* en tablet/móvil no flota: se coloca centrado debajo del formulario */
  .lf-contact-phones {
    position: static;
    text-align: center;
    margin-top: 40px;
  }
}

/* --- Ajustes teléfonos: anclar al fondo real de la sección y mejorar contraste --- */
#contacto .wpb_column { position: static !important; } /* que #contacto sea el ancla */
.lf-contact-phones { bottom: 40px; right: 50px; }
.lf-contact-phones .lf-phones-loc { color: #444; }
.lf-contact-phones a { color: #1a1a1a; }
