/*======================================
  Variables Globales
======================================*/
:root {
  --gold: #decaa4;
  --maroon: #8a2036;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333;
  --transition: all 0.3s ease;
  --overlay: rgba(0, 0, 0, 0.4);
}

/*======================================
  Reset y Base
======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--maroon);
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--maroon);
  color: var(--white);
  border: 2px solid var(--maroon);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--maroon);
}

.btn-secondary {
  background-color: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--gold);
}

/*======================================
  Header & Menú
======================================*/
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  padding: 15px 0;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 70px;
  transition: var(--transition);
}
.logo img:hover { transform: scale(1.05); }

.nav {
  display: flex;
}
.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav__item { position: relative; }
.nav__link {
  font-weight: 600;
  color: var(--dark-gray);
  position: relative;
  padding: 5px 0;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--maroon); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--maroon); }

.nav__item--dropdown > .dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}
.nav__item--dropdown:hover > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__link {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
  color: var(--dark-gray);
}
.dropdown__link:hover { background: var(--maroon); color: #fff; }

.sub-dropdown {
  position: absolute;
  top: 0; right: 100%;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden;
  transform: translateX(-10px);
  transition: var(--transition);
  z-index: 1000;
}
.dropdown-item:hover > .sub-dropdown {
  opacity: 1; visibility: visible; transform: translateX(0);
}

.nav-toggle { display: none; }
.nav-toggle__bar {
  width: 25px; height: 3px;
  background: var(--dark-gray);
  margin: 4px 0;
  transition: var(--transition);
}

/*======================================
  Hero Slider
======================================*/
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  margin-top: 100px; /* evita overlap con header */
  overflow: hidden;
}
.slides {
  position: relative;
  width: 100%; height: 100%;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 1s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--overlay);
}
.slide-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}
.slide-content h1 {
  font-size: 3rem; margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slide-content p {
  font-size: 1.2rem; margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.slide-content .btn {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 24px;
  border: none; border-radius: 4px;
  font-weight: 600; letter-spacing: 1px;
  transition: var(--transition);
}
.slide-content .btn:hover {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--white);
  opacity: 0.7; cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--gold); opacity: 1;
}

/*======================================
  Sección de servicios
======================================*/
.services-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 30px; margin-top:50px;
}
.service-card {
  background: var(--white);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow:0 15px 30px rgba(0,0,0,0.2);
}
.service-img { height:200px; overflow:hidden; }
.service-img img {
  width:100%; height:100%; object-fit:cover;
  transition: var(--transition);
}
.service-card:hover .service-img img {
  transform: scale(1.1);
}
.service-content { padding:20px; }
.service-content h3 {
  color: var(--maroon);
  margin-bottom:10px;
  font-size:1.3rem;
}
.service-content p { color:#666; margin-bottom:15px; }
.service-link {
  display:inline-flex;
  align-items:center;
  font-weight:600;
  color:var(--gold);
}
.service-link i { margin-left:5px; transition: var(--transition); }
.service-link:hover i { transform: translateX(5px); }

/*======================================
  Footer y Responsive (igual que antes)
======================================*/
/* ... incluye aquí tus estilos de footer y media queries tal cual los tenías ... */

/*======================================
  Footer
======================================*/
.footer {
  background-color: var(--maroon);
  color: var(--gold);
  padding: 60px 0 20px;
  font-size: 0.9rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  gap: 20px;
}
.footer-section {
  flex: 1 1 200px;
  margin-bottom: 20px;
}
.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
}
.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}
.footer-section p,
.footer-section ul,
.footer-section a {
  color: var(--gold);
  line-height: 1.6;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.footer-section ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}
.footer-section.social a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: var(--transition);
}
.footer-section.social a:hover {
  color: var(--white);
}
/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--gold);
  margin-top: 40px;
  padding-top: 20px;
  color: var(--gold);
}
/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-section {
    flex: 1 1 100%;
  }
}


/*======================================
  Hero Estancia Infantil
======================================*/
.estancia-page .estancia-hero {
  margin-top: 100px;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/slider/Estancia.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.estancia-page .estancia-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  animation: estanciaFadeDown 1s ease-in-out;
}
.estancia-page .estancia-hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: estanciaFadeUp 1.5s ease-in-out;
}
.estancia-page .estancia-hero .btn {
  animation: estanciaFadeUp 2s ease-in-out;
}

@keyframes estanciaFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes estanciaFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/*======================================
  Servicios Destacados
======================================*/
.estancia-page .estancia-features {
  background-color: #f9f3e9;
  padding: 60px 0;
}
.estancia-page .feature-box {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(138, 32, 54, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.estancia-page .feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.estancia-page .feature-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/*======================================
  Grupos por Edad
======================================*/
.estancia-page .age-groups {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.estancia-page .age-group {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 200px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.estancia-page .age-group:hover {
  transform: translateY(-5px);
}
.estancia-page .age-group h4 {
  color: var(--maroon);
  margin-bottom: 10px;
}

/*======================================
  Testimonios
======================================*/
.estancia-page .testimonials {
  background-color: var(--maroon);
  color: white;
  padding: 60px 0;
}
.estancia-page .testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
  margin: 15px 0;
  transition: transform 0.3s ease;
}
.estancia-page .testimonial-card:hover {
  transform: translateY(-5px);
}
.estancia-page .testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}
.estancia-page .testimonial-author {
  font-weight: bold;
}

/*======================================
  Galería
======================================*/
.estancia-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.estancia-page .gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.estancia-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.estancia-page .gallery-item:hover img {
  transform: scale(1.1);
}

/*======================================
  Requisitos e Inscripción
======================================*/
.estancia-page .requirements-list,
.estancia-page .steps-list {
  list-style: none;
  padding-left: 0;
}
.estancia-page .requirements-list li,
.estancia-page .steps-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}
.estancia-page .requirements-list i,
.estancia-page .steps-list i {
  color: var(--maroon);
  margin-right: 10px;
}

/*======================================
  Ubicación
======================================*/
.estancia-page iframe {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


 /* casitas */

.casitas-hero {
  margin-top: 100px;
  height: 70vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/slider/Estancia.jpeg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
}

/* — Directorio de Casitas de Día — */
.directory-section {
  background-color: #fff;
  padding: 60px 0;
}

/* — Directorio de Casitas de Día (2 columnas) — */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.directory-item {
  background: #f9f3e9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.directory-item:hover {
  transform: translateY(-8px);
}

.directory-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

.directory-name {
  font-size: 1.25rem;
  margin: 15px 0 5px;
  color: var(--maroon);
  font-weight: 600;
}

.directory-address {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #666;
}

@media (max-width: 768px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Casitas de Día (página única)
   ============================== */

/* BASE */
body.casitas-page {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #333;
}

/* HERO */
body.casitas-page .casitas-hero {
  margin-top: 100px;
  height: 70vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/Casitas/portada.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  animation: casitasFadeIn 2s ease-in-out;
}
body.casitas-page .casitas-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
body.casitas-page .casitas-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
}

/* TITULARES */
body.casitas-page .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--maroon);
}
body.casitas-page .section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

/* FEATURES GRID */
body.casitas-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
body.casitas-page .feature-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}
body.casitas-page .feature-box:hover {
  transform: translateY(-10px);
}
body.casitas-page .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--maroon);
}

/* GALERÍA */
body.casitas-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
body.casitas-page .gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
body.casitas-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
body.casitas-page .gallery-item:hover img {
  transform: scale(1.1);
}

/* GALERÍA — fondo */
body.casitas-page .gallery-section {
  background-color: #f9f3e9;
  padding: 60px 0; /* opcional para separación */
}

/* ANIMACIÓN EXCLUSIVA */
@keyframes casitasFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== bibliotecas.css (solo estilos únicos) ===== */

/* Página de Bibliotecas (scope exclusivo) */
body.bibliotecas-page {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
}

/* Hero */
body.bibliotecas-page .bibliotecas-hero {
  margin-top: 100px;
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/Bibliotecas/banner.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  animation: bibFadeIn 1.8s ease-in-out;
}
body.bibliotecas-page .bibliotecas-hero .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}
body.bibliotecas-page .bibliotecas-hero .hero-content p {
  font-size: 1.2rem;
}

/* Servicios */
body.bibliotecas-page .bibliotecas-services {
  padding: 80px 0;
}
body.bibliotecas-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
body.bibliotecas-page .service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
body.bibliotecas-page .service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
body.bibliotecas-page .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
body.bibliotecas-page .service-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
body.bibliotecas-page .service-card:hover .service-icon {
  transform: scale(1.2) rotate(-6deg);
}

/* Galería */
body.bibliotecas-page .bibliotecas-gallery {
  background-color: var(--light-gray);
  padding: 60px 0;
}
body.bibliotecas-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
body.bibliotecas-page .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition);
}
body.bibliotecas-page .gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}
body.bibliotecas-page .gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 25px rgba(0,0,0,0.2);
}
body.bibliotecas-page .gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
body.bibliotecas-page .gallery-item:hover img {
  transform: scale(1.08);
}
body.bibliotecas-page .gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--overlay);
  color: var(--white);
  padding: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* Directorio */
body.bibliotecas-page .biblioteca-directory {
  padding: 80px 0;
}
body.bibliotecas-page .directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
body.bibliotecas-page .directory-item {
  background: var(--light-gray);
  border-left: 4px solid var(--maroon);
  padding: 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition);
}
body.bibliotecas-page .directory-item.visible {
  opacity: 1;
  transform: translateX(0);
}
body.bibliotecas-page .directory-item:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: translateX(0) scale(1.02);
}
body.bibliotecas-page .directory-item h3 {
  margin-bottom: 8px;
  color: var(--maroon);
}
body.bibliotecas-page .directory-item p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* Animaciones */
@keyframes bibFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}



/* cosechando.css */

/* ==============================================
   ESTILOS EXCLUSIVOS PARA “Cosechando Bienestar”
   ============================================== */

/* ===== Body & Tipografía ===== */
body.cosecha-page {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-gray);
  background: var(--white);
}

/* ===== Hero ===== */
body.cosecha-page .cosecha-hero {
  margin-top: 100px;
  height: 60vh;
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
    url('../images/Nutricion/huerto.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  animation: cosechaFadeIn 1.8s ease-out;
}
body.cosecha-page .cosecha-hero .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
body.cosecha-page .cosecha-hero .hero-content p {
  font-size: 1.2rem;
}

/* ===== Productos / Servicios ===== */
body.cosecha-page .cosecha-services {
  padding: 80px 0;
  background: var(--light-gray);
}
body.cosecha-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
body.cosecha-page .service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
body.cosecha-page .service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
body.cosecha-page .service-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 15px;
}

/* ===== Galería Mejorada ===== */
body.cosecha-page .cosecha-gallery {
  padding: 60px 0;
  background: var(--light-gray);
}
body.cosecha-page .cosecha-gallery .section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--maroon);
  letter-spacing: 1px;
  position: relative;
}
body.cosecha-page .cosecha-gallery .section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--gold);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}
body.cosecha-page .cosecha-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
}
body.cosecha-page .cosecha-gallery .gallery-item {
  overflow: hidden;
  border-radius: 12px;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.cosecha-page .cosecha-gallery .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}
body.cosecha-page .cosecha-gallery .gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
body.cosecha-page .cosecha-gallery .gallery-item:hover img {
  transform: scale(1.12) rotate(0.5deg);
  filter: brightness(1.1);
}

/* ===== Weekly Banner ===== */
body.cosecha-page .weekly-banner {
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  color: #fff;
  text-align: center;
  padding: 20px 30px;
  margin: 40px auto 0;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-size: 1.25rem;
  font-weight: 600;
  animation: bannerFadeIn 1s ease-out;
}

/* ===== Horario ===== */
body.cosecha-page .cosecha-schedule {
  padding: 80px 0;
}
body.cosecha-page .schedule-info {
  text-align: center;
  font-size: 1.1rem;
  color: var(--maroon);
}

/* ===== Animaciones ===== */
@keyframes cosechaFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body.cosecha-page .cosecha-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
  body.cosecha-page .cosecha-gallery .gallery-item img {
    height: 220px;
  }
}

/* === Noticias: grid de tarjetas === */
/* === Sección de Noticias (aislada) === */
.news-section {
  padding: 60px 0;
}
.news-section .section-title,
.news-section .section-subtitle {
  margin-bottom: 20px;
}

/* Grid de tarjetas */
.news-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Animación de entrada */
@keyframes newsFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tarjeta individual */
.news-section__card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(20px);
  opacity: 0;
  animation: newsFadeInUp 0.5s ease forwards;
}
.news-section__card:nth-child(1) { animation-delay: 0.1s; }
.news-section__card:nth-child(2) { animation-delay: 0.2s; }
.news-section__card:nth-child(3) { animation-delay: 0.3s; }

.news-section__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Imagen de tarjeta */
.news-section__card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-section__card:hover .news-section__card-img {
  transform: scale(1.05);
}

/* Contenido interno */
.news-section__card-content {
  padding: 18px 16px;
}
.news-section__card-title {
  font-size: 1.2rem;
  color: var(--maroon);
  margin: 0 0 6px;
}
.news-section__card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}
.news-section__card-excerpt {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 14px;
}
.news-section__card-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.news-section__card-link:hover {
  border-color: var(--maroon);
}

/* Botón “Ver más noticias” */
.news-section__more {
  text-align: center;
  margin-top: 30px;
}
.btn-news-more {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--maroon);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-news-more:hover {
  background: #660000;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 600px) {
  .news-section__card-img {
    height: 140px;
  }
}

/* Estilos de tipografia */

/* === Gotham Font Face === */
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Regular.woff2') format('woff2'),
       url('fonts/Gotham-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Medium.woff2') format('woff2'),
       url('fonts/Gotham-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Bold.woff2')   format('woff2'),
       url('fonts/Gotham-Bold.woff')    format('woff');
  font-weight: 700;
  font-style: normal;
}


/* === Noticias Subpágina (news.css) === */

/* Entradas animadas */
@keyframes newsFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
body.news-page {
  padding-top: 100px;
}
.news-page__hero {
  background: var(--light-gray);
  padding: 60px 0;
}
.news-page__hero h1 {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 8px;
  animation: newsFadeInUp 0.6s ease forwards;
}
.news-page__hero p {
  font-size: 1rem;
  color: var(--dark-gray);
  animation: newsFadeInUp 0.7s ease forwards;
}

/* Grid de tarjetas */
.news-page__content {
  margin-top: 40px;
  margin-bottom: 60px;
}
.news-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cada tarjeta */
.news-page__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(20px);
  opacity: 0;
  animation: newsFadeInUp 0.5s ease forwards;
}
.news-page__card:nth-child(1) { animation-delay: 0.1s; }
.news-page__card:nth-child(2) { animation-delay: 0.2s; }
.news-page__card:nth-child(3) { animation-delay: 0.3s; }
.news-page__card:nth-child(4) { animation-delay: 0.4s; }

.news-page__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Imagen */
.news-page__card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-page__card:hover .news-page__card-img {
  transform: scale(1.05);
}

/* Contenido */
.news-page__card-content {
  padding: 18px;
}
.news-page__card-title {
  font-size: 1.2rem;
  color: var(--maroon);
  margin: 0 0 6px;
}
.news-page__card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}
.news-page__card-excerpt {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 14px;
}
.news-page__card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.news-page__card-link:hover {
  border-color: var(--maroon);
}

/* Botón “Cargar más” */
.news-page__more {
  text-align: center;
}
.btn-news-more {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--maroon);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-news-more:hover {
  background: #660000;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 600px) {
  .news-page__card-img {
    height: 150px;
  }
}


/* ==============================
   Animación tipo “Galería” para el enlace Más información
   ============================== */
.services-section .service-content {
  /* para posicionar el overlay */
  position: relative;
}

.services-section .service-link {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  color: var(--maroon);
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
}

.services-section .service-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  transform: skewX(-20deg) translateX(0);
  transition: transform 0.5s ease;
  z-index: -1;
}

.services-section .service-link:hover::before {
   transform: skewX(-20deg) translateX(200%);
}

.services-section .service-link:hover {
   color: var(--maroon);    /* texto oscuro sobre dorado */
  transform: scale(1.05);
}

.services-section .service-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.services-section .service-link:hover i {
  transform: translateX(5px);
}

/* ====  ==== */
/* ==== Hover invertido para los rectángulos de Mejora ==== */
/* ==== ==== */

/* ==== Hover invertido para los rectángulos de Mejora ==== */
#page-top .rectangles-container .rectangle {
  /* estado normal ya lo tienes: fondo vino, texto blanco */
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#page-top .rectangles-container .rectangle:hover {
  background-color: var(--white);   /* fondo blanco */
  color: var(--maroon);             /* texto vino */
  transform: scale(1.05);           /* ligero zoom */
}

/* ===== Atención a Adultos Mayores – Estilo Totalmente Interactivo ===== */

body.adultos-page {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  padding-top: 100px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ==== Animación de aparición suave al hacer scroll ==== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.adultos-hero {
  height: 60vh;
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
    url('../images/adultomayor/presi.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.adultos-hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease-out forwards;
}
.adultos-hero-content p {
  font-size: 1.3rem;
  color: var(--white);
  animation: fadeIn 1.5s ease-out forwards;
}

/* Servicios */
.adultos-services {
  padding: 80px 0;
  background: var(--light-gray);
}
.adultos-title,
.adultos-subtitle {
  text-align: center;
}
.adultos-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.adultos-service-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 1;
}
.adultos-service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.adultos-service-icon {
  font-size: 2.8rem;
  color: var(--maroon);
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}
.adultos-service-card:hover .adultos-service-icon {
  transform: scale(1.2) rotate(-6deg);
}

/* Galería animada */
.adultos-gallery {
  padding: 80px 0;
}
.adultos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.adultos-gallery-item {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.adultos-gallery-item:hover {
  transform: scale(1.03) rotateZ(0.5deg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.adultos-gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.adultos-gallery-item:hover img {
  transform: scale(1.08);
}

/* Contacto */
.adultos-contact {
  padding: 60px 0;
  text-align: center;
}
.adultos-contact-info {
  margin: 8px 0;
  font-size: 1.1rem;
  color: var(--dark-gray);
  transition: transform 0.3s ease;
}
.adultos-contact-info:hover {
  transform: scale(1.04);
}
.adultos-contact-info i {
  margin-right: 8px;
  color: var(--maroon);
}

/* Keyframes base */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .adultos-hero-content h1 {
    font-size: 2.2rem;
  }
  .adultos-services-grid,
  .adultos-gallery-grid {
    grid-template-columns: 1fr;
  }
  .adultos-gallery-item img {
    height: 200px;
  }
}

/* ====== Estilos interactivos para Niños Héroes ====== */

body.heroes-page {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  padding-top: 100px;
  scroll-behavior: smooth;
}

/* === Animación scroll general === */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.heroes-hero {
  height: 60vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url('../images/cdc/4.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.heroes-hero-content h1 {
  font-size: 2.8rem;
  color: var(--white);
  animation: heroesFadeInDown 1s ease-out;
}
.heroes-hero-content p {
  font-size: 1.2rem;
  color: var(--white);
  opacity: 0;
  animation: heroesFadeIn 1s ease-out 0.5s forwards;
}

/* Servicios */
.heroes-services {
  padding: 80px 0;
}
.heroes-title,
.heroes-subtitle {
  text-align: center;
}
.heroes-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.heroes-service-card {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.heroes-service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.heroes-service-card:hover .service-icon {
  transform: scale(1.2) rotate(-6deg);
}

/* Galería */
.heroes-gallery {
  padding: 60px 0;
}
.heroes-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.heroes-gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.heroes-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.heroes-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.heroes-gallery-item:hover img {
  transform: scale(1.08);
}

/* Contacto y mapa */
.heroes-contact {
  padding: 60px 0;
  background: var(--light-gray);
}
.heroes-contact-info {
  text-align: center;
  margin: 8px 0;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.heroes-contact-info:hover {
  transform: scale(1.03);
}
.heroes-contact-info i {
  margin-right: 8px;
  color: var(--maroon);
}
.heroes-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Animaciones clave */
@keyframes heroesFadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroesFadeIn {
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .heroes-hero-content h1 { font-size: 2.2rem; }
  .heroes-services-grid,
  .heroes-gallery-grid {
    grid-template-columns: 1fr;
  }
  .heroes-gallery-item img {
    height: 180px;
  }
}


/* ====== Estilos exclusivos para Comedor DIF ====== */
/* ====== Estilos exclusivos para Comedor DIF ====== */
body.comedor-page {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  padding-top: 100px;
}

/* ====== Hero con video de fondo (estilo Apple) ====== */
.comedor-hero-video {
  position: relative;
  width: 100%;
  height: 80vh;          /* Más alto para que se vea más del video */
  min-height: 600px;     /* Asegura un tamaño mínimo */
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Texto pegado al fondo, como en Apple */
  justify-content: center;
  padding-bottom: 80px;  /* Separación inferior del texto */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.comedor-hero-video .comedor-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}

.comedor-hero-video .comedor-hero-content h1,
.comedor-hero-video .comedor-hero-content p {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para destacar el texto */
}

.comedor-hero-video .comedor-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: comedorFadeInDown 1s ease-out;
}

.comedor-hero-video .comedor-hero-content p {
  font-size: 1.25rem;
  animation: comedorFadeIn 1s ease-out 0.5s forwards;
}

/* ====== Sección de Servicios ====== */
.comedor-services {
  padding: 80px 0;
  background: var(--light-gray);
}

.comedor-title,
.comedor-subtitle {
  text-align: center;
}

.comedor-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.comedor-service-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: comedorFadeInUp 0.6s ease forwards;
}

.comedor-service-card:nth-child(1) { animation-delay: 0.2s; }
.comedor-service-card:nth-child(2) { animation-delay: 0.4s; }
.comedor-service-card:nth-child(3) { animation-delay: 0.6s; }

.service-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 15px;
}

/* ====== Sección de Galería ====== */
.comedor-gallery {
  padding: 60px 0;
}

.comedor-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.comedor-gallery-item {
  overflow: hidden;
  border-radius: 8px;
  transform: scale(0.95);
  opacity: 0;
  animation: comedorZoomIn 0.6s ease forwards;
}

.comedor-gallery-item:nth-child(1) { animation-delay: 0.3s; }
.comedor-gallery-item:nth-child(2) { animation-delay: 0.5s; }
.comedor-gallery-item:nth-child(3) { animation-delay: 0.7s; }
.comedor-gallery-item:nth-child(4) { animation-delay: 0.9s; }

.comedor-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ====== Sección de Contacto y Mapa ====== */
.comedor-contact {
  padding: 60px 0;
}

.comedor-contact-info {
  text-align: center;
  margin: 8px 0;
  font-size: 1rem;
}

.comedor-contact-info i {
  margin-right: 8px;
  color: var(--maroon);
}

.comedor-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ====== Animaciones ====== */
@keyframes comedorFadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes comedorFadeIn {
  to { opacity: 1; }
}

@keyframes comedorFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes comedorZoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .comedor-hero-video {
    height: 50vh;
    min-height: 300px;
    padding-bottom: 40px;
  }
  .comedor-hero-video .comedor-hero-content h1 {
    font-size: 2rem;
  }
  .comedor-hero-video .comedor-hero-content p {
    font-size: 1rem;
  }
  .comedor-services-grid,
  .comedor-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Nutrición DIF (aislado) ===== */
body.nutricion-page {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  padding-top: 100px;
}

/* Hero */
.nutricion-hero {
  height: 60vh;
  background:
    linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.6)),
    url('../images/Nutrición/') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
}
.nutricion-hero-content h1 {
  font-size: 2.8rem;
  color: var(--white);
}
.nutricion-hero-content p {
  font-size: 1.2rem;
  color: var(--white);
}

/* Servicios */
.nutricion-services {
  padding: 80px 0;
  background: var(--light-gray);
}
.nutricion-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.nutricion-service-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}
.service-icon {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 15px;
}

/* Galería */
.nutricion-gallery {
  padding: 60px 0;
}
.nutricion-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.nutricion-gallery-item {
  overflow: hidden;
  border-radius: 8px;
}
.nutricion-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Contacto y mapa */
.nutricion-contact {
  padding: 60px 0;
}
.nutricion-contact-info {
  text-align: center;
  margin: 8px 0;
  font-size: 1rem;
}
.nutricion-contact-info i {
  margin-right: 8px;
  color: var(--maroon);
}
.nutricion-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nutricion-hero-content h1 {
    font-size: 2.2rem;
  }
  .nutricion-services-grid,
  .nutricion-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/*  Slider pequeño*/



/* ==== SLIDER DIF PEQUEÑO ELEGANTE Y MODERNO ==== */
.slider-dif {
  position: relative;
  max-width: 960px;
  margin: 40px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background: #fff;
}

.slides-dif {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.slide-dif {
  min-width: 100%;
  transition: opacity 1s ease;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-dif.active {
  position: relative;
  opacity: 1;
}

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

.prev-dif, .next-dif {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.prev-dif:hover, .next-dif:hover {
  background: rgba(255,255,255,0.9);
}

.prev-dif {
  left: 15px;
}

.next-dif {
  right: 15px;
}

.dots-dif {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot-dif {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot-dif.active {
  background: #A40034;
}


/* rehabilitacion.css - Estilos exclusivos para Unidad de Rehabilitación */

/* rehabilitacion.css - Exclusivo para Unidad de Rehabilitación */

/* ===== Variables de Color (scope local) ===== */
.rehabilitacion-page {
  --rehab-maroon: #8a2036;
  --rehab-gold: #decaa4;
  --rehab-light-gray: #f9f3e9;
  --rehab-white: #fff;
  --rehab-dark: #333;
}

/* ===== Tipografía y Fondo ===== */
body.rehabilitacion-page {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--rehab-white);
  color: var(--rehab-dark);
}

/* ===== Hero sin espacio ===== */
body.rehabilitacion-page .rehab-hero {
  margin-top: 0;
  height: 60vh;
  min-height: 400px;
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('../images/ubris/ubris.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body.rehabilitacion-page .rehab-hero .hero-content h1 {
  font-size: 2.8rem;
  color: var(--rehab-white);
  margin-bottom: 0.5rem;
  animation: rehabFadeDown 1s ease-out forwards;
}
body.rehabilitacion-page .rehab-hero .hero-content p {
  font-size: 1.2rem;
  color: var(--rehab-white);
  animation: rehabFadeUp 1.5s ease-out forwards;
}

/* ===== Servicios Dinámicos ===== */
body.rehabilitacion-page .rehab-services {
  padding: 80px 0;
  background-color: var(--rehab-light-gray);
}
body.rehabilitacion-page .rehab-services .section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--rehab-maroon);
  margin-bottom: 1.5rem;
  position: relative;
}
body.rehabilitacion-page .rehab-services .section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--rehab-gold);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}
body.rehabilitacion-page .rehab-services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
body.rehabilitacion-page .rehab-services .service-card {
  background: var(--rehab-white);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
body.rehabilitacion-page .rehab-services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Iconos con borde degradado y pop */
body.rehabilitacion-page .rehab-services .service-icon {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--rehab-maroon);
  background: var(--rehab-light-gray);
  padding: 12px;
  border: 2px solid var(--rehab-gold);
  border-radius: 8px;
  margin-bottom: 15px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
body.rehabilitacion-page .rehab-services .service-card:hover .service-icon {
  background: var(--rehab-gold);
  color: var(--rehab-maroon);
  transform: scale(1.15);
}

body.rehabilitacion-page .rehab-services .service-card h3 {
  font-size: 1.1rem;
  color: var(--rehab-maroon);
  font-weight: 600;
  margin: 0;
}

/* ===== Galería Interactiva ===== */
body.rehabilitacion-page .rehab-gallery {
  padding: 80px 0;
  background: var(--rehab-white);
}
body.rehabilitacion-page .rehab-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
body.rehabilitacion-page .rehab-gallery .gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.6s ease;
}
body.rehabilitacion-page .rehab-gallery .gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}
body.rehabilitacion-page .rehab-gallery .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
body.rehabilitacion-page .rehab-gallery .gallery-item:hover img {
  transform: scale(1.08) rotate(0.5deg);
}

/* ===== Animaciones con prefijo ===== */
@keyframes rehabFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rehabFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
body.rehabilitacion-page .footer {
  background: var(--rehab-maroon);
  color: var(--rehab-gold);
  padding-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body.rehabilitacion-page .rehab-services .services-grid,
  body.rehabilitacion-page .rehab-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
  body.rehabilitacion-page .rehab-gallery .gallery-item img {
    height: 180px;
  }
}
