/* Reseteo básico */
/* =========================
   FUENTE PRINCIPAL: BREVIA
   ========================= */

@font-face {
  font-family: "Brevia";
  src: url("../v2.1/fonts/Brevia-Regular.woff2") format("woff2"),
    url("../v2.1/fonts/Brevia-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brevia";
  src: url("../v2.1/fonts/Brevia-Bold.woff2") format("woff2"),
    url("../v2.1/fonts/Brevia-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Brevia", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* =========================
   Tipografía base del sitio
   ========================= */

html,
body {
  font-family: "Brevia", "Roboto", Arial, sans-serif !important;
}

/* Fuerza Brevia como tipografía real en todo el texto */
/* body, body * {
  font-family: "Brevia", Arial, sans-serif !important;
} */
/* =========================
   Footer con Roboto (override de Brevia)
   ========================= */

#footer,
#footer * {
  font-family: "Roboto", Arial, sans-serif !important;
}

/* Fix Font Awesome: no heredar Brevia en los íconos */
i.fa,
i.fas,
i.far,
i.fab,
i.fa-solid,
i.fa-regular,
i.fa-brands,
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important; /* necesario para solid */
}

/* Asegura herencia sin forzar bold global */
strong,
b,
em,
i,
span,
small,
a,
label,
input,
textarea,
button {
  font-family: inherit !important;
  font-weight: inherit;
}

/* Variables globales */
:root {
  --primary-color: #263e63;
  --secondary-color: #14182e;
  --light-gray: #f5f5f5;
  --dark-gray: #444;
  --text-color: #333;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

p {
  font-size: 1rem;
  font-family: Brevia;
  line-height: 1.5;
  font-weight: 400;
}

li {
  font-size: 1rem;
  font-family: Brevia;
  line-height: 1.5;
  font-weight: 400;
}

h2 {
  font-size: 1.5rem;
  font-family: Brevia;
  line-height: 1.8;
}

/* Imágenes flotantes */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-img {
  position: absolute;
  opacity: 0.9;
  transition: transform 0.1s ease-out;
  animation: float 6s ease-in-out infinite;
}

.floating-img-1 {
  top: 0%;
  left: 0%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
}

.floating-img-2 {
  top: 0%;
  right: 20%;
  width: 45px;
  height: 45px;
  animation-delay: 1.5s;
}



.static-img {
  position: absolute;
  opacity: 0.9;
  transition: transform 0.5s ease-out;
}

.static-img-1 {
  bottom: 50%;
  left: 0%;
  width: 60px;
  height: 60px;
}

.static-img-2 {
  bottom: 50%;
  right: 23%;
  width: 45px;
  height: 45px;
}

.static-img-3 {
  position: absolute;
  bottom: -2%;
  left: 0;
  right: 0;
  width: 100vw;
  height: auto;
  overflow: hidden;
  pointer-events: none;
}

.static-img-3 img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-section {
  overflow-x: hidden;
}


.floating-img-3 {
  top: 28%;
  right: 12%;
  width: 55px;
  height: 55px;

  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}



/* Sección Hero */
.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  background-image:
    linear-gradient(to bottom, rgba(48, 123, 206, 1), rgba(108, 197, 213, 1)),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  color: white;
  z-index: 10;
  overflow: hidden;
}

.header-hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

/* Logo y Navegación */
.navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.navbar-logo {
  max-width: 200px;
  height: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.navbar.scrolled {
  background-color: #263e63;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(38, 62, 99, 0.97);
  z-index: 999;
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.mobile-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 200px;
}

.mobile-menu-link span {
  margin-top: 10px;
  font-weight: 600;
}

.mobile-menu-button {
  width: 100%;
  max-width: 160px;
  height: auto;
}

.mobile-menu-link:hover {
  transform: translateY(-5px);
}

.logo {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.8s forwards;
  position: relative;
  z-index: 10;
  width: 100%;
  margin-bottom: 20px;
  scale: 120%;
}

/* Contenido principal */
.hero-content {
  margin-top: 120px;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  position: relative;
  min-height: 10vh;
  /* Asegura que la sección tenga altura suficiente */
}

.hero-content {
  margin-top: 120px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  /* centra horizontalmente el contenido */
  text-align: center;
}

.hero-column {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centra logo, siluetas y texto */
  gap: 24px;
}

.hero-text {
  max-width: 520px;
  margin: 0 auto;
  background: #313942;
  color: #f0f0f0;
  padding: 10px;
}

.hero-text p {
  text-align: center;
  font-family: Brevia;
    line-height: 1.6;

}


.hero-subtitle {
  color: #FFF;
  text-align: center;
  font-family: Brevia;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 29px;
  /* 181.25% */
}

.hero-nota {
  color: #FFF;
  font-family: Brevia;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 23px;
}

.hero-left-column {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.hero-right-column {
  flex: 0 0 45%;
  padding-left: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  max-width: 100%;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.3s;
}

/* Imágenes responsivas */
.responsive-img {
  max-width: 100%;
  height: auto;
}

/* Tarjetas de características */
.features-container {
  background-color: #172b49;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;

  margin: 0px;
}

.feature-link {
  display: block;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.feature-link:hover {
  transform: translateY(-10px);
}


/* Separador de olas */
.wave-separator {
  position: relative;
  top: 40%;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-separator svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-separator .shape-fill {
  fill: #172b49;
}

/* Sección de contenido */
.content-section {
  padding: 80px 20px;
  background-color: white;
}


/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos gráficos */
.silhouette-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.4s;
  position: relative;
  margin-top: auto;
  /* Empuja el contenedor hacia abajo si hay espacio */
  scale: 105%;
}

.silhouette-img {
  width: 100%;
  height: auto;
  display: block;
}


/* Media queries para responsive - Versión desktop */
@media (min-width: 769px) {
  .header-hero {
    flex-direction: row;
  }

  /* .logo {
  flex: 0 0 45%;
  } */
  .hero-text {
    flex: 0 0 45%;
  }
}

@media (max-width: 992px) {
  .hero-content {
    margin-top: 100px;
  }

  .hero-section {
    background-size: 130% auto;
  }

  .features-container {
    justify-content: center;
  }

  .feature-button {
    max-width: 180px;
  }
}

@media (max-width: 768px) {

  .features-section {
    display: none;
  }
  .relatos-section{
    margin-top: 0px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    min-height: auto;
  }

  .hero-left-column {
    flex: 0 0 100%;
    order: 1;
    align-items: center;
    width: 100%;
  }

  .hero-right-column {
    flex: 0 0 100%;
    order: 2;
    padding-left: 0;
    width: 100%;
    margin-top: 20px;
  }
  .hero-column{
    gap: 4px;
  }

  .hero-section {
    padding-top: 70px;
    padding-bottom: 60px;
    background-size: 100% auto;
  }

  .header-hero {
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    order: 1;
  }

  .logo {
    order: 2;
  }

  .logo img {
    width: 70%;
  }

  .hero-subtitle,
  .hero-nota {
    text-align: center;
  }

  .navbar-logo {
    max-width: 150px;
  }

  .silhouette-container {
    margin-top: 20px;
    max-width: 90%;
    order: 3;
    bottom: 0%;
  }

  .silhouette-img {
    width: 100%;
  }

  .floating-elements {
    width: 90%;
    height: 90%;
    top: -30%;
    left: -10%;
  }

  .floating-img-1 img {
    width: 300px;
    height: 300px;
  }

  .floating-img-1 {
  
    top: -100%;
    left: 0;
  }

  .floating-img-2 img {
    width: 35px;
    height: 55px;
  }

  .floating-img-2 {
    display: none;
    top: 95%;
    right: 58%;
  }

  .floating-img-3 img {
    width: 85px;
    height: 85px;
  }

  .floating-img-3 {
    display: none;
    top: 42%;
    right: 12%;
  }

  .static-img-3{
    width: 100%;
  }
  .static-img-2 img{
   width: 200px;
  }
  .static-img-2{
    display: none;
    bottom: 18%;
    right: 40%;
  }
  
  .static-img-1{
    bottom: 18%;
  }
  .static-img-1 img{
    
    width: 190px;
  }


  /* En pantallas pequeñas, los botones de feature solo son visibles en la sección hero
  cuando el menú no está abierto */
  body.menu-open .features-container {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-content {
    margin-top: 60px;
  }

  .hero-section {
    background-size: 420% auto;
  }

  .hero-title {
    font-size: 1.8rem;
  }
.hero-text{
  padding: 20px !important;
}
  .hero-subtitle {
    font-size: .8rem !important;
    font-family: Brevia;
    line-height: 1.4rem !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    padding: 0 10px 0 10px !important;
  }
  .hero-nota{
    font-size: .7rem !important;
  }
  .logo{
    margin-bottom: 0;
  }

  .quehay-divider{
    display: none !important;
  }

  .quehay-divider-mobile{
    width: 100% !important;
    display: flex !important;
    padding-top: -40px !important;
    margin-top: -120px;
    position: relative;
  }
  .quehay-divider-mobile img{
  width: 100%;
  }

  .relatos-section{
    margin-top: 0px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .relatos-header{
    margin-bottom: 20px !important;
  }
  .relatos-floating{
    top: 2% !important;
    left: -1% !important;
    scale: 80% !important;
  }
  .relatos-divider{
    display: none !important;
  }
  .relatos-divider-mobile{
    width: 100% !important;
    display: flex !important;
    padding-top: 40px !important;
    margin-top: 20px;
  }
  .relatos-divider-mobile img{
  width: 100%;
  }
  .destacado-relatos{
    padding: 20px 40px;
  }
  .tusrecetas-divider{
    display: none;
  }
  .tusrecetas-divider-mobile{
    width: 100% !important;
    display: flex !important;
    position: relative;
    padding-bottom: 20px !important;
    margin-top: 0;
    z-index: 999;
  }
  .tusrecetas-banner{
    margin-bottom: 20px !important;
  }
  .tusrecetas-banner img{
    margin-top: 30px  ;
  }
  .subsection-title{
    text-align: center !important;
  }
  .obras {
    padding: 0 !important;
  }
  .games-section{
    margin-top: -68px !important;
  }
  .tusrecetas-divider-mobile img{
  width: 100%;
  }

  /* =========================================================
   GALERÍA RESPONSIVE (Tus Recetas)
   - Mobile: 1 imagen visible
   - Tablet: 2 imágenes visibles
   - Desktop: 4 imágenes visibles
   ========================================================= */

.gallery-track{
  flex-wrap: nowrap;
}

.gallery-card{
  /* anulamos min-width fijo para que responda a % */
  min-width: 0;
  width: auto;
  flex: 0 0 calc(25% - 20px);
}

.gallery-card img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Tablet */
@media (max-width: 1024px){
  .gallery-card{
    flex-basis: calc(50% - 20px);
  }
}

/* Mobile */
@media (max-width: 767px){
  .gallery-track{
    gap: 16px;
  }
  .gallery-card{
    flex-basis: 100%;
  }
}
  .relatos-description{
    font-size: 1.1rem !important;
    font-family: Brevia;
    line-height: 1.6;
    margin-bottom: 40px !important;
    padding: 0 20px 0 20px !important;
  }
  
  .relatos-title-img{
   max-width: 250px !important;
  }
  .destacado-relatos{
    font-size: 1.8rem !important;
  }
  .polaroid{
    width: 90% !important;
  }

  .relatos-btn-img{
    max-width: 150px !important;
  }
  .faq-modal-inner{
    max-width: 300px !important;
  }

  .features-container {
    gap: 15px;
  }

  .feature-button {
    max-width: 130px;
  }

  .wave-separator svg {
    height: 50px;
  }

  .silhouette-container {
    margin-bottom: -60px;
    max-width: 100%;
    width: 100%;
  }

  .floating-img-1 {
    top: 15%;
    left: 8%;
    width: 40px;
    height: 40px;
  }

  .floating-img-2 {
    top: 80%;
    right: 58%;
  }

  .floating-img-2 img {
    width: 40px;
    height: 40px;
  }

  .floating-img-3 {
    top: 32%;
    right: 12%;
  }

  .floating-img-3 img {
    width: 80px;
    height: 80px;
  }
  .banner-tusrecetas-content {
  flex-direction: column-reverse;
  margin-top: 80px;
  align-items: center !important;
  margin-bottom: 40px;
  }
  .col-iz-tusrecetas{
    align-items: center !important;
  }
  .col-iz-tusrecetas h2{
    font-size: 2rem !important;
  }
  .col-iz-tusrecetas p{
    font-size: .8rem !important;
    text-align: center;
  }
  .col-der-tusrecetas {
  width: 60% !important;
  height: 0;
  }
  .tusrecetas-banner img, .tusrecetas-divider img{
    width: 90%;
  }
  
}

@media (max-width: 400px) {
  .hero-content {
    margin-top: 60px;
  }

  .hero-section {
    background-size: 280% auto;
  }

  .navbar-logo {
    max-width: 120px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-nota {
    font-size: 0.8rem;
  }

  .feature-button {
    max-width: 110px;
  }

  .features-container {
    gap: 10px;
    margin-top: 20px;
  }
  .col-der-tusrecetas {
    width: 60% !important;
    height: 230px !important;
    }

}

/* Estado del menú móvil */
body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  display: block;
}

/* Menú móvil expandido */
@media (max-width: 768px) {
  body.menu-open .navbar {
    background-color: var(--primary-color);
  }

  .menu-toggle {
    display: block;
  }
 
}

/* Sección Relatos de Esperanza */
.relatos-section {
  position: relative;
  width: 100%;
  height: auto;
  background-image:
    linear-gradient(to bottom, rgba(63, 110, 163, 0.8), rgba(111, 148, 205, 0.8)),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  margin-top: -80px;
  z-index: 9;
}



.relatos-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.relatos-header {
  margin-bottom: 60px;
}

.relatos-title-img {
  max-width: 300px;
  height: auto;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.destacado-relatos {
  color: #C9EABB;
  text-align: center;
  font-family: Brevia;
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-bottom: 20px;
}

.relatos-description {
  font-size: 1.2rem;
  font-family: Brevia;
  color: #F1E9DF;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  padding-bottom: 80px;
}

/* Contenedor de polaroids */
.polaroids-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.polaroid {
  background-color: white;
  padding: 20px 20px 40px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 582px;
  opacity: 0;
  border-radius: 8px;
  transform: translateY(50px);
  animation: fadeInUp 0.8s forwards;
}

.polaroid-left {
  transform: translateY(50px) rotate(-3deg);
  animation: fadeInUpRotateLeft 0.8s forwards 0.4s;
}

.polaroid-right {
  transform: translateY(50px) rotate(2deg);
  animation: fadeInUpRotateRight 0.8s forwards 0.6s;
}

.polaroid:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.polaroid-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #f0f0f0;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-text {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Botones de relatos */
.relatos-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.relatos-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.relatos-btn-primary {
  background-color: var(--primary-color);
  color: white;
  animation-delay: 0.8s;
}

.relatos-btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 62, 99, 0.3);
}

.relatos-btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  animation-delay: 1s;
}

.relatos-btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 62, 99, 0.3);
}

/* Imagen flotante en relatos (esquina superior derecha) */
.relatos-section {
  position: relative;
  /* ya lo tienes, lo reforzamos por si acaso */
}

.relatos-floating {
  position: absolute;
  top: 15%;
  left: 5%;
  scale: 120%;
  width: 140px;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  /* reutiliza la animación de las otras flotantes */
  z-index: 2;
}

.relatos-floating img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botones de relatos como imágenes */
.relatos-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.relatos-link {
  display: inline-block;
}

.relatos-btn-img {
  display: block;
  max-width: 230px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.25s ease-in-out;
}

/* Efecto “levantadito” al pasar el mouse; 
   la imagen hover se maneja por JS cambiando el src a *-hover.svg */
.relatos-link:hover .relatos-btn-img {
  transform: translateY(-3px) scale(1.03);
}

/* Separador inferior de relatos */
.relatos-divider {
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.relatos-divider img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  bottom: -120px;
}
/* .relatos-divider-mobile{
  display: none;
} */

.quehay-divider {
  width: 100%;
  margin-top: -145px;
  display: flex;
  justify-content: center;
  position: relative;
  /* top: -350px; */
}

.quehay-divider img {
  width: 100%;
  height: auto;
  display: block;

}




/* Animaciones específicas para polaroids */
@keyframes fadeInUpRotateLeft {
  from {
    opacity: 0;
    transform: translateY(50px) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes fadeInUpRotateRight {
  from {
    opacity: 0;
    transform: translateY(50px) rotate(8deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}

/* Sección de contenido */

/* === Popup Preguntas frecuentes (Relatos) === */
.faq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2100;
}

.faq-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.faq-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1000px;
  top: 10%;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 32px;
  padding: 40px 40px 34px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq-modal-inner {
  display: flex;
  gap: 32px;
  height: 100%;
}

/* Columna izquierda */
.faq-left {
  flex: 2.4;
  overflow-y: auto;
  padding-right: 12px;
}

#faq-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.faq-intro {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Columna derecha: magistrada */
.faq-right {
  flex: 0.6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.faq-right img {
  max-width: 300px;
  max-height: 50vh;
  width: auto;
  display: block;
}

/* Cerrar */
.faq-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Acordeón */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item-open .faq-answer {
  display: block;
}

.faq-item-open .faq-icon {
  transform: rotate(0deg);
}

/* En cerradas, flecha hacia abajo */
.faq-item:not(.faq-item-open) .faq-icon {
  transform: rotate(180deg);
}

/* Responsive popup */
@media (max-width: 900px) {
  .faq-modal-dialog {
    border-radius: 20px;
    padding: 24px 18px 18px;
  }

  .faq-modal-inner {
    flex-direction: column;
    gap: 16px;
  }

  .faq-left {
    padding-right: 0;
  }

  .faq-right {
    justify-content: center;
  }

  .faq-right img {
    max-height: 220px;
  }
}

@media (max-width: 600px) {
  .faq-modal-dialog {
    max-height: 95vh;
  }

  #faq-modal-title {
    font-size: 1.4rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }
}

/* Evitar scroll del body mientras el modal está abierto */
body.faq-open {
  overflow: hidden;
}

/* Ajuste imágenes laterales en modales de salas */
#modal-lactancia .faq-right img,
#modal-infantil .faq-right img {
  max-height: 55vh;
  width: auto;
}


/* Estilos para la sección que hay de nuevo */

/* Separadores wave */
.wave-separator-top {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-separator-bottom {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-separator-top svg,
.wave-separator-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-separator-top .shape-fill,
.wave-separator-bottom .shape-fill {
  fill: #ffffff;
}

/* === Sección multimedia / Qué hay de nuevo === */
.multimedia-section {
  position: relative;
  margin-top: -80px;
  padding: 60px 20px 180px;
  color: #ffffff;
  background-image:
    linear-gradient(180deg, #6b8c54 0%, #369ade 100%),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.multimedia-container {
  max-width: 1200px;
  margin: 0 auto;
}


/* Header de la sección */
.multimedia-header {
  text-align: center;
  margin-bottom: 80px;
}

.multimedia-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.multimedia-description {
  font-size: 1.2rem;
  font-family: Brevia;
  color: #F1E9DF;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.multimedia-title-img {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}


/* Títulos de subsección */
.subsection-title {
  font-size: 1.8rem;
  color: #FFF;
  font-family: Brevia;
  margin-bottom: 40px;
  text-align: left;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.4s;
}

/* Subsección de Noticias */
.news-subsection {
  margin-bottom: 80px;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.news-container {
  display: flex;
  transition: transform 0.3s ease;
  gap: 30px;
}

.news-container>a {
  flex: 0 0 calc(50% - 15px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card {
  height: 500px;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.6s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 1.2rem;
  font-family: Brevia;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 1rem;
  font-family: Brevia;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-date {
  font-size: 0.95rem;
  font-family: Brevia;
  color: #666;
  font-weight: 500;
}

/* =========================
   Noticias responsive mobile
   ========================= */
   @media (max-width: 768px) {

    .news-container {
      gap: 20px; /* menos espacio en móvil */
    }
  
    .news-container > a {
      flex: 0 0 100%;
    }
  
    .news-card {
      height: auto; /* evita altura fija problemática en móvil */
    }
  
    .news-image {
      height: 220px; /* proporción más cómoda en móvil */
    }
  
  }


/* Controles del carrusel */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-btn {
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Botones de carrusel que usan imagen (solo noticias) */
.carousel-btn-image {
  background-color: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  width: auto;
  height: auto;
  box-shadow: none;
}

.carousel-btn-image img {
  display: block;
  width: 60px;
  height: auto;
}

.carousel-btn-image:hover {
  transform: scale(1.05);
  background-color: transparent;
}

.carousel-btn-image:disabled {
  opacity: 0.4;
  transform: none;
}

/* Asegurar tarjetas de noticias coherentes */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* Subsección de Galería */
/* Carrusel Galería */
.gallery-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px;
  position: relative;
}

.gallery-arrows-top {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: 0.2s ease;
}

.gallery-arrow:hover {
  transform: translateY(-3px);
}

.gallery-window {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform .45s ease;
  gap: 20px;
}

.gallery-card {
  width: calc(25% - 20px);
  min-width: 260px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  /* << clave para el overlay */
  cursor: pointer;
}

.gallery-card img {
  width: 288px;
  height: 288px;
  object-fit: cover;
  display: block;
}

.gallery-card p {
  position: absolute;
  inset: 0;
  /* ocupa toda la tarjeta */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  font-family: Brevia;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  /* filtro negro con transparencia */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover p {
  opacity: 1;
  transform: translateY(0);
  font-family: Brevia;
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.gallery-dot.active {
  background: #fff;
  width: 12px;
  height: 12px;
}

/* === Lightbox / Popup Galería === */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 24px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
}

.gallery-lightbox-caption {
  font-size: 1rem;
  font-weight: 600;
  font-family: Brevia;
  color: #1b3b4f;
  text-align: center;
}

/* Botón cerrar */
.gallery-lightbox-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  line-height: 1;
}



@media (max-width: 768px) {
  .gallery-carousel {
    gap: 8px;
  }

  .gallery-card {
    min-width: 220px;
    max-width: 220px;
  }
}


/* Subsección de Videos */
.videos-subsection {
  margin-bottom: 40px;
}

.videos-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.videos-container {
  display: flex;
  transition: transform 0.3s ease;
  gap: 20px;
}

.video-card {
  flex: 0 0 calc(25% - 15px);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 1.4s;
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.play-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  margin-left: 2px;
  /* Ajuste visual para centrar el ícono de play */
}

.video-content {
  padding: 15px;
}

.video-title {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.video-duration {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* Controles del carrusel */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-btn {
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Playlist de videos */
.videos-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.videos-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.videos-thumbs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.video-thumb {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.video-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


/* Responsive Design */
@media (max-width: 768px) {
  .video-card {
    flex: 0 0 calc(50% - 10px);
  }

  .video-thumbnail {
    height: 150px;
  }

  .play-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .video-title {
    font-size: 0.9rem;
  }

  .video-duration {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .video-card {
    flex: 0 0 calc(100% - 10px);
  }

  .video-thumbnail {
    height: 180px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* --- Sticky base para la sección de features --- */
.relatos-features {
  background-image:
    linear-gradient(to bottom, rgba(63, 110, 163, 0.8), rgba(111, 148, 205, 0.8)),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.features-section {
  position: sticky;
  overflow: hidden;
  top: 54px;
  /* aprox. altura de la navbar fija */
  z-index: 900;
}


/* Transiciones suaves sticky */
.features-container {
  transition: padding 0.3s ease, height 0.3s ease;
}

.feature-button {
  width: 100%;
  max-width: 200px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.25s ease-in-out;
}

.feature-button:hover {
  transform: scale(1.05);
}

/* --- MODO COMPACTO CUANDO ESTÁ PEGADA AL TOP --- */
.features-section.sticky-compact .features-container {
  padding: 10px 20px;
  /* antes tenías 40px, lo reducimos */
  gap: 80px;
  /* menos espacio entre botones */
}

/* Botones más pequeños en modo compacto */
.features-section.sticky-compact .feature-button {
  max-width: 140px;
  /* más pequeño que el tamaño de escritorio actual */
}

/* Ocultar la ola cuando la sección está compacta/sticky */
.features-section.sticky-compact .wave-separator {
  display: none;
}

/* =========================
   Sección Tus Recetas
   ========================= */
.tusrecetas-section {
  position: relative;
  margin-top: -5px;
  padding: 80px 20px 120px;
  color: #2b2b2b;
  background-image:
    linear-gradient(180deg, #E5B13A 0%, #E9C46B 100%),
    url("../imagenes/BG-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.tusrecetas-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header título + descripción */
.tusrecetas-header {
  text-align: center;
  margin-bottom: 40px;
}

.obras {
  text-align: center;
  font-size: 1.2rem;
  font-family: Brevia;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 20px 0 20px;
}

.obras span {
  font-weight: 600;
}

.tusrecetas-banner {
  display: flex;
  height: 303px;
  padding: 0px 0 80px 0;
  margin: 10px 0 120px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  align-self: stretch;
  background-color: #00000000;
  position: relative;
  z-index: 5;
}

.banner-tusrecetas-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

}

.col-iz-tusrecetas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.col-der-tusrecetas {
  width: 277px;
  height: 286px;
  aspect-ratio: 123/127;
}

.col-iz-tusrecetas h2 {
  color: #FFF;
  text-align: center;
  font-family: Brevia;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.col-iz-tusrecetas p {
  color: #003B4A;
  font-family: Brevia;
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.tusrecetas-title-img {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}


.tusrecetas-description {
  font-size: 1.2rem;
  font-family: Brevia;
  color: #35353D;
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  
}

.tusrecetas-description p {
  font-size: 1.2rem;
  font-family: Brevia;
  color: #35353D;
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  padding: 0 20px 0 20px !important;
}

.tusrecetas-description span {
  font-weight: 700;
  font-family: Brevia;
}

/* Dos columnas principales */
.tusrecetas-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  /* antes estaba center */
  margin: 80px 0;
}

.tusrecetas-col {
  flex: 1 1 280px;
}

/* Columna de texto y libro como columnas flex para alinear botones al fondo */
.tusrecetas-col-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tusrecetas-col-text p {
  font-size: 1.1rem;
  font-family: Brevia;
  line-height: 1.6;
  margin-bottom: 30px;
}

.tusrecetas-col-text span {
  font-size: 1.1rem;
  font-family: Brevia;
  font-weight: 700;
}

/* Opt-in desactivado */
.tusrecetas-optin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.2rem;
  margin-top: 16px;
  margin-bottom: 24px;
}

.tusrecetas-optin input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #263e63;
}

.tusrecetas-optin a {
  color: #263e63;
  text-decoration: underline;
  font-family: Brevia;
}

/* Botones redondeados genéricos */
.btn-rounded {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  font-family: Brevia !important;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-rounded:hover {
  background-color: #263e63;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tusrecetas-col-book {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-receta,
.btn-book {
  margin-top: auto;
  font-family: Brevia;
}

.btn-rounded[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tusrecetas-book {
  max-width: 460px;
  margin: 0 auto 16px;
}

.tusrecetas-book img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Galería tipo slide horizontal */
.tusrecetas-gallery {
  margin-bottom: 80px;
}

.tusrecetas-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.tusrecetas-subtitle {
  margin-bottom: 28px;
}

.tusrecetas-slider {
  overflow: hidden;
  /* antes overflow-x: auto */
  flex: 1;
  padding-bottom: 10px;
}

.tusrecetas-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.tusrecetas-slide {
  min-width: 260px;
  max-width: 280px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.tusrecetas-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.tusrecetas-slide p {
  padding: 10px 12px 14px;
  font-family: Brevia;
  font-weight: 600;
  font-size: 0.95rem;
  color: #263e63;
}

.tusrecetas-arrow {
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;

  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); */
}

.tusrecetas-arrow img {
  max-width: 70%;
  height: auto;
}

.tusrecetas-arrow:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tusrecetas-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Elementos flotantes + botones extra */
.tusrecetas-extra {
  position: relative;
  margin-bottom: 80px;
  padding: 40px 0;
  z-index: 9;
}

.tusrecetas-float {
  position: absolute;
  bottom: -10px;
  width: 140px;
  pointer-events: none;
  z-index: 4;
  /* Tus Recetas: sin animación continua */

}

/* Tus Recetas: sin animación continua */
.tusrecetas-float {
  animation: none !important;
}

/* Juegos y Salas: sin animación continua */
.games-floating,
.care-floating {
  animation: none !important;
}


.tusrecetas-float-left {
  left: 0;
  scale: 250%;
  bottom: -80px;
}

.tusrecetas-float-right {
  right: 0;
  scale: 230%;
  bottom: -100px;
}

/* Cuando ya deben verse */
.tusrecetas-float.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tusrecetas-extra-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Banner y divisor */
.tusrecetas-banner img,
.tusrecetas-divider img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 500;
}

/* -------------------------
     Responsive Tus Recetas
     ------------------------- */


@media (max-width: 768px) {
  .tusrecetas-section {
    padding: 60px 16px 80px;
  }

  .tusrecetas-main {
    flex-direction: column;
    margin: 0%;
  }
  .tusrecetas-col, .tusrecetas-col-text p{
    text-align: center;
    margin-bottom: 40px;
  }
  .tusrecetas-extra{
    padding: 20px 0;
    margin-bottom: 120px  ;
  }

  .tusrecetas-float {
    width: 110px;
    opacity: 0.85;
  }
}

@media (max-width: 576px) {
  .tusrecetas-float {
    display: none;
  }

  .tusrecetas-slider-track {
    gap: 12px;
  }
}

/* =========================
   Sección Juegos
   ========================= */

.games-section {
  position: relative;
  padding: 80px 0 0;
  color: #ffffff;
  background-image:
    linear-gradient(180deg, #EF833A 0%, #F5A161 100%),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -72px;
  z-index: 400;
}
.wave-divider {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
background-size: cover;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-fill {
  fill: #d04f37; /* color de care-section */
}


.games-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header: título e intro */
.games-header {
  text-align: center;
  margin-bottom: 40px;
}

.games-title-img {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.games-description {
  font-size: 1.1rem;
  font-family: Brevia, "Advent Pro", sans-serif;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 20px 0 22px !important;
  color: #331a10;
}


/* Botones de juegos (reutiliza el estilo de relatos-btn-img) */
.games-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Elemento flotante niño */
.games-floating {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 220px;
  max-width: 35%;
  pointer-events: none;
}

@media (max-width: 900px) {
  .games-floating {
    width: 180px;
    bottom: -20px;
  }
}

@media (max-width: 600px) {
  .games-floating {
    display: none;
  }
}

@media (min-width: 1550px) {
  .games-section {

    margin-top: -140px;
  }

  .quehay-divider {
    margin-top: -275px;
  }

  .wave-separator {
    margin-top: -5px;
  }
}

/* Wave separator específico para Juegos */
.wave-separator-juegos {
  transform: rotate(180deg);
  z-index: 500;
  position: relative;

}

.wave-separator-juegos .shape-fill{
  /* fill: #F5A161; */
  background-image:
    linear-gradient(180deg, #F5A161 0%, #F5A161 100%),
    url("../imagenes/BG-hero.png");

}

.wave-separator-juegos svg {
  position: relative;
  z-index: 1;
}

.wave-separator-juegos .wave-svg {
  display: block;
  width: 100%;
  height: 100px;
  /* ajusta a tu altura real */
}



/* =========================
   Sección Salas de Cuidado
   ========================= */

.care-section {
  position: relative;
  padding: 80px 20px 140px;
  color: #ffffff;
  background-image:
    linear-gradient(180deg, #e25439 0%, #e86f52 100%),
    url("../imagenes/BG-hero.png");
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -100px;
}


.care-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header: título e intro */
.care-header {
  text-align: center;
  margin-bottom: 40px;
}

.care-title-img {
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.care-description {
  font-size: 1.1rem;
  font-family: Brevia, "Advent Pro", sans-serif;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
  color: #331a10;
}

/* Botones (reutiliza estilo de relatos-btn-img) */
.care-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Botones imagen (Salas de Cuidado) - mismo comportamiento que otras secciones */
.care-buttons .sala-btn{
  display: block;                 /* evita comportamiento inline raro */
  width: min(46vw, 230px);        /* 2 por fila en mobile si hay espacio */
  max-width: 230px;
  height: auto;
  cursor: pointer;
  transition: transform .2s ease, opacity .25s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.care-buttons .sala-btn:hover{
  transform: translateY(-3px) scale(1.03);
}

/* Ajuste mobile: más compacto y centrado */
@media (max-width: 600px){
  .care-buttons{
    gap: 14px;                    /* más parecido a otras secciones */
  }

  .care-buttons .sala-btn{
    width: min(80vw, 180px);      /* 1 por fila, tamaño consistente */
    max-width: 180px;
  }
}


/* Elementos flotantes a la derecha */
.care-floating {
  position: absolute;
  pointer-events: none;
}

.care-floating-crib {
  left: 50px;
  bottom: 60px;
  scale: 150%;
  width: 210px;
  max-width: 30%;
}

.care-floating-dad {
  right: 60px;
  bottom: 60px;
  width: 240px;
  max-width: 32%;
  scale: 150%;
}

/* Barra inferior */
.care-footer-bar {
  width: 100%;
  height: 30px;
  background-color: #0d3c68;
  position: relative;
  /* top: -600px; */
}

/* Responsive Salas de Cuidado */
@media (max-width: 900px) {

  .care-floating-crib,
  .care-floating-dad {
    width: 180px;
    right: 0;
  }

  .care-floating-dad {
    right: 120px;
  }
}

@media (max-width: 600px) {
  .care-floating {
    display: none;
  }
  .sala-btn{
    display: inline-block;
  }
}

/* =========================
   Animaciones flotantes sutiles
   ========================= */

/* Animación base */
@keyframes float-soft {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes float-soft-reverse {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Aplicación general */
.floating,
.relatos-floating,
.tusrecetas-float,
.games-floating,
.care-floating {
  animation: float-soft 6s ease-in-out infinite;
  will-change: transform;
}

/* Variaciones para que no se muevan igual */
.floating:nth-of-type(2),
.tusrecetas-float-right,
.care-floating-dad {
  animation: float-soft-reverse 7s ease-in-out infinite;
}

.floating:nth-of-type(3),
.tusrecetas-float-left,
.care-floating-crib {
  animation-duration: 8s;
}

/* Accesibilidad: usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {

  .floating,
  .relatos-floating,
  .tusrecetas-float,
  .games-floating,
  .care-floating {
    animation: none !important;
  }
}

/* =========================
   Animación títulos de sección
   ========================= */

/* Entrada inicial */
@keyframes title-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Respiración sutil */
@keyframes title-breathe {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* Aplicación general a títulos */
.section-title,
.relatos-title-img,
.multimedia-title-img,
.tusrecetas-title-img,
.games-title-img,
.care-title-img {
  animation:
    title-in 0.8s ease-out both,
    title-breathe 6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

/* Pequeña variación para que no todos respiren igual */
.tusrecetas-title-img,
.care-title-img {
  animation-duration: 0.8s, 7s;
}

.games-title-img {
  animation-duration: 0.8s, 5.5s;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {

  .section-title,
  .relatos-title-img,
  .multimedia-title-img,
  .tusrecetas-title-img,
  .games-title-img,
  .care-title-img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* =========================
   GALERÍAS UNIFICADAS
   Aplica a: .gallery-card (grid) y .tusrecetas-slide (slider)
   ========================= */

.gallery-card,
.tusrecetas-slide {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  text-align: center;
  position: relative;
}

/* Imagen cuadrada, misma proporción en ambas */
.gallery-card img,
.tusrecetas-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* cuadrada */
  height: auto;
  object-fit: cover;
  display: block;
}

/* Texto en overlay (mismo estilo en ambas) */
.gallery-card p,
.tusrecetas-slide p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: Brevia;
  margin: 0;
  padding: 12px 10px;

  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Mostrar título al hover */
.gallery-card:hover p,
.tusrecetas-slide:hover p {
  opacity: 1;
  transform: translateY(0);
  font-family: Brevia;
}

/* Accesibilidad: si el elemento contiene link/button */
.gallery-card:focus-within p,
.tusrecetas-slide:focus-within p {
  opacity: 1;
  transform: translateY(0);
  font-family: Brevia;
}

.tusrecetas-slide {
  min-width: 260px;
  max-width: 280px;
}


/* Términos y condiciones */
.terms-list {
  margin: 10px 0 18px;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.terms-list li {
  margin-bottom: 10px;
}

/* ===== Modal Términos: imagen 20% + scroll interno ===== */
#modal-terminos .faq-modal-dialog {
  max-height: 85vh;
  /* alto máximo del popup */
  overflow: hidden;
  /* el scroll será dentro */
}

#modal-terminos .faq-modal-inner {
  display: flex;
  height: 85vh;
  /* asegura área para scroll */
  max-height: 85vh;
}



/* Imagen contenida */
#modal-terminos .faq-right img {

  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

/* Móvil: imagen abajo o fuera si estorba */
@media (max-width: 768px) {
  #modal-terminos .faq-modal-inner {
    height: 85vh;
  }

  #modal-terminos .faq-left {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #modal-terminos .faq-right {
    display: none;
  }
}

/* ===== FIX scroll interno para modales tipo FAQ (incluye Términos) ===== */

/* El modal debe tener altura real (no solo max-height) */
.faq-modal-dialog {
  height: 80vh;
  /* clave: ahora sí existe un alto para calcular overflow */
  max-height: 80vh;
  overflow: hidden;
}

/* El contenedor interno debe poder encogerse dentro del flex */
.faq-modal-inner {
  flex: 1;
  min-height: 0;
  /* clave para que el overflow funcione en hijos */
}

/* El texto debe poder scrollear */
.faq-left {
  min-height: 0;
  /* clave */
  overflow-y: auto;
}

/* =========================
   POPUPS estilo “imagen flotante + contenido compacto”
   Aplica a todos los modales .faq-modal
   ========================= */

/* Caja principal del modal */
.faq-modal-dialog {
  width: min(880px, calc(100% - 80px));
  max-height: 85vh;
  height: auto;
  overflow: hidden;
  border-radius: 28px;
  padding: 0;
}

/* Contenido interno (compacto y centrado) */
.faq-modal-inner {
  position: relative;
  display: block !important;
  /* dejamos de usar 2 columnas */
  height: 85vh;
  /* permite scroll interno */
  max-height: 85vh;
  min-height: 0;
  padding: 70px 70px 60px 70px;
  /* compacto */
  box-sizing: border-box;
}

/* Área de texto centrada y más estrecha */
.faq-left {
  width: min(640px, 100%);
  margin: 0 auto;
  /* centra el bloque */
  max-height: calc(85vh - 130px);
  /* scroll dentro */
  overflow-y: auto;
  padding-right: 14px;
  box-sizing: border-box;
  min-height: 0;
}

/* Imagen flotante (sin ocupar columna) */
.faq-right {
  position: absolute;
  right: 44px;
  /* controla qué tanto entra */
  bottom: 36px;
  width: 220px;
  /* ~20% visual del modal */
  max-width: 22%;
  display: block;
  pointer-events: none;
  /* no estorba clics/scroll */
}

.faq-right img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  display: block;
}

/* Empuja un poco el texto para que no choque con la imagen flotante */
.faq-left {
  padding-right: 180px;
  /* reserva espacio “virtual” para la imagen */
}

/* Botón cerrar como en la captura */
.faq-close {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 5;
}

.destacado-popup {
  color: #4D8627;
  font-family: Brevia;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
}

/* Móvil: ocultamos imagen flotante para que el texto quede limpio */
@media (max-width: 768px) {
  .faq-modal-dialog {
    width: calc(100% - 28px);
    border-radius: 18px;
  }

  .faq-modal-inner {
    padding: 52px 22px 28px 22px;
    height: 85vh;
  }

  .faq-left {
    padding-right: 0;
    max-height: calc(85vh - 90px);
  }

  .faq-right {
    display: none;
  }
}