:root {
    --primary: #1c4c8b; /* Azul Real profundo */
    --secondary: #00A8E8; /* Turquesa vibrante */
    --accent: #2D6A4F; /* Verde salud */
    --light-bg: #f5fbff; /* Celeste muy suave */
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(28, 76, 139, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Reusable Components --- */
.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(28, 76, 139, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

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

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

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #0d1b2a;
    backdrop-filter: blur(12px);
    transition: top 0.3s ease-in-out, background 0.3s, padding 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.hidden {
    top: -100px;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

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

.logo-img {
    height: 85px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-cta {
    background: var(--secondary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    background-size: cover;
    background-position: center;
    padding-top: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 168, 224, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    background: rgba(0, 168, 232, 0.15);
    bottom: 8px;
    left: 0;
    z-index: -1;
    border-radius: 5px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-content p strong {
    color: var(--accent);
    font-weight: 700;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    position: relative;
}

.hero-product-img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
    margin-top: -30px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.1);
    border-color: var(--secondary);
}

.feature-icon-wrapper {
    margin-bottom: 25px;
    display: inline-block;
}

.glass-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.3);
    transition: 0.6s;
    transform-style: preserve-3d;
}

.feature-card:hover .glass-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

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

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-card p strong {
    color: var(--secondary);
}

/* --- Process Section (Modern Line) --- */
.process {
    padding: 100px 0;
    background: #fdfeff;
    position: relative;
}

.process-wrapper {
    position: relative;
    margin-top: 50px;
}

/* La línea azul que conecta los pasos */
.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    z-index: 1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.process-item {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 6px solid #fff;
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.15);
    transition: 0.3s;
}

.process-item:hover .step-number {
    background: var(--primary);
    transform: scale(1.1);
}

.step-content h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    padding: 0 15px;
}

/* Ajuste para móviles: la línea desaparece para que no se vea mal */
@media (max-width: 768px) {
    .process-line { display: none; }
    .process-grid { gap: 50px; }
}

/* --- Products Section --- */
.products {
    padding: 100px 0;
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-top: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f4f8;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(26, 54, 93, 0.1);
}

/* Badge de la esquina */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contenedor de imagen y sombra */
.product-img-container {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-img-container img {
    max-height: 200px;
    width: auto;
    z-index: 2;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.1);
}

.img-shadow {
    width: 60px;
    height: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    filter: blur(8px);
    margin-top: 10px;
}

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

.product-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.product-tag {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Botón de compra */
.btn-buy {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.3);
}

/* --- Routes Section --- */
.routes {
    padding: 100px 0;
    background: var(--white);
}

.routes-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}

.zone-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border: 2px solid #f0f4f8;
    transition: var(--transition);
    cursor: pointer;
}

.zone-card:hover, .zone-card.active {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.1);
    transform: translateX(10px);
}

.zone-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.zone-info h3 { 
    font-size: 1.1rem; 
    color: var(--primary); 
    margin-bottom: 5px; 
}

.zone-info p { 
    font-size: 0.9rem; 
    color: var(--text-gray); 
    line-height: 1.4; 
}

.freq { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--accent); 
    text-transform: uppercase; 
    margin-top: 10px; 
    display: block; 
}

.consult-card {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.consult-card h4 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
}

.consult-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.map-container {
    position: relative;
    z-index: 1;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .routes-grid { grid-template-columns: 1fr; }
    .map-container { height: 400px; order: -1; }
}

/* --- Footer --- */
.footer {
    background: #0d1b2a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-icon:hover {
    background: var(--secondary);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero { min-height: 600px; height: auto; padding: 120px 0 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #0d1b2a;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
        order: -1;
    }
}

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-image-container {
        height: 350px;
        margin-top: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid, .process-grid, .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links li {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .footer-links li i {
        margin-bottom: 0;
    }

    .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo img {
        height: 80px;
    }

    .nav-container {
        height: 80px;
    }

    .logo-img {
        height: 65px;
    }

    .nav-links {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .btn { width: 100%; }
}

/* --- Utility Classes & Animations --- */
.menu-toggle {
    display: none;
}

@keyframes floating {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
    100% { transform: translate(-50%, -50%) translateY(0px); }
}

.hero-slider .slider-img.active {
    animation: floating 3s ease-in-out infinite;
}

/* Glassmorphism Scroll Effect */
.navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    padding: 10px 0;
}

/* Back to Top Refinement */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
