/* =================================
   Reset, Fuentes y Variables
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importa una fuente bonita de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin-top: 0;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables de color para que sea fácil cambiarlo después */
:root {
    --primary-color: #173150; /* Color primario azul */
    --secondary-color: #22C9C3; /* Color secundario turquesa */
    --text-light: #ffffff;
    --text-dark: #333;
}

/* =================================
   Encabezado Principal
   ================================= */
.main-header {
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: var(--text-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* 1. Barra superior (logo y acciones) */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; /* Ocupa el espacio disponible */
}

.top-bar-right {
    justify-content: flex-end; /* Alinea los botones a la derecha */
}

.logo {
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
}

.logo-btn {
    display: inline-block;
    margin-right: 10px;
    margin-left: -50px;
    transition: all 0.3s ease;
}

.logo-btn:hover {
    transform: scale(1.1);
}

.logo-image {
    height: 95px;
    width: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 500;
}

.top-bar-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--text-light);
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.top-bar-btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}


/* 2. Barra de Navegación */
.main-nav {
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
}

.nav-container {
    display: flex;
    justify-content: center; /* Centra el menú */
    align-items: center;
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    padding: 20px 0;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Efecto de subrayado al pasar el ratón */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Menú desplegable (dropdown) - Lo mantuve de tu código original */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 200px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text-light);
    padding: 12px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menú hamburguesa (lo mantenemos para móviles) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}


/* =================================
/* =========================================================
   Hero Section (CON ESTILOS PARA EL SLIDER)
   ========================================================= */
.hero {
    height: 100vh;
    position: relative; /* Clave para posicionar los slides dentro */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden; /* Evita que algo se salga */
}

/* Capa oscura sobre la imagen de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2; /* Se pone encima del slider pero debajo del texto */
}

/* Contenedor del slider */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás de la capa oscura */
}

/* Estilo para cada slide individual */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    
    /* La magia de la transición suave */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Duración de la transición (fade) */
}

/* La clase "active" hace visible el slide */
.slide.active {
    opacity: 1;
}


/* El contenido de texto se pone encima de todo */
.hero-content {
    position: relative;
    z-index: 3; /* Encima de la capa oscura y el slider */
}

.hero-welcome {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-top: -70px;
    font-weight: 400;
}

/* Especialidades Section */
.especialidades {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.especialidades h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #173150;
    margin-bottom: 10px;
    font-weight: 700;
}

.especialidades-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.especialidad-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.especialidad-card:nth-child(2n) {
    animation-delay: -2s;
}

.especialidad-card:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.especialidad-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(23, 49, 80, 0.3);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(23, 49, 80, 0.7) 0%,
        rgba(34, 201, 195, 0.6) 100%);
    transition: all 0.3s ease;
}

.especialidad-card:hover .card-overlay {
    background: linear-gradient(135deg,
        rgba(23, 49, 80, 0.8) 0%,
        rgba(34, 201, 195, 0.7) 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.card-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
    margin-bottom: 0;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 20px;
    background-color: #ffffff;
}

.blog-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #173150;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-preview > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(23, 49, 80, 0.2);
    border-color: #22C9C3;
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
    position: relative;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #173150;
    font-weight: 600;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.blog-date {
    font-size: 0.9rem;
    color: #22C9C3;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.read-more {
    color: #173150;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more {
    color: #22C9C3;
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
}

/* Section Divider */
.section-divider {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    width: 100%;
}

.line-1 {
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(23, 49, 80, 0.1) 30%, transparent 70%);
    clip-path: polygon(0 40%, 100% 20%, 100% 60%, 0 80%);
}

.line-2 {
    height: 100%;
    background: linear-gradient(135deg, transparent 20%, rgba(34, 201, 195, 0.15) 50%, transparent 80%);
    clip-path: polygon(0 60%, 100% 30%, 100% 70%, 0 100%);
}

.line-3 {
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(23, 49, 80, 0.08) 70%, transparent 100%);
    clip-path: polygon(0 0%, 100% 40%, 100% 80%, 0 40%);
}

/* About Us Section */
.about-us {
    padding: 80px 20px;
    background-color: #ffffff;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #173150;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Historia Section */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.story-text h3 {
    font-size: 2rem;
    color: #173150;
    margin-bottom: 25px;
    font-weight: 600;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mission Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.mission-card, .vision-card, .foundation-card, .objective-card {
    background: linear-gradient(135deg, rgba(23, 49, 80, 0.05) 0%, rgba(34, 201, 195, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card:hover, .vision-card:hover, .foundation-card:hover, .objective-card:hover {
    transform: translateY(-10px);
    border-color: #22C9C3;
    box-shadow: 0 20px 40px rgba(23, 49, 80, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 2.2rem;
    color: white;
}

.mission-card:hover .card-icon, .vision-card:hover .card-icon,
.foundation-card:hover .card-icon, .objective-card:hover .card-icon {
    transform: scale(1.1);
}

.mission-card h3, .vision-card h3, .foundation-card h3, .objective-card h3 {
    font-size: 1.5rem;
    color: #173150;
    margin-bottom: 20px;
    font-weight: 600;
}

.mission-card p, .vision-card p, .foundation-card p, .objective-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Values Section */
.values-section {
    text-align: center;
}

.values-section h3 {
    font-size: 2rem;
    color: #173150;
    margin-bottom: 40px;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-item {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(23, 49, 80, 0.05) 0%, rgba(34, 201, 195, 0.05) 100%);
}

.value-item i {
    font-size: 2.5rem;
    color: #22C9C3;
    margin-bottom: 20px;
}

.value-item h4 {
    font-size: 1.3rem;
    color: #173150;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #173150;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #22C9C3;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px #22C9C3;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #173150 0%, #1a4a6b 50%, #22C9C3 100%);
    color: white;
    padding: 20px 20px 15px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22C9C3, #173150, #22C9C3);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-section h4 {
    color: #22C9C3;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #22C9C3;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section ul li a:hover {
    color: #22C9C3;
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(34, 201, 195, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(34, 201, 195, 0.3);
}

.social-links a:hover {
    background: #22C9C3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 201, 195, 0.4);
    border-color: #22C9C3;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 2px solid rgba(34, 201, 195, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* Imagen del footer */
.footer-brand-image {
    margin: 10px 0;
    animation: fadeIn 1s ease-in;
}

.footer-brand-image img {
    height: 100px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.footer-brand-image img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Iconos de redes sociales del footer */
.footer-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 5px;
}

.footer-social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.footer-social-link:hover::before {
    transform: scale(1);
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

/* Colores específicos para cada red social */
.footer-social-link.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 89, 152, 0.3);
}

.footer-social-link.facebook:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.5);
}

.footer-social-link.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.footer-social-link.whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.footer-social-link.instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: white;
    box-shadow: 0 4px 10px rgba(131, 58, 180, 0.3);
}

.footer-social-link.instagram:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close:hover {
    color: #8B4513;
}

.modal-content h2 {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: white;
    padding: 30px 40px;
    margin: 0;
    border-radius: 20px 20px 0 0;
    font-size: 2rem;
}

.modal-body {
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.modal-body h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 15px;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #8B4513;
}

.team-member h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.1);
}

.service-item i {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Specialty Sections */
.specialty-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.specialty-section h3 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialty-section h3 i {
    font-size: 1.2rem;
}

.specialty-section p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Mission Vision */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mv-item {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: white;
    padding: 30px;
    border-radius: 15px;
}

.mv-item h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-item p {
    color: #f8f9fa;
    line-height: 1.7;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modales de Blog */
.blog-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.blog-modal-header {
    position: relative;
    margin-bottom: 30px;
}

.blog-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.blog-modal-category {
    display: inline-block;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-modal h2 {
    color: #173150;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.blog-modal-date {
    color: #22C9C3;
    font-size: 1rem;
    font-weight: 500;
}

.blog-modal-body h3 {
    color: #173150;
    font-size: 1.6rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.blog-modal-body h3:first-child {
    margin-top: 0;
}

.blog-modal-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.blog-modal-body ul {
    list-style: none;
    margin: 20px 0;
}

.blog-modal-body li {
    position: relative;
    padding: 10px 0 10px 30px;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #22C9C3;
    font-weight: bold;
    font-size: 1.2rem;
}

.blog-modal-body strong {
    color: #173150;
    font-weight: 600;
}

.blog-modal-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.blog-modal-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 49, 80, 0.3);
    font-weight: 600;
}

.blog-modal-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 49, 80, 0.4);
}

/* Modales de Especialidades */
.especialidad-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    position: relative;
    margin-bottom: 30px;
}

.modal-hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.especialidad-modal h2 {
    color: #173150;
    font-size: 2.2rem;
    margin-bottom: 0;
    text-align: center;
}

.especialidad-modal h3 {
    color: #173150;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.especialidad-modal p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.especialidad-modal ul {
    list-style: none;
    margin: 15px 0;
}

.especialidad-modal li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #666;
    line-height: 1.5;
}

.especialidad-modal li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #22C9C3;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.modal-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 49, 80, 0.3);
}

.modal-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 49, 80, 0.4);
}

/* Logo Flotante */
.floating-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-logo:hover {
    transform: scale(1.1);
}

.floating-logo img {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Botón Flotante de Contacto */
.floating-contact {
    position: fixed;
    left: 20px;
    top: 90%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.floating-contact:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.floating-contact i {
    font-size: 1.2rem;
}

.floating-contact span {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(34, 201, 195, 0.6);
    }
}

/* Hero Logo */
.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-logo {
    width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.hero h1 {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .especialidades-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .especialidad-card {
        height: 220px;
    }

    .especialidad-modal .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-hero-image {
        height: 150px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .especialidades-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .especialidad-card {
        height: 200px;
    }

    .especialidades h2 {
        font-size: 2rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .logo-btn {
        margin-right: 10px;
    }

    .logo-image {
        height: 35px;
    }

    .floating-logo {
        top: 15px;
        right: 15px;
    }

    .floating-logo img {
        width: 65px;
    }

    .hero-title-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-logo {
        width: 150px;
    }

    .floating-contact {
        left: 15px;
        padding: 12px 16px;
    }

    .floating-contact span {
        font-size: 0.9rem;
    }

    .floating-contact i {
        font-size: 1.1rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .story-text h3 {
        font-size: 1.7rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .section-divider {
        height: 80px;
    }

    .line-1 {
        clip-path: polygon(0 50%, 100% 30%, 100% 70%, 0 90%);
    }

    .line-2 {
        clip-path: polygon(0 70%, 100% 40%, 100% 80%, 0 100%);
    }

    .line-3 {
        clip-path: polygon(0 10%, 100% 50%, 100% 90%, 0 50%);
    }

    .top-bar {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 150px;
        flex-direction: column;
        background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 10px;
    }

    .nav-menu .nav-link {
        color: white;
        font-size: 1.2rem;
        padding: 15px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-description p {
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding: 20px 30px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-description p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 30px 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-image img {
        height: 100px;
    }

    .footer-social-icons {
        gap: 12px;
    }

    .footer-social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


/* =========================================================
   Estilos para el Modal de Contacto (VERSIÓN FINAL)
   ========================================================= */

.modal-content h2 {
    background: var(--primary-color);
    color: white;
    padding: 25px 30px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 30px;
}

.modal-contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* ¡NUEVO! Centramos los botones horizontalmente */
    align-items: center; 
}

.modal-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido dentro del botón */
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    
    /* ¡CAMBIO CLAVE! Ambos botones tienen el mismo estilo */
    background-color: var(--primary-color);
    color: var(--text-light);

    /* ¡NUEVO! Definimos el tamaño del botón */
    width: 90%; /* Ocupará el 90% del espacio del modal */
    max-width: 350px; /* Pero nunca será más grande que 350px */
}

.modal-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    /* El efecto hover ahora aplica a ambos por igual */
    background-color: #22C9C3; 
    border-color: #22C9C3;
}

.modal-contact-btn i {
    font-size: 1.8rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.modal-contact-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-contact-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-contact-btn strong {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Estilos específicos para Blog.html */
.active-blog {
    color: #22C9C3 !important;
}

.blog-hero {
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 150px;
}

.blog-hero-content {
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.blog-breadcrumb {
    font-size: 1rem;
}

.blog-breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.blog-breadcrumb a:hover {
    opacity: 1;
}

.blog-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-article {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-article:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.article-image {
    position: relative;
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.article-meta i {
    color: #22C9C3;
    margin-right: 8px;
}

.article-content h2 {
    color: #173150;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h3 {
    color: #173150;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content ul {
    list-style: none;
    margin: 20px 0;
}

.article-content li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #666;
    line-height: 1.6;
}

.article-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #22C9C3;
    font-weight: bold;
    font-size: 1.1rem;
}

.article-cta {
    margin-top: 30px;
    text-align: center;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 20px;
    border: 2px solid #173150;
    border-radius: 50px;
    color: #173150;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #173150;
    color: white;
}

.page-btn.next {
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    color: white;
    border-color: transparent;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #173150;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #22C9C3;
}

.category-list span {
    color: #999;
    font-size: 0.9rem;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.recent-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-content h4 {
    color: #173150;
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
}

.recent-content span {
    color: #999;
    font-size: 0.85rem;
}

.cta-widget {
    background: linear-gradient(135deg, rgba(23, 49, 80, 0.05) 0%, rgba(34, 201, 195, 0.05) 100%);
    border: 2px solid #22C9C3;
}

.cta-widget h3 {
    color: #173150;
    text-align: center;
}

.cta-widget p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Responsive para Blog */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-hero {
        margin-top: 120px;
        padding: 60px 0 40px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* --- Ya no necesitamos estilos específicos para .phone-btn o .whatsapp-btn --- */
/* --- Así que los hemos eliminado para simplificar el código --- */

/* Children Vision Section */
.children-vision-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.children-vision-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, rgba(34, 201, 195, 0.05), rgba(23, 49, 80, 0.05));
    border-radius: 50%;
    transform: rotate(-15deg);
    z-index: 1;
}

.children-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Children Image */
.children-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 15px;
}

.children-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.children-image-container:hover .children-image {
    transform: scale(1.02);
}

.children-image-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 3;
}

.children-badge {
    background: linear-gradient(135deg, #22C9C3, #173150);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(34, 201, 195, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Children Info */
.children-info {
    padding-left: 20px;
}

.children-header {
    margin-bottom: 30px;
}

.children-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 201, 195, 0.1);
    color: #22C9C3;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid rgba(34, 201, 195, 0.2);
}

.children-header h2 {
    font-size: 2.5rem;
    color: #173150;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.children-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Children Specialties */
.children-specialties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.specialty-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-left: 4px solid #22C9C3;
    transition: all 0.3s ease;
}

.specialty-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.specialty-item i {
    color: #22C9C3;
    font-size: 1.5rem;
    margin-top: 5px;
    min-width: 24px;
}

.specialty-item h4 {
    font-size: 1.1rem;
    color: #173150;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.specialty-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Children Stats */
.children-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 2px solid rgba(34, 201, 195, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #22C9C3;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Children CTA */
.children-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.children-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #173150, #22C9C3);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(23, 49, 80, 0.2);
    width: fit-content;
}

.children-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(23, 49, 80, 0.3);
    background: linear-gradient(135deg, #1a3557, #25d4ce);
}

.children-cta-note {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.children-cta-note i {
    color: #22C9C3;
}

/* Responsive Design for Children Section */
@media (max-width: 1024px) {
    .children-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .children-info {
        padding-left: 0;
    }

    .children-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .children-specialties {
        grid-template-columns: 1fr;
    }

    .children-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .children-vision-section {
        padding: 60px 0;
    }

    .children-header h2 {
        font-size: 2rem;
    }

    .children-image {
        height: 300px;
    }

    .children-image-container {
        padding: 10px;
    }

    .children-badge {
        top: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .children-stats {
        padding: 20px;
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .children-cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .children-content {
        gap: 30px;
    }

    .children-header h2 {
        font-size: 1.8rem;
    }

    .children-description {
        font-size: 1rem;
    }

    .children-image {
        height: 250px;
    }

    .specialty-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .children-stats {
        flex-direction: column;
        gap: 15px;
    }

    .children-cta-button {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}

/* =================================
   Formulario de Contacto Estilizado
   ================================= */
.optic-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.optic-form {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  background: linear-gradient(135deg, #173150, #0e2236, #173150);
  border-radius: 20px;
  box-shadow:
    10px 10px 20px rgba(23, 49, 80, 0.6),
    -10px -10px 20px rgba(34, 201, 195, 0.126),
    inset 2px 2px 5px rgba(34, 201, 195, 0.3),
    inset -2px -2px 5px rgba(23, 49, 80, 0.5);
  background-image: radial-gradient(
      circle,
      rgba(34, 201, 195, 0.15) 1px,
      transparent 1px
    ),
    radial-gradient(circle, rgba(34, 201, 195, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px;
}

.optic-form-group {
  position: relative;
  margin-bottom: 20px;
}

.optic-form-label {
  display: block;
  color: #22C9C3;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s cubic-bezier(0.5, 0, 0.1, 1);
}

.optic-form-input,
.optic-form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(34, 201, 195, 0.3);
  background: linear-gradient(135deg, #0e2236, #173150);
  border-radius: 12px;
  font-weight: 500;
  box-shadow:
    6px 6px 12px rgba(23, 49, 80, 0.6),
    -6px -6px 12px rgba(34, 201, 195, 0.2),
    inset 2px 2px 4px rgba(23, 49, 80, 0.5),
    inset -2px -2px 4px rgba(34, 201, 195, 0.3);
  font-size: 15px;
  color: #ffffff;
  transition:
    box-shadow 0.4s cubic-bezier(0.5, 0, 0.1, 1),
    background 0.4s cubic-bezier(0.5, 0, 0.1, 1),
    border-color 0.4s cubic-bezier(0.5, 0, 0.1, 1);
  font-family: 'Montserrat', sans-serif;
}

.optic-form-input::placeholder,
.optic-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.optic-form-input option {
  background: #173150;
  color: #ffffff;
  padding: 10px;
}

.optic-form-textarea {
  height: 100px;
  resize: vertical;
  min-height: 80px;
}

.optic-form-input:focus,
.optic-form-textarea:focus {
  outline: none;
  background: linear-gradient(135deg, #0e2236, #173150);
  border-color: #22C9C3;
  box-shadow:
    4px 4px 8px rgba(23, 49, 80, 0.7),
    -4px -4px 8px rgba(34, 201, 195, 0.3),
    inset 4px 4px 8px rgba(23, 49, 80, 0.6),
    inset -4px -4px 8px rgba(34, 201, 195, 0.4),
    0 0 0 3px rgba(34, 201, 195, 0.1);
}

.optic-form-input:focus + .optic-form-label,
.optic-form-textarea:focus + .optic-form-label {
  color: #22C9C3;
}

.optic-form-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22C9C3, #1ab5af, #22C9C3);
  border: 0px solid rgba(34, 201, 195, 0);
  border-radius: 12px;
  color: #173150;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 14px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    10px 10px 20px rgba(23, 49, 80, 0.6),
    -10px -10px 20px rgba(34, 201, 195, 0.4),
    inset 2px 2px 5px rgba(255, 255, 255, 0.3),
    inset -2px -2px 5px rgba(23, 49, 80, 0.3);
  transition:
    transform 0.3s cubic-bezier(0.5, 0, 0.1, 1),
    box-shadow 0.3s cubic-bezier(0.5, 0, 0.1, 1),
    background 0.4s cubic-bezier(0.5, 0, 0.1, 1);
  font-family: 'Montserrat', sans-serif;
}

.optic-form-button:hover {
  background: linear-gradient(135deg, #1ab5af, #22C9C3, #1ab5af);
  box-shadow:
    12px 12px 24px rgba(23, 49, 80, 0.7),
    -12px -12px 24px rgba(34, 201, 195, 0.5),
    inset 2px 2px 5px rgba(255, 255, 255, 0.4),
    inset -2px -2px 5px rgba(23, 49, 80, 0.4);
  transform: translateY(-3px);
}

.optic-form-button:active {
  background: linear-gradient(135deg, #178f8a, #22C9C3, #178f8a);
  box-shadow:
    6px 6px 12px rgba(23, 49, 80, 0.6),
    -6px -6px 12px rgba(34, 201, 195, 0.3),
    inset 4px 4px 8px rgba(23, 49, 80, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}

/* Responsive para el formulario */
@media (max-width: 768px) {
  .optic-form {
    padding: 25px 20px;
    max-width: 100%;
  }

  .optic-form-input,
  .optic-form-textarea {
    font-size: 14px;
    padding: 12px 14px;
  }

  .optic-form-button {
    padding: 14px;
    font-size: 13px;
  }
}

/* =================================
   Conozca a Nuestros Expertos Section
   ================================= */
.expert-preview-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.expert-preview-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 201, 195, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.expert-preview-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(23, 49, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.expert-preview-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expert-preview-header h2 {
  font-size: 2.8rem;
  color: #173150;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.expert-preview-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #173150, #22C9C3, #173150);
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.expert-preview-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 25px auto 0;
}

.expert-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.expert-info {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.expert-info h3 {
  font-size: 2.2rem;
  color: #173150;
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.expert-info h3::before {
  content: '👨‍⚕️';
  margin-right: 10px;
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.expert-position {
  font-size: 1.3rem;
  color: #22C9C3;
  font-weight: 600;
  margin-bottom: 10px;
  animation: fadeIn 1.5s ease-out;
}

.expert-credentials {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 3px solid #22C9C3;
  animation: fadeIn 1.7s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.expert-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeIn 1.9s ease-out;
}

.expert-highlights {
  background: linear-gradient(135deg, rgba(23, 49, 80, 0.05) 0%, rgba(34, 201, 195, 0.05) 100%);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 4px solid #22C9C3;
  animation: slideInLeft 2.1s ease-out;
  transition: all 0.3s ease;
}

.expert-highlights:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(34, 201, 195, 0.2);
}

.expert-highlights h4 {
  color: #173150;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.expert-highlights ul {
  list-style: none;
  padding: 0;
}

.expert-highlights ul li {
  color: #555;
  padding: 10px 0 10px 30px;
  position: relative;
  transition: all 0.3s ease;
}

.expert-highlights ul li:hover {
  color: #173150;
  transform: translateX(5px);
}

.expert-highlights ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22C9C3;
  font-weight: bold;
  font-size: 1.2rem;
  animation: checkPulse 2s ease-in-out infinite;
}

.expert-highlights ul li:nth-child(1)::before {
  animation-delay: 0s;
}

.expert-highlights ul li:nth-child(2)::before {
  animation-delay: 0.2s;
}

.expert-highlights ul li:nth-child(3)::before {
  animation-delay: 0.4s;
}

.expert-highlights ul li:nth-child(4)::before {
  animation-delay: 0.6s;
}

@keyframes checkPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.expert-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #173150, #22C9C3);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(23, 49, 80, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 2.3s ease-out;
}

.expert-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.expert-cta-button:hover::before {
  left: 100%;
}

.expert-cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(34, 201, 195, 0.4);
  background: linear-gradient(135deg, #22C9C3, #173150);
}

.expert-cta-button i {
  font-size: 1.2rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.expert-image-container {
  position: relative;
  animation: slideInRight 1s ease-out;
  perspective: 1000px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.expert-image-container::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(23, 49, 80, 0.2), rgba(34, 201, 195, 0.2));
  border-radius: 20px;
  z-index: -1;
  animation: rotate3d 10s linear infinite;
}

@keyframes rotate3d {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.expert-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(23, 49, 80, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.expert-image:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 30px 80px rgba(34, 201, 195, 0.4);
}

/* Responsive para Expert Section */
@media (max-width: 992px) {
  .expert-preview-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .expert-image-container {
    order: -1;
  }

  .expert-preview-header h2 {
    font-size: 2.2rem;
  }

  .expert-info h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .expert-preview-section {
    padding: 60px 0;
  }

  .expert-preview-header {
    margin-bottom: 40px;
  }

  .expert-preview-header h2 {
    font-size: 1.9rem;
  }

  .expert-info h3 {
    font-size: 1.6rem;
  }

  .expert-highlights {
    padding: 20px;
  }

  .expert-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   FOOTER COMPACTO - Solo Copyright y Redes
   ======================================== */

/* Ocultar todo el contenido principal del footer */
.footer-content {
    display: none !important;
}

/* Reducir padding del footer */
.footer {
    padding: 20px 20px 15px !important;
}

/* Eliminar bordes y sombras del footer-bottom */
.footer-bottom {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

/* Eliminar cualquier sombra o borde del container */
.footer .container {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Asegurar que no haya pseudo-elementos con sombras */
.footer-bottom::before,
.footer-bottom::after {
    display: none !important;
    box-shadow: none !important;
}

/* Reducir espaciado entre elementos */
.footer-bottom {
    gap: 15px !important;
}

/* Eliminar sombras de todos los elementos hijos */
.footer * {
    box-shadow: none !important;
}

/* =================================
   Botón WhatsApp Móvil - Sección Contacto
   ================================= */

/* Ocultar el botón de WhatsApp en desktop por defecto */
.mobile-whatsapp-button {
    display: none;
}

/* Estilos del botón de WhatsApp */
.whatsapp-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    text-align: center;
}

.whatsapp-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-cta-btn i {
    font-size: 1.5rem;
}

/* Media query para móviles - Mostrar botón WhatsApp y ocultar formulario */
@media (max-width: 768px) {
    /* Mostrar botón de WhatsApp en móviles */
    .mobile-whatsapp-button {
        display: block;
        width: 100%;
        padding: 20px 0;
    }

    /* Ocultar formulario en móviles */
    .contact-form.optic-form-container {
        display: none !important;
    }
}