/* ============================================= */
/* VARIABLES GLOBALES */
/* ============================================= */
:root {
    /* Colores */
    --primary: #7ebec5;
    --primary-light: #c2e5e9;
    --primary-darker: #5fa9b1;
    --primary-dark: #4a8a91;
    --white: #ffffff;
    --black: #333333;
    --text: #444444;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --whatsapp: #25D366;
    
    /* Tipografías */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-logo: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

/* ============================================= */
/* TIPOGRAFÍA */
/* ============================================= */
h1, h2, h3, h4, h5, h6,
.section-title, 
.cta-title,
.card h3,
.reason-item h3,
.footer h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

h1, .hero h1, .cta-title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2, .section-title {
    font-size: 2rem;
    letter-spacing: -0.25px;
    text-align: center; /* Centrado horizontal */
    width: 100%; /* Asegura que ocupe todo el ancho */
    top: 20px;
}

h3, .card h3, .reason-item h3 {
    font-size: 1.5rem;
}

h4, .footer h4 {
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 15px;
}

p, li, a, .btn, .nav-label {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
}

a, .btn-link {
    transition: all 0.3s ease;
}

/* ============================================= */
/* COMPONENTES REUTILIZABLES */
/* ============================================= */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
}

.header-section {
    text-align: center;
    margin-bottom: 60px;
}

.header-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-dark);
}

/* ============================================= */
/* HEADER Y NAVEGACIÓN */
/* ============================================= */
.top-bar {
    background-color: #f8f9fa; /* Color de fondo claro */
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
}

.top-bar-container {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.top-bar-item i {
    color: var(--primary); /* Usa tu color primario */
    font-size: 16px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .top-bar-item {
        justify-content: center;
        width: 100%;
    }
}
.header {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    margin-right: 15px;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.logo-text {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-darker);
    line-height: 1.2;
}

.logo-text span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    color: var(--gray-dark);
    margin-top: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav li {
    margin-left: 25px;
}

.header-nav a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
}

.header-nav a:hover {
    color: var(--primary-darker);
}

.header-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.header-nav a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-darker);
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
}

/* ============================================= */
/* BOTÓN CTA */
/* ============================================= */
.cta-menu-item {
    margin-left: 15px;
    position: relative;
}

.cta-button {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.cta-button i {
    margin-right: 10px;
    font-size: 16px;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


 /*HERO*/
 .hero {
  display: flex;
  min-height: auto;
  background-color: var(--white);
  position: relative;
}

.hero-left {
  width: calc(50% - 30px); /* 30px más estrecho que la mitad */
  padding: 2rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-right {
  width: calc(50% + 30px); /* Compensa los 30px del izquierdo */
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 500px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.title-centro {
  font-family: inherit; /* Usa la tipografía por defecto heredada del body */
  font-size: 16px !important;
  color: var(--secondary);
  line-height: 1.2; /* Mejor legibilidad */
  font-weight: 200; /* Peso normal (300 era muy delgado) */
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-transform: uppercase;
  letter-spacing: 1px;   
  margin-bottom: 0.8rem; /* Mayor espacio inferior */
  margin-top: 15px;
}

.title-vitalis {
  font-family: inherit;
  font-size: 100px !important;
  color: var(--primary);
  line-height: 1;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  margin-bottom: 0.5rem;
  margin-top: -16px;
}

.title-temuco {
  font-family: inherit;
  font-size: 16px !important;
  color: var(--secondary);
  line-height: 1;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  margin-bottom: 1rem;
  margin-top: auto;
}

.hero-left p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(95, 169, 177, 0.2);
}

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

.btn-secondary:hover {
  background-color: rgba(95, 169, 177, 0.1);
  transform: translateY(-3px);
}

.mobile-only {
  display: none;
}

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

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }

  .hero-left, .hero-right {
    width: 100%;
  }

  .hero-left {
    padding: 2rem 2rem;
    min-height: 70vh;
    /* Asegúrate de que la ruta sea correcta desde la ubicación del archivo HTML */
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('https://vitalistemuco.cl/wp-content/uploads/2022/10/Banner-Facebook-1280x535.jpg') no-repeat center center;
    background-size: cover;
  }

  .hero-left::before {
    display: none;
  }

  .hero-right {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }
}


@media (max-width: 576px) {
  .hero-left {
    padding: 1.5rem 1.5rem;
    min-height: 70vh;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================= */
/* ESTILOS PARA TARJETAS DE ESPECIALIDADES */
/* ============================================= */

  .title-especialidades {
    /* Estilo tipográfico */
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Equivalente a 24px (tamaño estándar h2) */
    font-weight: 600; /* Semi-negrita para jerarquía */
    line-height: 1.3; /* Buen espaciado para legibilidad */
    
    /* Color y decoración */
    color: var(--primary); /* Usando tu variable de color principal */
    text-transform: uppercase; /* Opcional: para estilo de categoría */
    letter-spacing: 0.05em; /* Espaciado entre letras sutil */
    
    /* Espaciado */
    margin: 3.5rem 0 1rem; /* 24px arriba, 16px abajo */
    padding-bottom: 0.5rem; /* Espacio para posible subrayado */
    
    /* Alineación */
    text-align: center; /* o left según tu diseño */
    
    /* Efectos responsivos */
    @media (max-width: 768px) {
      font-size: 1.25rem; /* Reducción en móviles */
      margin: 1.25rem 0 0.75rem;
    }
}

/* CONTENEDOR PRINCIPAL */
.grid-container {
    display: grid;
    background-color: #f8f9fa;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* TARJETAS INDIVIDUALES */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* CONTENIDO DE LA TARJETA */
.card-content {
    padding: 15px;
    position: relative;
    flex-grow: 1; 
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 24px;
}

.card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* PIE DE TARJETA */

.card-footer {
  padding: 15px 30px;
  background: rgba(126, 190, 197, 0.1);
  border-top: 1px solid rgba(126, 190, 197, 0.2);
  margin-top: auto; /* Clave para la alineación */
  margin-top: auto; /* Empuja el footer hacia abajo */
  padding-top: 15px; /* Espacio entre contenido y footer */
  }

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* EFECTOS ESPECIALES */
.card:hover .card-icon {
    background: var(--primary);
    color: white;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
}

/* ============================================= */
/* SECCIÓN NOSOTROS */
/* ============================================= */
.about-section {
    margin-bottom: 60px;
}

.about-card {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission, .vision {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.mission:before, .vision:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.mission h3, .vision h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission h3 i, .vision h3 i {
    font-size: 1.5rem;
}
/* ============================================= */
/* SECCIÓN cta */
/* ============================================= */
.cta-section {
    color: white;
    padding: 60px 20px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  }
  
  .cta-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .cta-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
  }
  
  .cta-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    bottom: -10px;
    left: 20%;
  }
  
  .cta-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
  }
  
  /* Grid de razones */
  .reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
  }
  
  .reason-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .reason-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .reason-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #7ebec5;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    text-align: center;
  }
  
  .reason-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
  }
  
  .reason-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
  }
  
  /* Botón de CTA */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #ff5786;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
  }
  
  .btn-primary i {
    margin-right: 10px;
    font-size: 1.2rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .cta-title {
      font-size: 2rem;
    }
    
    .cta-subtitle {
      font-size: 1rem;
    }
    
    .reasons-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .reason-item {
      padding: 25px 20px;
    }
  }

/* ============================================= */
/* SECCIÓN EQUIPO */
/* ============================================= */
.team-section {
    padding: 60px 0;
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--white);
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
}

.member-name {
    margin-bottom: 5px;
}

.member-position {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.member-specialty {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: var(--black);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.member-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 350px; /* Altura consistente */
  padding: 20px;
  border: 1px solid #eee; /* Opcional: solo para visualización */
}

.member-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.member-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.member-position {
  color: var(--primary);
  margin-bottom: 15px;
}

.member-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: auto; /* Magia para alineación */
  transition: all 0.3s;
  width: 80%;
  max-width: 200px;
}

.member-btn:hover {
  background-color: var(--primary-dark);
}

/* Estilos del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
  animation: modalFadeIn 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  min-height: 60vh; /* Altura mínima para mejor visualización */
}

.modal-info {
  margin: 25px 0;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #444;
}

.modal-subtitle {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 500;
}

.close-btn {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
  color: #333;
  text-decoration: none;
}

.modal-close {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
  display: block;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.modal-close:hover {
  background-color: var(--primary-dark); /* Asegúrate de definir esta variable */
  transform: translateY(-2px);
}

.modal h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}

/* Efecto de entrada mejorado */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 10% auto;
  }
  
  .modal h3 {
    font-size: 1.5rem;
  }
  
  .modal-subtitle {
    font-size: 1.1rem;
  }
  
  .modal-info {
    font-size: 1rem;
  }
  
  .close-btn {
    right: 15px;
    top: 10px;
    font-size: 28px;
  }
  
  .modal-close {
    padding: 10px 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 15% auto;
    padding: 15px;
  }
  
  .modal h3 {
    font-size: 1.3rem;
  }
  
  .modal-subtitle {
    margin-bottom: 15px;
  }
  
  .modal-info {
    margin: 15px 0;
    line-height: 1.6;
  }
}

/* ============================================= */
/* FOOTER */
/* ============================================= */
.footer {
    background: var(--primary-darker);
    color: var(--white);
    padding: 70px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer p {
    opacity: 0.8;
    margin-bottom: 20px;
    color: var(--white);
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    color: #e0e0e0;
}

.footer-links li {
    margin-bottom: 12px;
    color: #e0e0e0
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.8;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    color: var(--white);
    opacity: 0.8;
}

.contact-info i {
    margin-right: 12px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s;
    opacity: 0.8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--white);
}

/* ============================================= */
/* MENÚ INFERIOR MÓVIL */
/* ============================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 100;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    width: 25%;
    padding: 5px 0;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.3s;
    font-size: 18px;
}

.nav-icon.primary {
    background: var(--primary);
    color: var(--white);
}

.nav-icon.light {
    background: var(--primary-light);
    color: var(--primary-darker);
}

.nav-icon.whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-darker);
    transition: all 0.3s;
    text-align: center;
    line-height: 1.2;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item:hover .nav-label {
    color: var(--primary-dark);
}

/* ============================================= */
/* ANIMACIONES */
/* ============================================= */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1); }
    75% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ============================================= */
/* MEDIA QUERIES (RESPONSIVE) */
/* ============================================= */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .logo-img {
        height: 60px;
        margin-right: 10px;
    }
    
    .header-nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    
    .header-nav ul.active {
        display: flex;
    }
    
    .header-nav li {
        margin: 12px 0;
        text-align: center;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .cta-menu-item {
        margin: 15px 0 0 0;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid var(--gray-medium);
    }
    
    .header-nav ul.active .cta-button {
        margin: 0 auto;
        display: inline-block;
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .cta-button {
        min-width: 200px;
        padding: 12px 25px;
    }
    
    .team-member {
        width: 100%;
        max-width: 350px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 25px;
    }
    
    h1, .hero h1, .cta-title {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    h3, .card h3, .reason-item h3 {
        font-size: 1.25rem;
    }
}

/* Estilos generales para la sección de testimonios */
.testimonials-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  }
  
  .testimonials-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
  }
  
  .testimonials-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #5fa9b1;;
    margin: 15px auto 0;
  }
  
  /* Contenedor Swiper */
  .swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
  }
  
  /* Estilos de las tarjetas de testimonio */
  .testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .swiper-slide-active .testimonial-card {
    transform: scale(1.02);
  }
  
  .testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #3498db;
  }
  
  .testimonial-author {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
  }
  
  .testimonial-rating {
    color: #f1c40f;
    font-size: 1rem;
  }
  
  .testimonial-text {
    color: #7f8c8d;
    line-height: 1.7;
    font-size: 1rem;
    font-style: italic;
    position: relative;
    padding-left: 20px;
  }
  
  .testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    opacity: 0.2;
    position: absolute;
    left: -10px;
    top: -15px;
  }
  
  /* Estilos de navegación Swiper */
  .swiper-button-prev,
  .swiper-button-next {
    color: #3498db !important;
    background: rgba(255, 255, 255, 0.8);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 1.5rem !important;
    font-weight: bold;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background: white;
    transform: scale(1.1);
  }
  
  .swiper-pagination-bullet {
    background: #bdc3c7 !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
  }
  
  .swiper-pagination-bullet-active {
    background: #3498db !important;
  }
  
  /* Efecto hover para las tarjetas */
  .testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .testimonials-section {
      padding: 50px 10px;
    }
    
    .testimonials-title {
      font-size: 2rem;
      margin-bottom: 40px;
    }
    
    .testimonial-card {
      padding: 20px;
      margin: 10px;
    }
    
    .testimonial-header {
      flex-direction: column;
      text-align: center;
    }
    
    .testimonial-avatar {
      margin-right: 0;
      margin-bottom: 15px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
      display: none !important;
    }
  }
