/* ================= VARIABLES ================= */
:root {
    --primary: #002B5B;    /* Azul Marino */
    --secondary: #00A8CC;  /* Cyan/Turquesa */
    --accent: #FFA400;     /* Dorado CTA */
    --dark: #333;
    --light: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ================= RESET & BASICS ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= HEADER ================= */
header {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: var(--white); box-shadow: var(--shadow);
    z-index: 1000; display: flex; align-items: center;
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.logo {
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--secondary); }
.logo i { color: var(--secondary); }

.nav-links { display: flex; gap: 25px; }
.nav-links a {
    color: var(--primary); font-weight: 600; font-size: 0.95rem;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--secondary); }

.btn-cta-nav {
    background: var(--secondary); color: var(--white);
    padding: 8px 20px; border-radius: 20px; font-weight: 700;
    transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-cta-nav:hover { background: var(--primary); }

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--primary); margin: 5px; }

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh; position: relative;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center/cover;
    display: flex; align-items: center; text-align: center; padding-top: 80px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,43,91,0.9), rgba(0,168,204,0.7));
}

.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 800px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; text-transform: uppercase; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn { padding: 12px 30px; border-radius: 5px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #e69500; transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ================= STATS ================= */
.stats {
    display: flex; justify-content: space-around; flex-wrap: wrap;
    background: var(--white); padding: 40px; border-radius: 10px;
    box-shadow: var(--shadow); position: relative; top: -50px; z-index: 10;
}
.stat-item { text-align: center; margin: 10px; }
.stat-item h3 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 5px; }
.stat-item p { font-weight: 700; color: #666; }

/* ================= ACREDITACION (RESPALDO) ================= */
.accreditation-section {
    padding: 60px 0; background-color: #f0f4f8;
}
.accreditation-container {
    display: flex; align-items: center; gap: 50px;
}
.accreditation-content { flex: 1; }
.accreditation-image { flex: 1; display: flex; justify-content: center; }

.badge {
    background: rgba(0,168,204,0.1); color: var(--secondary);
    padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 700;
}
.accreditation-content h2 { font-size: 2.2rem; color: var(--primary); margin: 15px 0; }
.accreditation-content p { margin-bottom: 20px; color: #555; }

.check-list li {
    margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.check-list i { color: #25d366; }

.image-frame {
    background: var(--white); padding: 20px; border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center;
}
.image-frame img { border-radius: 5px; max-width: 100%; }
.img-caption { font-size: 0.8rem; color: #888; margin-top: 10px; }

/* ================= SERVICIOS (CARDS) ================= */
.services { padding: 80px 0; background: var(--light); }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 50px; }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}

.card {
    background: var(--white); padding: 40px 25px; border-radius: 10px;
    box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--secondary);
    transition: 0.3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { color: var(--primary); margin-bottom: 15px; }
.card p { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.card-link { color: var(--secondary); font-weight: 700; }

/* ================= PROCESO ================= */
.process { padding: 80px 0; }
.process-container { display: flex; gap: 50px; align-items: center; }
.process-image img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
.process-text { flex: 1; }

.timeline li { display: flex; gap: 20px; margin-bottom: 30px; }
.timeline .number {
    width: 40px; height: 40px; background: var(--secondary); color: var(--white);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-weight: bold; flex-shrink: 0;
}
.timeline strong { display: block; color: var(--primary); font-size: 1.1rem; }

/* ================= CARRUSEL ================= */
.carousel-section { padding: 60px 0; overflow: hidden; background: var(--white); }
.slider {
    background: white; height: 200px; margin: auto; overflow: hidden; position: relative; width: 100%;
}
.slider::before, .slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: ""; height: 200px; position: absolute; width: 100px; z-index: 2; pointer-events: none;
}
.slider::after { right: 0; top: 0; transform: rotateZ(180deg); }
.slider::before { left: 0; top: 0; }

.slide-track {
    display: flex; width: calc(250px * 10); animation: scroll 25s linear infinite;
}

.slide {
    height: 200px; width: 250px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 0 15px;
}
.slide img {
    width: 100%; height: 140px; object-fit: cover; border-radius: 8px;
    filter: grayscale(100%); opacity: 0.7; transition: 0.3s; margin-bottom: 10px;
}
.slide span { font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 0.9rem; }
.slide:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 5)); } }

/* ================= FOOTER ================= */
footer { background: var(--primary); color: var(--white); padding-top: 50px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px;
}
.footer-grid h4 { color: var(--secondary); margin-bottom: 20px; }
.footer-grid p, .footer-grid a { color: #ccc; margin-bottom: 10px; display: block; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.copyright { background: #001a38; text-align: center; padding: 20px; font-size: 0.85rem; color: #777; }

/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.whatsapp-float:hover { background: #20ba5a; transform: scale(1.1); }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 95vh; top: 80px;
        background: var(--white); display: flex; flex-direction: column;
        align-items: center; width: 60%; transform: translateX(100%);
        transition: 0.5s ease-in; box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        justify-content: center;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    
    .hero h1 { font-size: 2rem; }
    .accreditation-container { flex-direction: column; text-align: center; }
    .process-container { flex-direction: column; }
    .check-list li { justify-content: center; }
}