/* --- VARIABLES Y RESET --- */
:root {
    --primary: #00798C;
    --primary-dark: #005a69;
    --secondary: #edae49;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f9fa;
    --white: #ffffff;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-dark); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-dark); color: var(--white); }
.text-center { text-align: center; }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary { background-color: var(--secondary); color: var(--text-dark); }
.btn-primary:hover { transform: translateY(-3px); background-color: #f0be6d; }

.btn-secondary { background-color: var(--white); color: var(--primary); margin-left: 10px; }
.btn-secondary:hover { transform: translateY(-3px); background-color: #f0f0f0; }

/* --- HEADER --- */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.dot { color: var(--secondary); font-size: 2rem; line-height: 0; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background-color: #25D366;
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-nav:hover { background-color: #1ebc57; }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* --- HERO (PORTADA) --- */
.hero {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    min-height: 90vh;
    overflow: hidden;
}

.hero-content { flex: 1; max-width: 600px; padding-left: 5%; }

.badge {
    background-color: var(--primary-light);
    color: var(--primary);
    background: rgba(0, 121, 140, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; color: var(--primary-dark); }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; max-width: 90%; }

.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }

/* --- NUEVO ESTILO PARA EL CONTENEDOR DEL LOGO --- */
.logo-blob-container {
    background-color: var(--white);
    /* Esta es la forma orgánica */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    padding: 40px; /* Espacio interno para que el logo no toque los bordes */
    /* Sombra amarilla/naranja */
    box-shadow: 20px 20px 0 var(--secondary);
    max-width: 500px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    width: 100%;
    height: auto;
    /* Ya no necesitamos trucos de transparencia porque el fondo es blanco */
}


/* --- SERVICIOS --- */
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.line { width: 80px; height: 4px; background-color: var(--secondary); margin: 0 auto 20px; border-radius: 2px; }
.section-header p { margin-bottom: 50px; color: var(--text-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.card:hover { transform: translateY(-10px); border-bottom-color: var(--secondary); }

.icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.color-1 { background-color: #e0f7fa; color: #00acc1; }
.color-2 { background-color: #f3e5f5; color: #8e24aa; }
.color-3 { background-color: #fff3e0; color: #fb8c00; }
.color-4 { background-color: #e8f5e9; color: #43a047; }

.card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.card-desc { font-size: 0.9rem; margin-bottom: 20px; color: var(--text-light); }

.feature-list li {
    font-size: 0.85rem; margin-bottom: 8px; color: var(--text-dark); display: flex; align-items: center; gap: 8px;
}
.feature-list i { color: var(--secondary); font-size: 0.8rem; }

.schedule-box {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}
.schedule-box h4 { font-size: 0.9rem; margin-bottom: 5px; color: #f57f17; }
.schedule-box p { font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }

/* --- METODOLOGÍA --- */
.methodology-container { display: flex; align-items: center; gap: 50px; }
.met-text { flex: 1; }
.met-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.met-img { flex: 1; }
.met-img img { border-radius: 15px; box-shadow: var(--shadow); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- UBICACIÓN --- */
.line-white { background-color: var(--white); opacity: 0.5; }
.locations-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.loc-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.loc-card h3 { color: var(--secondary); margin-bottom: 10px; font-size: 1.4rem; }
.loc-card i { margin-right: 10px; }
.loc-card p { margin-bottom: 20px; font-size: 1rem; opacity: 0.9; }

.map-frame iframe { border-radius: 8px; height: 250px; }

/* --- FOOTER --- */
footer { background-color: #222; color: #ccc; padding: 60px 0 20px; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-brand h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px 0;
}
.small-note { font-size: 0.8rem; opacity: 0.6; }

.social-icons { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-icons a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
}
.social-icons a:hover { background: var(--secondary); }

.copyright { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* --- ANIMACIONES Y RESPONSIVE --- */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right { opacity: 0; transition: all 0.6s ease-out; }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; margin-top: 60px; padding: 40px 20px; }
    .hero-content { padding-left: 0; max-width: 100%; margin-bottom: 40px; }
    .hero-image { justify-content: center; width: 100%; }
    .methodology-container { flex-direction: column; }
    .logo-blob-container { margin-top: 30px; box-shadow: 10px 10px 0 var(--secondary); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 80px; left: 0; width: 100%;
        background-color: var(--white); flex-direction: column;
        padding: 30px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%); transition: var(--transition);
    }
    .nav-links.active { transform: translateY(0); }
    .hero h1 { font-size: 2rem; }
}