/* ============================================================
   PROYECTO: PATRIA NUEVA - CÓDIGO FINAL UNIFICADO
   ============================================================ */
html {
  scroll-behavior: smooth;
}
:root {
  --p-orange: #fd8549;
  --p-blue: #8ae0e5;
  --p-green: #a7d08c;
  --p-yellow: #ffd966;
  --p-purple: #c3a1e1;
  --dark: #2f3c4c;
  --text: #566476;
  --white: #ffffff;
  --p-azul-rey: #1e3a8a;
}

/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif; /* ¡Adiós Nunito! */
  color: var(--text);
  /* Degradado extendido para que cubra Hero y Nosotros sin saltos */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f3f8ff 25%,
    #eef7f6 50%,
    #fff9f5 75%,
    #ffffff 100%
  );
  overflow-x: hidden;
}
/* Forzar que todos los títulos de servicios y horarios sean iguales */
h1,
h2,
h3,
.section-title,
.calendar-header {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900;
}
.founder-signature-text {
  font-family: "Birthstone", cursive !important;
  font-size: 55px; /* Un poco más grande para que luzca */
}

/* Fondo decorativo */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
  opacity: 0.35;
}
body::before {
  width: 600px;
  height: 500px;
  background: var(--p-orange);
  top: -150px;
  right: -120px;
}
body::after {
  width: 500px;
  height: 500px;
  background: var(--p-blue);
  top: 20%;
  left: -150px;
}

/* ================= HEADER & TOPBAR ================= */
.topbar {
  background: #1e3a8a;
  color: white;
  font-size: 13px;
  width: 100%;
  padding: 8px 0;
}

.topbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Permite que bajen si no caben */
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  display: flex;
  gap: 15px;
  font-size: 16px;
}

/* Header Principal  no se mueve el header */
.main-header {
  background: transparent; /* Eliminamos el blanco sólido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Compatibilidad Safari */
  position: relative;
  top: 0;
  z-index: 2000;
  width: 100%;
  transition: 0.3s;
  /* Opcional: una línea muy fina para dar estructura sin usar blanco */
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: 0.3s;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 130px;
  height: auto;
}

/* Navegación Escritorio */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-list a {
  text-decoration: none;
  font-weight: 800;
  color: var(--dark);
  transition: 0.3s;
}
.nav-list a:hover {
  color: var(--p-orange);
}

.nav-right-group {
  display: block;
  margin-left: 20px;
}
.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* Botón Sándwich (Oculto en PC) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2100;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--p-orange);
  border-radius: 3px;
}

/* Botón Cerrar (Oculto en PC) */
.menu-close {
  display: none;
}

/* ================= HERO SECTION (Escritorio) ================= */
.hero {
  padding: 100px 0;
  position: relative;
}
.hero-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
 /*============================================================
  titulos: Nuevo estilo para títulos hero y secciones (Estilo Patria Nueva)
   ============================================================ */
.titulos {
    color: var(--p-orange) !important; /* El !important asegura que gane al estilo del Hero */
    font-size: 50px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    display: block;
}

/* Variantes de tamaño (Opcional pero recomendado) */
.titulos.sm { font-size: 30px; }
.titulos.md { font-size: 40px; }
.titulos.lg { font-size: 50px; }

.color-letra-azul{ color: var(--p-azul-rey) !important;}
.color-letra-naranja{ color: var(--p-orange) !important;}
/*=============================================================*/

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 550px;
  text-align: center !important;
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px dashed rgba(0, 0, 0, 0.05);
}
.stat-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(253, 133, 73, 0.1);
  color: var(--p-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-text strong {
  display: block;
  font-size: 17px;
  color: var(--dark);
  font-weight: 800;
}
.stat-text span {
  font-size: 13px;
}

.btn-primary {
  background: var(--p-orange);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(253, 133, 73, 0.3);
}

/* Imágenes Hero Escritorio */
.hero-images {
  position: relative;
  height: 520px;
}
.img-main img {
  width: 85%;
  height: 420px;
  object-fit: cover;
  border-radius: 40px;
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.img-sub img {
  width: 65%;
  height: 300px;
  object-fit: cover;
  border-radius: 40px;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 10px solid white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Flotante */
.whatsapp-floater {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 1000;
}

.header-container {
  padding: 0px 76px; /* Reducimos de 10px a 5px arriba y abajo */
  min-height: 70px; /* Forzamos una altura mínima más pequeña si es necesario */
}

/* Ajuste para el sándwich para que no quede pegado a los bordes */
.menu-toggle {
  padding: 5px;
}

/*seccion II*/ /*=============================================================================*/

/*=============================================================================*/

/* ============================================================
   RESPONSIVO MÓVIL (991px o menos)
   ============================================================ */
@media (max-width: 991px) {
    .titulos {
        font-size: 32px; /* Tamaño automático para todos los títulos en móvil */
        margin-bottom: 15px;
    }
    
    .titulos.lg { font-size: 38px; }
  .header-container {
    padding: 5px 15px;
    min-height: 60px;
  }

  .logo img {
    width: 110px;
  }

  .menu-toggle {
    padding: 5px;
  }

  /* Header Fijo en Móvil: Corregido para evitar saltos */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
  }

  /* Intercambio Sándwich / X */
  .menu-toggle {
    display: flex;
  }
  .main-header.menu-open .menu-toggle {
    display: none !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .nav-list a {
    font-size: 26px;
  }

  .menu-close {
    display: flex !important;
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--p-orange);
    color: white !important;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-right-group {
    display: none !important;
  }

  /* HERO MÓVIL - ESPACIADO CORREGIDO */
  .hero {
    padding-top: 220px !important; /* Ajustado para que bajen las letras */
    padding-bottom: 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1.main-title {
    font-size: 40px !important;
    line-height: 1.1;
    margin-top: 0 !important;
    margin-bottom: 20px;
  }

  .hero-description {
    margin: 0 auto 30px;
    font-size: 18px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .stat-group {
    width: 100%;
    justify-content: center;
  }

  /* Arreglo de Imágenes Móvil: Efecto Collage */
  .hero-images {
    height: 380px;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
  }

  .img-main,
  .img-sub {
    position: absolute !important;
  }

  .img-main {
    width: 75% !important;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .img-sub {
    width: 65% !important;
    bottom: 0;
    right: 0;
    z-index: 2;
  }

  .img-main img,
  .img-sub img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  /* Marco blanco grueso para la imagen del frente */
  .img-sub img {
    border: 8px solid white !important;
  }

  /* topbar ajustes */
  .topbar {
    font-size: 10px;
    padding: 5px 0;
  }

  .topbar-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .topbar-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .topbar-left span {
    white-space: nowrap;
  }

  /*==============================================================================*/

  /*==============================================================================*/
}

/* ============================================================
   SECCIÓN DOS: IMPACTO VISUAL IGUAL A SECCIÓN 1 + ICONOS PREMIUM
   ============================================================ */

.about-section {
  padding: 80px 0;
  /* Eliminamos el fondo individual para que se vea el del body */
  background: transparent !important;
  overflow: visible;
  padding-top: 40px !important;
  padding-bottom: 40px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px; /* Gap ajustado para dar espacio */
  max-width: 1200px;
  width: 100%;
  margin: auto;
  margin-top: 0 !important;
  gap: 20px; /* Reduce el espacio entre la imagen y el texto */
}

.about-text,
.about-image {
  flex: 1; /* Ambos ocupan el 50% exacto */
}

/* --- Badge, Título y Descripción --- */
.about-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 0;
  margin-bottom: 15px;
}

.badge-text {
  color: #666;
  font-weight: 500;
  font-size: 16px;
}

.about-text h1.main-title {
  font-size: 55px;
  color: #ff8a5c; /* NARANJA PATRIA NUEVA */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 30px;
}

.about-description {
  font-size: 20px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 35px; /* Más espacio antes de los beneficios */
}

/* --- NUEVO ESTILO DE BENEFICIOS CON ICONOS (Estilo Captura) --- */
.about-features-grid {
  display: flex; /* O grid, dependiendo de tu layout, flex funciona bien aquí */
  flex-direction: column;
  gap: 30px; /* Espacio exacto entre el punto 1 y el 2 de la imagen 1 */
  margin-top: 30px;
}

.feature-item-premium {
  display: flex;
  align-items: center; /* Centrado vertical de icono y texto */
  gap: 15px; /* Espacio entre el icono y el texto como en imagen 1 */
}

.icon-circle {
  /* Ajustamos para que coincida con el tamaño visual de la imagen 1 */
  width: 50px;
  height: 50px;

  /* El fondo ya lo tenías como #f8fbff o blanco */
  background-color: #f8fbff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); /* Sombra suave como en imagen 1 */
  flex-shrink: 0; /* Asegura que no se deforme el círculo */
}

.icon-placeholder {
  font-size: 24px; /* Tamaño del emoji/icono */
}

/* Si usas imágenes o SVG en lugar de emojis: */
.icon-circle img,
.icon-circle svg {
  max-width: 24px;
  height: auto;
}
.feature-content h3 {
  font-size: 17px;
  color: #2d3e50; /* Azul profesional */
  font-weight: 700;
  margin-bottom: 3px; /* Espacio pequeño con la descripción */
}

.feature-content p {
  font-size: 15px;
  color: #777;
  margin: 0;
}

/* --- Botón Outlined 'Nosotros' (Estilo Captura) --- */
.btn-outline {
  display: inline-block;
  padding: 14px 35px;
  border: 2px solid #e1ebf2; /* Mismo color de borde que los iconos */
  border-radius: 50px;
  color: #2d3e50;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #ff8a5c;
  color: #ff8a5c;
  transform: translateY(-3px);
}

/* --- IMAGEN GRANDE (Estilo Sección 1) --- */
.about-image {
  display: flex;
  justify-content: flex-end;
}

.image-frame img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 50px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}
/* Botón Naranja Sólido - Estilo Patria Nueva */
.btn-solid-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ff8a5c; /* Naranja de la captura */
  color: #ffffff !important;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 10px 25px rgba(255, 138, 92, 0.4); /* Sombra difuminada */
  transition: all 0.3s ease;
  border: none;
}

.btn-solid-orange:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 138, 92, 0.5);
}

.btn-icon {
  font-size: 20px;
}
/* Ajuste de iconos circulares para que no choquen con el fondo */
.feature-item-premium .icon-circle {
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* --- AJUSTES MÓVIL --- */
@media (max-width: 991px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .about-text {
    order: 1;
  }
  .about-image {
    order: 2;
  }

  .about-badge {
    justify-content: center;
  }

  .about-text h1.main-title {
    font-size: 36px !important;
    margin-bottom: 20px;
  }

  .feature-item-premium {
    justify-content: center;
    text-align: left; /* Mantenemos el texto alineado a la izquierda dentro del flex centrado */
  }

  .image-frame img {
    max-width: 100%;
    border-radius: 40px;
  }
  .hero {
    padding-bottom: 5px !important;
  }

  .about-section {
    padding-top: 0px !important;
  }

  /* Si las imágenes del collage del hero tienen mucho margen inferior */
  .hero-images {
    margin-bottom: 0;
  }
}

/* ============================================================
   SECCIÓN: MENSAJE DE LA FUNDADORA (CSS PREMIUM)
   ============================================================ */

.founder-premium-section {
  padding: 120px 0;
  /* Unificamos el fondo para que la 'mancha' naranja siga fluyendo */
  background: radial-gradient(
    circle at bottom left,
    rgba(255, 138, 92, 0.12) 0%,
    transparent 40%
  );
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.founder-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* 45/55 para que el texto respire */
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BLOQUE DE ILUSTRACIÓN CON MÁSCARA ORGÁNICA --- */
.illustration-mask {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 520px;
  background: white;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);

  /* Forma orgánica de burbuja para integrar la foto */
  border-radius: 65% 35% 72% 28% / 37% 76% 24% 63%;

  overflow: hidden;
  margin: 0 auto;
  transition: all 0.5s ease;
}

.illustration-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Asegura que la cara se vea */
  transition: transform 0.6s ease;
}

.illustration-mask:hover {
  transform: rotate(-2deg); /* Pequeño giro divertido */
}

/* Burbujas decorativas flotantes */
.bubble-deco {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  opacity: 0.6;
}

.deco-orange {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #ff8a5c 0%, rgba(255, 138, 92, 0.2) 70%);
  bottom: -50px;
  right: -50px;
}

.deco-blue {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #f0f7f8 0%, rgba(240, 247, 248, 0.2) 70%);
  top: -20px;
  left: -20px;
}

/* --- BLOQUE DE TEXTO Y MENSAJE --- */
.quote-header {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 25px;
}

.quote-icon-orange {
  font-size: 50px;
  color: #ff8a5c;
  opacity: 0.2;
}

.quote-sparkles {
  font-size: 28px;
  animation: sparkles 2s infinite ease-in-out;
}

.founder-quote {
  font-size: 20px;
  color: #555;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 40px;
  padding-left: 25px;
}

.founder-signature-group {
  display: flex;
  align-items: center;
  gap: 25px;
}

.founder-signature-text {
  font-family:
    "Birthstone", cursive; /* Fuente manuscrita como la firma de imagen */
  font-size: 45px;
  color: #2d3e50;
  margin: 0;
  line-height: 1;
}

.founder-name {
  font-size: 18px;
  color: #2d3e50;
  font-weight: 800;
  margin: 0;
}

.founder-title {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 991px) {
  .founder-premium-section {
    padding: 60px 0;
  }

  .founder-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .founder-illustration-block {
    order: 2;
  }
  .founder-text-block {
    order: 1;
  }

  .illustration-mask {
    height: 400px;
    border-radius: 50px; /* Simplificamos la forma para mejor visibilidad móvil */
  }

  .quote-header {
    justify-content: center;
  }

  .founder-quote {
    font-size: 18px;
    padding-left: 0;
  }

  .founder-signature-group {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
}

/*  horarios Animación de chispas ✨ */
@keyframes pulse-sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ============================================================
   SECCIÓN IV: SERVICIOS (CORRECCIÓN DE FONDO Y HOVER)
   ============================================================ */
.section-title {
  font-family: "Nunito", sans-serif; /* Consistencia con el body */
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 60px;

  /* Efecto de degradado naranja (Estilo Nuestra Esencia) */
  background: linear-gradient(90deg, #fd8549 0%, #ffab7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Tamaño para Escritorio */
  font-size: 50px;
}

/* Animación sutil para la chispa */
.section-title .sparkle {
  display: inline-block;
  -webkit-text-fill-color: initial; /* Recupera su color original de emoji */
  animation: pulse-sparkle 2s infinite;
}
.services-section {
  padding: 100px 0;
  /* Forzamos transparencia para que se vean las bolitas del body ::before */
  background: transparent !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background: #ffffff; /* Color inicial blanco */
  border: 1px solid #f0f0f0;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  /* Transición suave para todos los cambios (fondo y posición) */
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.badge-time {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-content {
  padding: 35px;
  text-align: left;
}

.service-content h3 {
  font-size: 26px;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.service-content p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 25px;
  transition: color 0.4s ease;
}

.btn-more {
  color: var(--p-orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.4s ease;
}

/* ------------------------------------------------------------
   EFECTO INTERACTIVO: BLANCO A NARANJA ✨
------------------------------------------------------------ */

.service-card:hover {
  background-color: var(--p-orange); /* Cambia fondo a naranja corporativo */
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(253, 133, 73, 0.4);
  border-color: transparent;
}

.service-card:hover .service-image img {
  transform: scale(1.1); /* Zoom suave a la imagen */
}

/* El texto cambia a blanco automáticamente para legibilidad */
.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .btn-more {
  color: #ffffff;
}

.service-card:hover .badge-time {
  background: #ffffff;
  color: var(--p-orange);
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 700px;
  }
  .services-grid {
    gap: 30px;
  }
  .section-title {
    font-size: 32px; /* Tamaño adaptado para pantallas pequeñas */
    margin-bottom: 40px;
    padding: 0 15px; /* Evita que el texto toque los bordes */
  }
}

/* Limpieza de la sección para el fondo general */
.services-section {
  padding: 80px 0;
  background: transparent !important;
  position: relative;
  z-index: 5;
}
/* =====================================================
   HORARIOS ESTILO TARJETA GRANDE (COMPATIBLE CON TU HTML)
   ===================================================== */
/* ====== HACER QUE TODO SEA UNA SOLA TARJETA ====== */

.schedule-grid {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 25px;
  border: 2px solid #8ed1dc;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* todas las filas iguales */

.schedule-card-v2 {
  text-align: center;
  padding: 40px 35px;
  border-bottom: 1px solid #8ed1dc;
  background: #f9fcfd;
}

.schedule-card-v2:last-child {
  border-bottom: none;
}

/* DISPONIBILIDAD */

.calendar-box {
  background: #f9fcfd;
}

.calendar-header {
  font-size: 22px;
  font-weight: 800;
  color: #fd8549;
  margin-bottom: 15px;
}

.calendar-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

/* TEXTO FINAL */

.extra-box {
  background: #ffffff;
}

.extra-box .about-description {
  max-width: 650px;
  margin: auto;
  margin-bottom: 25px;
}
.schedule-icon-wrapper {
  width: 85px;
  height: 85px;

  font-size: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px auto;
}

/* ================= TIMELINE ================= */

.timeline-section {
  padding: 80px 20px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--p-orange), var(--p-green));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-right: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  flex: 1;
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h3 {
  color: var(--p-orange);
  margin-bottom: 10px;
}

.timeline-content ul {
  padding-left: 20px;
  font-size: 14px;
}

/* Última tarjeta destacada */
.timeline-item.final .timeline-content {
  border: 2px solid var(--p-green);
}

/* Animación */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

.section-title .sparkle {
  display: inline-block;

  /* 🔥 CLAVE: quitar el efecto degradado del padre */
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: initial;

  /* Animación opcional */
  animation: pulse-sparkle 2s infinite;
}

/* TEXTO INTRO */
.timeline-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

/* EMOJIS CORRECTOS */
.section-title .sparkle {
  display: inline-block;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: initial;
  animation: pulse-sparkle 2s infinite;
}

/* ANIMACIÓN */
@keyframes pulse-sparkle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/*linea del tiempo */

/* ================= KINDER SECTION ================= */

.kinder-section {
  padding: 5px 20px 30px;
}

.kinder-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* TEXTO */
.kinder-badge {
  display: inline-block;
  background: rgba(253, 133, 73, 0.1);
  color: var(--p-orange);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.kinder-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--p-orange);
  margin-bottom: 20px;
}

.kinder-description {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

.kinder-list {
  list-style: none;
  margin-bottom: 30px;
}

.kinder-list li {
  margin-bottom: 10px;
  font-weight: 500;
}

/* CARDS */
.kinder-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kinder-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.kinder-card:hover {
  transform: translateY(-10px);
  background: var(--p-orange);
  color: white;
}

.kinder-card:hover p {
  color: white;
}

.kinder-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .kinder-container {
    grid-template-columns: 1fr;
  }

  .kinder-title {
    font-size: 32px;
  }

  .kinder-cards {
    grid-template-columns: 1fr;
  }
}

/* =================  ================= */

/* ==========================================================
   SECCIÓN GALERÍA PATRIA NUEVA - DISEÑO PREMIUM
   ========================================================== */

/* 1. Fondo de la Sección y Títulos */
.gallery-section {
  padding: 100px 0;
  background: transparent;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #1e3a8a; /* Tu azul institucional */
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.section-subtitle {
  display: block;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b; /* Gris azulado para letra pequeña */
  text-transform: uppercase;
  letter-spacing: 3px; /* Look profesional */
  margin-bottom: 50px;
}

/* 2. Grilla del Collage (2 Renglones Perfectos) */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px; /* Altura más elegante */
  gap: 20px;
  grid-template-areas:
    "a a b c c d"
    "a a b e e f";
}

/* Asignación de áreas */
.area-1 {
  grid-area: a;
}
.area-2 {
  grid-area: b;
}
.area-3 {
  grid-area: c;
}
.area-4 {
  grid-area: d;
}
.area-5 {
  grid-area: e;
}
.area-6 {
  grid-area: f;
}

/* 3. Estilo de los Items */
.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: 40px; /* Bordes más pronunciados y modernos */
  background: #1e3a8a; /* Base para el velo */
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 4. El Velo Azul Transparente (Estado Inicial) */
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.65; /* Más claridad para que se vea la calidad */
  filter: brightness(0.85);
  transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 5. Overlay "Ver Imagen" (Más Profesional) */
.image-hover-info {
  position: absolute;
  inset: 0; /* Cubre todo el cuadro */
  background: linear-gradient(to top, rgba(30, 58, 138, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.image-hover-info i {
  font-size: 30px;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  margin-bottom: 10px;
}

.image-hover-info span {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 6. Hover Effects */
.collage-item:hover {
  transform: translateY(-8px); /* Eleva la tarjeta */
  box-shadow: 0 20px 45px rgba(30, 58, 138, 0.2);
}

.collage-item:hover img {
  mix-blend-mode: normal;
  opacity: 1;
  filter: brightness(1.1);
  transform: scale(1.1);
}

.collage-item:hover .image-hover-info {
  opacity: 1;
}

.collage-item:hover .image-hover-info i {
  transform: translateY(0);
}

/* 7. Estilos del Modal (Efecto Click) */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 100000;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.98); /* Azul casi negro muy elegante */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px); /* Desenfoque de fondo premium */
}

.modal-bg.show {
  opacity: 1;
}

.modal-contenido {
  max-width: 90%;
  max-height: 80%;
  border-radius: 30px;
  border: 8px solid rgba(255, 255, 255, 0.1); /* Borde de cristal */
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.modal-bg.show .modal-contenido {
  transform: scale(1);
}

.cerrar-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: 200;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cerrar-modal:hover {
  transform: rotate(90deg);
}

/* 8. Adaptación Móvil (Las 6 en 2 Renglones) */
@media (max-width: 991px) {
  .cerrar-modal {
    top: 20px;
    right: 20px;
    font-size: 60px; /* Más grande para dedos */
    background: rgba(
      0,
      0,
      0,
      0.5
    ); /* Círculo de fondo para que se vea siempre */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .collage-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
    grid-template-areas:
      "a a b c"
      "a a e f";
  }

  /* Para que se vean 5 fotos armoniosas en móvil, ocultamos la menos importante */
  .area-4 {
    display: none;
  }

  .image-hover-info {
    opacity: 1; /* Siempre visible en móvil para guiar al usuario */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    justify-content: flex-end;
    padding-bottom: 15px;
  }
  .image-hover-info i {
    display: none;
  }
}

/* ============================================================
   SECCIÓN MAESTROS - UNIFICADO Y ESTABLE
   ============================================================ */

/* Busca este bloque en tu CSS y actualiza los valores */
.teachers-section {
  padding-top: 15px !important; /* Reducimos el espacio de arriba */
  padding-bottom: 60px;
  margin-top: 0 !important; /* Eliminamos cualquier margen externo */
  background: transparent !important;
}

/* También reducimos el espacio del contenedor interno */
.teachers-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* El título también suele tener un margen por defecto que hay que quitar */
.teachers-section .section-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.teachers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.teacher-card {
  background: transparent;
  text-align: center;
  transition: transform 0.3s ease;
}

.teacher-ellipse-mask {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50% / 60% 60% 40% 40%; /* Elipse Vertical */
  border: 4px solid transparent; /* Reservamos espacio para el borde */
  transition: all 0.5s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Pseudo-elemento para el velo transparente en hover */
.teacher-ellipse-mask::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.teacher-ellipse-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

/* INFORMACIÓN */
.teacher-info h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 5px;
}

.teacher-info p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 15px;
}

/* ESTILOS DE LOS LABELS (PINTADOS) */
.degree-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 10px;
  transition: all 0.3s ease;
}

/* Label Naranja (var(--p-orange)) */
.tag-orange {
  background-color: var(--p-orange);
  color: white;
  box-shadow: 0 4px 10px rgba(253, 133, 73, 0.3);
}

/* Label Azul (Topbar - #1e3a8a) */
.tag-blue {
  background-color: #1e3a8a;
  color: white;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

/* ------------------------------------------------------------
   EFECTOS DE TRANSPARENCIA CRUZADA (HOVER)
   ------------------------------------------------------------ */

/* Al pasar el mouse por la tarjeta */
.teacher-card:hover {
  transform: translateY(-8px);
}

.teacher-card:hover .teacher-ellipse-mask img {
  transform: scale(1.08); /* Zoom sutil */
}

/* HOVER 1: DE NARANJA A AZUL */
/* La elipse se pone naranja */
.hover-to-blue:hover .teacher-ellipse-mask {
  border-color: var(--p-orange);
}
/* El velo se pone azul marino transparente (#1e3a8a) */
.hover-to-blue:hover .teacher-ellipse-mask::after {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.3),
    rgba(30, 58, 138, 0.3)
  );
  opacity: 1;
}

/* HOVER 2: DE AZUL A NARANJA */
/* La elipse se pone azul marino */
.hover-to-orange:hover .teacher-ellipse-mask {
  border-color: #1e3a8a;
}
/* El velo se pone naranja transparente */
.hover-to-orange:hover .teacher-ellipse-mask::after {
  background: linear-gradient(
    135deg,
    rgba(253, 133, 73, 0.3),
    rgba(253, 133, 73, 0.3)
  );
  opacity: 1;
}

/* Animación del Label en hover */
.teacher-card:hover .degree-tag {
  background: #1e3a8a; /* Azul Marino Unificado para hover */
  color: white;
}

/* ------------------------------------------------------------
   RESPONSIVO MÓVIL
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .teacher-ellipse-mask {
    height: 350px;
    max-width: 280px;
  }
}

/* ============================================================
   SECCIÓN TESTIMONIO - DISEÑO PREMIUM Y CREATIVO
   ============================================================ */

.testimonial-section {
  padding: 60px 0 100px; /* Padding ajustado para flujo continuo */
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.testimonial-container {
  max-width: 1100px; /* Un poco más estrecho para centrar la atención */
  margin: 0 auto;
  padding: 0 25px;
}

/* TARJETA ÚNICA FLOTANTE */
.testimonial-single-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 60px; /* Bordes muy redondeados pro */
  padding: 60px;
  margin-top: 50px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06); /* Sombra suave flotante */
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.testimonial-single-card:hover {
  transform: translateY(-10px);
}

/* 1. BLOQUE DE IMAGEN (Asimétrico) */
.testimonial-image-block {
  flex: 0 0 350px; /* Ancho fijo para la imagen en web */
  position: relative;
  margin-right: 50px;
}

/* Recuperamos la elipse vertical del diseño de maestros */
.testimonial-ellipse-mask {
  width: 280px;
  height: 380px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50% / 60% 60% 40% 40%; /* Elipse Vertical */
  border: 6px solid #f8fbff; /* Borde sutil */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

.testimonial-ellipse-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Burbujas decorativas detrás de la elipse */
.decor-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(2px);
  z-index: 1;
}

.bubble-orange {
  width: 150px;
  height: 150px;
  background: var(--p-orange); /* Tu naranja */
  bottom: -20px;
  left: -30px;
}

.bubble-blue {
  width: 100px;
  height: 100px;
  background: #1e3a8a; /* Tu azul marino topbar */
  top: -20px;
  right: -10px;
}

/* 2. BLOQUE DE CONTENIDO */
.testimonial-content-block {
  flex: 1;
  position: relative;
}

/* Comillas creativas flotantes */
.quote-icon {
  font-size: 80px;
  color: rgba(253, 133, 73, 0.15); /* Naranja muy transparente */
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: 1;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

/* INFO DEL AUTOR */
.testimonial-author-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #f1f5f9;
  padding-top: 25px;
}

.author-details h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 3px;
}

.author-details p {
  font-size: 14px;
  color: #1e3a8a; /* Azul Marino */
  font-weight: 700;
}

/* Estrellas de calificación */
.rating-stars {
  color: #ffc107; /* Color dorado estándar */
  font-size: 18px;
  letter-spacing: 2px;
}

/* ============================================================
   RESPONSIVO MÓVIL (OPTIMIZADO)
   ============================================================ */
@media (max-width: 991px) {
  .testimonial-single-card {
    flex-direction: column; /* Apilado vertical */
    padding: 40px;
    border-radius: 40px;
  }

  .testimonial-image-block {
    margin-right: 0;
    margin-bottom: 40px;
    flex: 0 0 auto;
  }

  .testimonial-ellipse-mask {
    width: 220px;
    height: 300px; /* Reducimos tamaño elipse en móvil */
  }

  .decor-bubble {
    transform: scale(0.8); /* Burbujas más pequeñas */
  }

  .testimonial-text {
    font-size: 17px;
    text-align: center;
  }

  .quote-icon {
    font-size: 60px;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
  }

  .testimonial-author-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* ============================================================
    ESTILOS DE FOOTER - DISEÑO SOLUCIONES JM (FINAL)
   ============================================================ */

.main-footer {
  background-color: transparent; /* Azul Marino Institucional */
  color: #ffffff;
  position: relative;
  padding-bottom: 30px;
  font-family: "Montserrat", sans-serif;
  margin-top: -1px; /* Evita fugas de color entre secciones */
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-wave .shape-fill {
  /* Cambiado a blanco puro para coincidir con el fondo de tu body */
  fill: #1e3a8a;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 25px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr 2fr;
  gap: 40px;
}

/* LOGO: Color original recuperado */
.footer-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.about-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* TÍTULOS DE COLUMNA */
.footer-col h4 {
  font-weight: 900;
  margin-bottom: 25px;
  font-size: 18px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 35px;
  height: 3px;
  background: #fd8549;
}

/* ENLACES: Efecto Soluciones JM */
.links-col ul {
  list-style: none;
}

.links-col ul li {
  margin-bottom: 12px;
}

.links-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.links-col ul li a:hover {
  color: #fd8549;
  transform: translateX(8px);
}

/* COLUMNA CONTACTO INTEGRADA */
.info-col p {
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-col i {
  color: #fd8549;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
/* Contenedor principal de los horarios */
.schedule-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todo el bloque horizontalmente */
  text-align: center; /* Asegura el centrado del texto */
  margin-top: 20px;
  width: 100%;
}

/* PRIMER RENGLÓN: Icono + Título */
.schedule-title {
  display: flex;
  align-items: center; /* Alinea verticalmente icono y texto */
  justify-content: center; /* Centra el conjunto horizontalmente */
  gap: 10px; /* Espacio entre el icono y la palabra */
  margin-bottom: 5px; /* Espacio sutil antes de la hora */
  width: 100%;
}

.schedule-title i {
  color: #fd8549; /* Tu naranja para los iconos */
  font-size: 1.1rem;
  margin: 0; /* Quitamos márgenes viejos */
}

.schedule-title strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0; /* Quitamos márgenes viejos */
}

/* SEGUNDO RENGLÓN: La Hora sola y centrada */
.schedule-time {
  margin: 0;
  width: 100%;
}

.schedule-time span {
  font-size: 15px;
  opacity: 0.85; /* Un toque más suave */
  display: block; /* Asegura que ocupe su propia línea */
}

.map-wrapper {
  width: 100%;
  height: 280px; /* Aumentamos la altura para hacerlo un rectángulo robusto */
  border-radius: 15px; /* Bordes redondeados para suavizar el diseño */
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Sombra más profunda para dar relieve */
  transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.map-wrapper:hover {
  transform: scale(1.02);
  border-color: var(--p-orange);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* REDES SOCIALES */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: #fd8549;
  transform: translateY(-5px);
}

/* BOTTOM & CRÉDITOS JM */
.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

.footer-bottom a {
  color: #fd8549; /* Naranja para resaltar tu marca */
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-logo {
    margin: 0 auto 20px;
  }
  .footer-socials {
    justify-content: center;
  }
  .info-col p {
    justify-content: center;
  }
  .schedule-block span {
    padding-left: 0;
  }
}

/* ============================================================
   FOOTER FINAL AJUSTADO (SIN ROMPER CURVA)
   ============================================================ */

.main-footer {
  background-color: #1e3a8a;
  color: #ffffff;
  position: relative;
  padding-bottom: 30px;
  font-family: "Montserrat", sans-serif;
  /* ESTA ES LA CLAVE: */
  margin-top: -2px;
}

/* ================= WAVE (NO TOCAR POSICIÓN) ================= */
.footer-wave {
  position: absolute;
  top: -1px; /* 🔥 se queda como estaba */
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-wave .shape-fill {
  fill: #ffffff; /* 🔥 correcto */
}

/* ================= CONTENEDOR ================= */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 25px 20px; /* 🔥 tu valor original */
}

/* ================= GRID (AQUÍ ESTÁ LA CLAVE) ================= */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 2.6fr; /* 🔥 MÁS espacio al mapa */
  gap: 40px;
}

/* 🔥 Hacemos que el mapa use TODO su espacio */
.map-col {
  width: 100%;
}

/* ================= MAPA ================= */
.map-link {
  display: block; /* Hace que el enlace ocupe todo el ancho */
  text-decoration: none;
}
.map-wrapper {
  width: 130%; /* Obliga al mapa a ocupar todo el ancho de su columna (3.2fr) */
  height: 280px; /* Altura para mantener el formato rectangular */
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
/* 🔥 Truco para que se vea MÁS ancho visualmente */
.map-wrapper iframe {
  width: 115%; /* 🔥 más ancho sin romper layout */
  height: 100%;
  border: 0;
  display: block;
  margin-left: -7.5%; /* centra el exceso */
}

/* Hover */
.map-wrapper:hover {
  transform: scale(1.02);
  border-color: #fd8549;
}
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Se pone por encima del iframe */
  background: rgba(0, 0, 0, 0); /* Transparente */
  cursor: pointer;
}
/* ================= LOGO ================= */
.footer-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.about-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ================= TITULOS ================= */
.footer-col h4 {
  font-weight: 900;
  margin-bottom: 25px;
  font-size: 18px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 35px;
  height: 3px;
  background: #fd8549;
}

/* ================= LINKS ================= */
.links-col ul {
  list-style: none;
}

.links-col ul li {
  margin-bottom: 12px;
}

.links-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.links-col ul li a:hover {
  color: #fd8549;
  transform: translateX(8px);
}

/* ================= INFO ================= */
.info-col p {
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-col i {
  color: #fd8549;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ================= HORARIOS ================= */
.schedule-block {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-block p {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 15px;
}

.schedule-block strong {
  font-size: 13px;
  color: #ffffff;
}

.schedule-block span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding-left: 32px;
}

/* ================= REDES ================= */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-link:hover {
  background: #fd8549;
  transform: translateY(-5px);
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom {
  margin-top: 60px;
  padding: 25px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  opacity: 0.8;
}

.footer-bottom a {
  color: #fd8549;
  text-decoration: none;
  font-weight: 800;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    margin: 0 auto 20px;
  }

  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    padding-bottom: 80px; /* Esto crea el espacio necesario para que el botón no tape nada */
    padding-right: 40px;
    padding-left: 40px;
  }
  .info-col p {
    justify-content: center;
  }

  .schedule-block span {
    padding-left: 0;
  }
  .map-wrapper {
    width: 100%; /* Obliga al mapa a ocupar todo el ancho de su columna (3.2fr) */
    height: 280px; /* Altura para mantener el formato rectangular */
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }
}

/* ============================================================
   SECCIÓN PILARES - HOMOLOGADO JMC SYSTEMS
   ============================================================ */

/* Contenedor estándar para asegurar alineación con el resto del sitio */
.container-nosotros {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Grid de Pilares (3 columnas) */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 0px;
}

/* Tarjeta de Pilar Estilo JMC */
.pilar-card {
  text-align: center;
  transition: transform 0.3s ease;
  padding: 20px;
}

.pilar-card:hover {
  transform: translateY(-10px);
}

/* Efecto de Marcador (Doodle) irregular para Misión/Visión/Valores */
.highlighter-text-block {
  position: relative;
  padding: 20px;
  z-index: 1;
}

.highlighter-text-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 15px 5px 25px 8px; /* Forma irregular */
  opacity: 0.6;
  transform: rotate(-1deg);
}

/* Colores de los marcadores usando tus variables del :root */
.pilar-mision .highlighter-text-block::before {
  background: #d7f9e5;
}
.pilar-vision .highlighter-text-block::before {
  background: #fee4f2;
}
.pilar-valores .highlighter-text-block::before {
  background: #fffadc;
}

/* Iconos circulares (como en tus capturas de referencia) */
.pilar-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: 0.3s ease;
}

.pilar-card:hover .pilar-icon-wrapper {
  transform: scale(1.1);
}

/* Colores de Iconos Circulares usando tus variables */
.circle-green {
  background: #d7f9e5;
  color: var(--p-green);
}
.circle-pink {
  background: #fee4f2;
  color: #e91e63;
}
.circle-yellow {
  background: #fffadc;
  color: var(--p-yellow);
}

/* Tipografía Homologada al Home (Montserrat 900) */
.highlighter-text-block h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 10px;
}

.highlighter-text-block p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}
/* --- Espaciado de la Sección Pilares (Sustituye a los <br>) --- */
.section-pilares-home {
  margin-top: 20px; /* Bajamos de 80px a 20px para que suba la sección */
  margin-bottom: 0px;
  padding-top: 0px; /* Quitamos el padding interno superior */
  padding-bottom: 10px;
}

/* Ajuste sutil para que el título no esté pegado al grid */
.container-nosotros .about-text {
  margin-bottom: 30px;
}

/* Responsivo para dispositivos móviles */
@media (max-width: 991px) {
  .pilares-grid {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
  }
  .section-pilares-home {
    margin-top: -101px !important; /* Reducimos de 80px a 20px */
    margin-bottom: 20px !important;
    padding-top: 10px !important;
  }

  .container-nosotros .about-text {
    margin-bottom: 20px !important; /* Menos espacio bajo el título */
  }

  .about-text h1.main-title {
    font-size: 38px !important; /* Título más pequeño para que suba el contenido */
    margin-bottom: 10px !important;
  }

  .pilares-grid {
    margin-top: 20px !important; /* El grid se pega más al título */
    gap: 15px !important; /* Tarjetas más juntas */
  }
}

/* ============================================================
   SECCIÓN INTRO PREMIUM - JMC SYSTEMS
   ============================================================ */

.nosotros-premium-intro {
  padding: 60px 0;
  /* Fondo degradado suave inspirado en tus capturas */
  background:
    radial-gradient(
      circle at top left,
      rgba(167, 208, 140, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 138, 92, 0.1),
      transparent 40%
    );
  overflow: hidden;
  position: relative;
}

/* --- ESTILOS BASE / WEB --- */
.intro-new-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-header-block .main-title {
  font-size: 2.5rem; /* MODIFICADO: Un tamaño más refinado para PC */
}
.intro-content-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: 100%;
}

/* La Tarjeta Blanca de Texto (Web) */
.intro-text-block {
  background: #ffffff;
  padding: 35px 30px; /* MODIFICADO: Antes 50px 40px - Mucho más compacto */
  border-radius: 40px; /* MODIFICADO: Antes 60px - Menos exagerado */
  text-align: center;
  flex: 2;
  max-width: 550px; /* MODIFICADO: Antes 650px - Para que no se vea gigante */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border: 2px solid #fff;
  z-index: 2;
}

/* Imágenes Circulares (Web) */
.intro-img-circle {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1;
}

.intro-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover effects (Web) */
.intro-img-circle:hover {
  transform: scale(1.1);
  z-index: 3;
}

.card-line {
  width: 50px;
  height: 4px;
  background: #ff8a5c;
  margin: 20px auto 0;
  border-radius: 10px;
}

/* ============================================================
   NUEVO ESTILO EXCLUSIVO PARA MÓVIL (CORRECCIÓN DE CAPTURA)
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Limpiamos la sección base y forzamos el espacio superior con PADDING */
  .intro-sobre-nosotros-mobile {
    display: block !important;
    position: relative !important;
    padding-top: 180px !important; /* Este valor empuja TODO hacia abajo */
    margin-top: 0 !important;
    transform: none !important; /* Quitamos el transform para evitar conflictos de renderizado */
  }

  /* 2. Forzamos al layout a ser una columna simple */
  .intro-new-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* 3. El título DEBE ir primero */
  .about-text,
  .intro-header-block {
    order: -1 !important; /* Lo mueve arriba de las imágenes */
    position: relative !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    z-index: 10 !important;
  }

  .main-title {
    font-size: 50px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }

  /* 4. Contenedor de imágenes y tarjeta */
  .intro-content-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
  }

  /* Imagen 1 (La de arriba) */
  .img-1 {
    margin-bottom: -60px !important; /* Entra en la tarjeta */
    margin-left: 0 !important;
    width: 150px !important;
    height: 150px !important;
    z-index: 5 !important;
    position: relative !important;
  }

  /* Tarjeta Blanca */
  .intro-text-block {
    width: 92% !important;
    max-width: 92% !important;
    padding: 80px 20px 40px !important;
    margin: 0 auto !important;
    z-index: 2 !important;
    position: relative !important;
    border-radius: 40px !important;
  }

  /* Imagen 2 (La de abajo) */
  .img-2 {
    margin-top: -50px !important; /* Sale de la tarjeta */
    margin-right: 0 !important;
    width: 140px !important;
    height: 140px !important;
    z-index: 5 !important;
    position: relative !important;
  }
}
/*==============================================================
  INSTALACIONES - DISEÑO JMC SYSTEMS (AJUSTADO)
==============================================================*/
/*==============================================================
  INSTALACIONES - DISEÑO JMC SYSTEMS (FINAL)
==============================================================*/

.facilities-zigzag {
  padding: 80px 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(167, 208, 140, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 138, 92, 0.1),
      transparent 40%
    );
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 45px;
  color: #ff8a5c;
  text-align: center;
  margin-bottom: 60px;
}

.zigzag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 80px;
}

.zigzag-row.reverse {
  flex-direction: row-reverse;
}

.zigzag-content {
  flex: 0 0 45%;
}
.zigzag-image {
  flex: 0 0 50%;
}

/* ESTILOS DE LISTA (Limpieza de viñetas negras) */
#instalaciones .facilities-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 !important;
}
/* Espaciado del bloque de título */
#instalaciones .item-title {
  margin-bottom: 20px !important; /* Separa el título del párrafo */
  font-size: 30px;
  letter-spacing: -0.5px;
}
CSS
/* ==========================================================
   HOMOLOGACIÓN DE TEXTOS (PÁRRAFOS Y DESCRIPCIONES)
   ========================================================== */

.item-description {
    font-size: 17px;
    line-height: 1.6;
    color: #5a6a85;
    margin-bottom: 25px;
    display: block; /* Asegura que respete márgenes */
}

/* --- CLASES DE ALINEACIÓN (Úsalas según necesites) --- */

.t-justify { text-align: justify; }
.t-center  { text-align: center; }
.t-left    { text-align: left; }

.intro-card-estilo .about-description1 {
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  color: #555 !important;
  line-height: 1.8 !important;
  margin-bottom: 25px !important; /* Reducido un poco para que quepa la línea */
  text-align: justify;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/*========================================================== */

#instalaciones .item-description {
  line-height: 1.7 !important; /* Da aire entre líneas de lectura */
  margin-bottom: 30px !important; /* Separa el párrafo de la lista de abajo */
  color: #54647a; /* Un tono más suave para que no compita con el título */
}
.facilities-list li {
  list-style-type: none !important;
  margin-bottom: 18px !important; /* Más espacio entre cada punto */
  font-size: 16px;
  color: #4c5c73;
  line-height: 1.5;
  display: flex; /* Alinea el icono arriba si el texto tiene dos líneas */
  align-items: flex-start;
}
.facilities-list li strong {
  color: #2c3e50;
  font-weight: 700;
  margin-right: 5px;
}

/* COLORES PASTEL PARA MARCOS */
.bg-pastel-verde {
  background-color: #e8f5e9 !important;
}
.bg-pastel-rosa {
  background-color: #fce4ec !important;
}
.bg-pastel-amarillo {
  background-color: #fffde7 !important;
}

/* CARRUSEL - FORZADO CON ID PARA EVITAR QUE SE TACHE */
#instalaciones .carousel-frame {
  padding: 15px;
  border-radius: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

#instalaciones .carousel-logic {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 380px !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}

#instalaciones .carousel-logic .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

#instalaciones .carousel-logic .slide.active {
  opacity: 1;
  z-index: 2;
}

/*==============================================================
  FUERZA BRUTA MÓVIL - CORRECCIÓN DEFINITIVA DE DISEÑO
==============================================================*/
@media (max-width: 991px) {
  /* 1. Forzamos la jerarquía del contenedor principal */
  #instalaciones,
  #instalaciones.facilities-zigzag,
  .container-nosotros {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
   .item-description {
        font-size: 16px; /* Un poco más pequeño para que no se vea pesado */
        line-height: 1.5;
        text-align: left; /* Consejo: el justify en móvil a veces deja huecos feos */
    } 
    
  }

  /* 2. Forzamos que la fila sea columna y se centre */
  .zigzag-row,
  .zigzag-row.reverse {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 60px !important; /* Espacio para que no se amontone */
    gap: 30px !important;
  }

  /* 3. Forzamos TEXTO: Ancho completo, sin flotado, centrado */
  .zigzag-content {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }

  /* 4. Forzamos IMAGEN: Ancho completo, centrado, SIN RECORTES */
  .zigzag-image {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 5. ARREGLO DEL CARRUSEL: Forzar altura y visibilidad */
  .carousel-frame {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    display: block !important;
  }

  /* Esta regla es la que estaba fallando en tu captura */
  .carousel-logic {
    height: 320px !important; /* Espacio real para la imagen */
    width: 100% !important;
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  /* Forzar que las imágenes dentro del carrusel no se deformen */
  .carousel-logic img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 6. Limpieza de Textos Amontonados */
  .item-title {
    font-size: 26px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
  }

  .facilities-list {
    text-align: left !important;
    display: inline-block !important;
    max-width: 90%;
    margin: 20px auto !important;
  }

  .facilities-list li {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }
}

/* ============================================================
  SERVICIOS - JMC SYSTEMS
   ============================================================ */

/* --- Títulos Montserrat 900 --- */
.main-title,
.highlighter-text-block h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900 !important;
}

/* --- Layout Zig-Zag --- */
.zigzag-row {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-bottom: 110px;
}

.zigzag-row.reverse {
  flex-direction: row-reverse;
}

.zigzag-row .pilar-card {
  flex: 1;
  margin: 0 !important;
  max-width: 500px;
}

/* --- Efectos Pro en Imágenes --- */
.zigzag-image {
  flex: 1.2;
  position: relative;
}

.image-effect-wrapper {
  position: relative;
  padding: 10px;
}

/* El marco blanco detrás de la foto */
.image-effect-wrapper::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 40px;
  z-index: -1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.img-servicios-pro {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 40px;
  border: 8px solid white;
  transition: all 0.4s ease;
  filter: saturate(1.1);
}

/* Efecto al pasar el mouse */
.zigzag-row:hover .img-servicios-pro {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(253, 133, 73, 0.2);
}

/* Listas decoradas */
.lista-custom {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.lista-custom li {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Responsive */
@media (max-width: 991px) {
  .zigzag-row,
  .zigzag-row.reverse {
    flex-direction: column;
    text-align: center;
  }
  .img-servicios-pro {
    height: 320px;
  }
  .image-effect-wrapper::before {
    display: none;
  }
}

/* ============================================================
   ESTILOS SECCIÓN INTRODUCCIÓN SERVICES - PATRIA NUEVA
   ============================================================ */
/* ============================================================
   ESTILOS GENERALES Y ADAPTACIONES JMC SYSTEMS
   ============================================================ */

/* Contenedor limitado para que no se "desparrame" el texto en PC */
.container-limitado-nosotros {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* --- NUEVO: Estilo para emojis grandes y sin fondo naranja --- */
.emoji-header-large {
  font-size: 4rem; /* Tamaño grande de los emojis */
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

/* La tarjeta: Centrada con margin auto */
.intro-card-estilo {
  background: rgba(253, 133, 73, 0.04) !important;
  padding: 30px 40px !important;
  border-radius: 40px !important;
  position: relative;
  border: 2px solid #fff;
  box-shadow:
    10px 10px 30px rgba(0, 0, 0, 0.03),
    -10px -10px 30px rgba(255, 255, 255, 0.7);
  z-index: 1;
  /* CAMBIO CLAVE: Quitamos overflow hidden para que el degradado respire */
  overflow: visible !important;
  margin: 20px auto !important;
  display: block !important;
  max-width: 850px !important;
}

/* El párrafo: Le damos más anchura */


/* TÍTULO CON DEGRADADO ANIMADO ✨ */
.title-animated-gradient,
.section-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900 !important;
  font-size: 50px !important;
  /* CAMBIO CLAVE: line-height 1.4 para que no se coma la 'O' ni acentos */
  line-height: 1.4 !important;
  margin: 10px 0 20px 0 !important;
  background: linear-gradient(90deg, #fd8549 0%, #ffab7d 50%, #fd8549 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-gradient 5s linear infinite;
  padding: 5px 2px; /* Espacio lateral mínimo */
}

/* Línea Decorativa con Brillo */
.card-line-animated {
  width: 100px;
  height: 4px;
  background: var(--p-orange);
  margin: 10px auto 0 auto; /* Ajustado margen */
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.card-line-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: shine-line 2s infinite;
}
.ajuste-guarderia {
  padding-top: 10px !important; /* Da aire respecto al menú superior */
}
.ajuste-guarderia-top {
  padding-top: 60px !important; /* Espacio para el header */
  padding-bottom: 0px !important;
}

/* --- 2. Ajuste para la sección de DESARROLLO (En medio del sitio) --- */
.seccion-desarrollo-compacta {
  padding: 40px 0 !important; /* Mucho más pequeño para evitar el hueco blanco */
  background: transparent;
}

.seccion-desarrollo-compacta .intro-card-estilo {
  margin-top: 0 !important; /* Quitamos el margen que empuja el cuadro */
}

/* --- 3. Corrección DEFINITIVA para la letra "O" y Títulos --- */
.section-title.title-animated-gradient {
  display: block !important;
  line-height: 1.4 !important; /* Evita que el degradado corte la 'o' por arriba */
  padding: 0.2em 0 !important; /* Espacio extra interno para que el brillo respire */
  overflow: visible !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important; /* Tamaño adaptable */
}

/* Animaciones */
@keyframes shine-gradient {
  to {
    background-position: 200% center;
  }
}
@keyframes shine-line {
  to {
    left: 100%;
  }
}

/* ============================================================
   RESPONSIVO MÓVIL (CORRECCIÓN DE ESPACIOS)
   ============================================================ */
@media (max-width: 991px) {
  .ajuste-guarderia {
    /* Subimos de 100px a 180px para compensar el doble header móvil */
    padding-top: 180px !important;
  }

  .ajuste-guarderia .intro-card-estilo {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    width: 94% !important; /* Un poco más de aire a los lados */
  }
  .ajuste-guarderia-top {
    padding-top: 190px !important; /* Evita que el logo pise el oso */
  }

  .seccion-desarrollo-compacta {
    padding: 20px 0 !important;
  }
}

/* 3. Corrección para que NO se coma la letra "O" */
.ajuste-guarderia .section-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900 !important;
  font-size: 50px !important;
  /* Aumentamos line-height para que el degradado no se corte arriba/abajo */
  line-height: 1.4 !important;
  padding: 5px 0 !important;
  display: block;
  overflow: visible !important;
}

/* 4. Reducción de espacio con la siguiente sección */
.ajuste-guarderia.espacio-timeline {
  padding-bottom: 20px !important;
}

/* Agrandamos el párrafo para que no sea un "tubo" */
.intro-card-estilo .about-description1 {
  font-size: 177px !important; /* Un poco más pequeña para legibilidad */
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.6 !important;
}

.title-animated-gradient,
.section-title {
  font-size: 2.2rem !important;
  line-height: 1.2 !important;
}
/* Agrandamos emojis en móvil también */
.emoji-header-large {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

/* ============================================================
   servicios kindergarten - jmc systems
   ============================================================ */
/* ============================================================
   ESTILOS UNIFICADOS - JMC SYSTEMS (COMPACTO & SLIM)
   ============================================================ */

/* --- Títulos Globales --- */
.main-title,
.highlighter-text-block h3,
.kinder-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900 !important;
}

/* ============================================================
   1. SECCIÓN INTRODUCCIÓN (TARJETA MINI)
   ============================================================ */
.intro-card-estilo {
  background: rgba(253, 133, 73, 0.04) !important;
  padding: 30px 40px !important;
  border-radius: 30px !important;
  margin: 30px auto !important;
  max-width: 850px !important; /* Más angosta para PC */
  border: 1px solid rgba(253, 133, 73, 0.1);
  text-align: center;
}

.title-animated-gradient {
  font-size: 2rem !important; /* Título elegante, no gigante */
  margin-bottom: 12px !important;
  background: linear-gradient(90deg, #fd8549 0%, #ffab7d 50%, #fd8549 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-gradient 5s linear infinite;
}

.intro-card-estilo .about-description1 {
  font-size: 18px !important;
  line-height: 1.5 !important;
  max-width: 650px !important;
  margin: 0 auto 20px auto !important;
  color: #555;
}

.emoji-header-large {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* ============================================================
   2. LAYOUT ZIG-ZAG (SERVICIOS SLIM)
   ============================================================ */
.zigzag-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.zigzag-row.reverse {
  flex-direction: row-reverse;
}

.zigzag-image {
  flex: 0.8; /* Imagen más estrecha que el texto */
  position: relative;
}

.img-servicios-pro {
  width: 100%;
  max-width: 380px;
  height: 280px; /* Altura compacta */
  object-fit: cover;
  border-radius: 20px;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.zigzag-row .pilar-card {
  flex: 1.2;
}

.lista-custom li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   3. SERVICIOS KINDERGARTEN (LÓGICA DE CARTAS ZOOM)
   ============================================================ */
.kinder-section {
  padding: 50px 20px;
}

.kinder-top {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.kinder-box {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 25px;
  padding: 25px 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.kinder-title {
  font-size: 22px;
  color: #f28c52;
  margin-bottom: 10px;
}

.kinder-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* --- Grid de 4 Cartas --- */
.kinder-grid-cuatro {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px; /* Menos espacio entre cartas para que no se vea gigante */
}

/* --- Estilo de Carta con Zoom --- */
.kinder-card-premium {
  position: relative;
  height: 300px; /* Altura Slim */
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #1e3a8a;
  transition: 0.5s;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: luminosity;
  transition: 0.6s;
}

.content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(30, 58, 138, 0.7),
    rgba(30, 58, 138, 0.2)
  );
  transition: 0.4s;
}

.content-overlay i {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.content-overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.content-overlay p {
  font-size: 0.85rem;
}

/* --- Efectos de Hover --- */
.kinder-grid-cuatro:hover .kinder-card-premium {
  transform: scale(0.96);
}

.kinder-grid-cuatro .kinder-card-premium:hover {
  transform: scale(1.05);
  z-index: 10;
}

.kinder-card-premium:hover .img-bg {
  opacity: 1;
  mix-blend-mode: normal;
  transform: scale(1.1);
}

.kinder-card-premium:hover .content-overlay {
  opacity: 0;
}

.zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.kinder-card-premium:hover .zoom-icon {
  opacity: 1;
}
.zoom-icon i {
  font-size: 32px;
  color: #fff;
}
.zoom-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4); /* Fondo oscuro sutil */
  color: #ffffff;
  padding: 8px 0;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  transition: all 0.3s ease;
}

.zoom-action-bar i {
  font-size: 14px;
}
/* Bordes de Colores */
.card-green {
  border-bottom: 6px solid #a7d08c;
}
.card-pink {
  border-bottom: 6px solid #ffb6c1;
}
.card-yellow {
  border-bottom: 6px solid #ffd966;
}
.card-blue {
  border-bottom: 6px solid #8ae0e5;
}

/* ============================================================
   4. MODAL & RESPONSIVO
   ============================================================ */
.modal-kinder {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 20px;
  transform: scale(0.8);
  transition: 0.4s;
}

.modal-kinder.show .modal-img {
  transform: scale(1);
}
.content-overlay {
  padding-bottom: 45px !important;
}

.modal-content-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .zigzag-row,
  .zigzag-row.reverse {
    flex-direction: column;
    gap: 30px;
  }
  .img-servicios-pro {
    max-width: 100%;
    height: 250px;
  }
  .kinder-grid-cuatro {
    grid-template-columns: repeat(2, 1fr);
  }
  .kinder-card-premium {
    height: 260px;
  }
  .zoom-action-bar {
    opacity: 0.8;
    transform: translateY(5px);
  }

  .kinder-card-premium:hover .zoom-action-bar {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 600px) {
  .kinder-grid-cuatro {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   6. CONTACTO, TIMELINE Y MODAL (OPTIMIZADO)
   ========================================================== */

.contacto-kinder {
  padding: 10px 0 80px 0;
  position: relative;
  scroll-margin-top: 100px;
  box-sizing: border-box;
  overflow-x: hidden; /* Evita el desplazamiento lateral */
}

/* Contenedor de las dos tarjetas (Info y Timeline) */
.contacto-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 850px;
  margin: 40px auto 0 auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Cards Generales */
.contacto-info,
.inscripcion-timeline {
  width: 100%;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* --- SECCIÓN INFO --- */
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.2rem;
  color: var(--p-blue);
  background: #f0f9fa;
  width: 45px;
  height: 45px;
  min-width: 45px; /* Evita que se aplaste en móviles */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.info-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
}
.info-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.frase-confianza {
  font-style: italic;
  color: var(--text);
  margin: 20px 0;
  border-left: 4px solid var(--p-yellow);
  padding-left: 15px;
  font-size: 0.95rem;
}

/* Botones de Acción (WhatsApp y Ubicación) */
.contacto-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn-cta-whatsapp,
.btn-location-modal {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-cta-whatsapp {
  background-color: #fd8549;
  color: white;
  box-shadow: 0 4px 12px rgba(253, 133, 73, 0.3);
}

.btn-location-modal {
  background: var(--p-blue);
  color: var(--dark);
}

/* --- SECCIÓN TIMELINE --- */
.timeline-title {
  margin-bottom: 25px;
  color: var(--dark);
  font-size: 1.6rem;
  text-align: center;
}

.timeline-container {
  position: relative;
  padding-left: 35px; /* Espacio justo para móvil */
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  height: 100%;
  width: 3px;
  background: #eef2f6;
}

.step {
  position: relative;
  margin-bottom: 25px;
}

.step-number {
  position: absolute;
  left: -42px; /* Alineado con el padding-left */
  width: 26px;
  height: 26px;
  background: var(--white);
  border: 3px solid var(--p-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 2;
}

.step.success .step-number {
  background: var(--p-green);
  border-color: var(--p-green);
  color: white;
}

.step-content h4 {
  margin: 0 0 5px 0;
  font-size: 1.05rem;
}
.step-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Botones de descarga de documentos */
.docs-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn-doc-orange,
.btn-doc-blue {
  padding: 10px 15px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: 0.3s;
}

.btn-doc-orange {
  border: 2px solid var(--p-orange);
  color: var(--p-orange);
}
.btn-doc-blue {
  border: 2px solid var(--p-blue);
  color: var(--dark);
}

/* --- MODAL CONFIG --- */
.modal-kinder {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content-card {
  background: white;
  width: 90%;
  max-width: 450px;
  border-radius: 25px;
  padding: 20px;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: 0.4s ease;
}

.modal-kinder.show .modal-content-card {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}

/* ==========================================================
   RESPONSIVE (TABLETS Y PC)
   ========================================================== */

@media (min-width: 768px) {
  .contacto-actions {
    flex-direction: row;
  }
  .btn-cta-whatsapp,
  .btn-location-modal {
    width: auto;
    flex: 1;
  }

  .docs-timeline {
    flex-direction: row;
  }
  .btn-doc-orange,
  .btn-doc-blue {
    flex: 1;
  }

  .contacto-info,
  .inscripcion-timeline {
    padding: 40px;
  }
  .timeline-container {
    padding-left: 45px;
  }
  .step-number {
    left: -53px;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 991px) {
  .contacto-kinder {
    padding-top: 200px !important;
  }
  .intro-contacto .section-title {
    font-size: 2rem;
    margin-top: 30px;
  }
}

/* Refuerzo final debajo del stack */
.reuerzo-wa {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
}
.reuerzo-wa a {
  color: var(--p-orange);
  font-weight: 700;
  text-decoration: underline;
}
