/* =========================================================
   GENERAL
========================================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   BARRA SUPERIOR (COMPARTIDA)
========================================================= */
/* =========================================================
   BARRA SUPERIOR (MISMO COLOR, MEJOR DISEÑO)
========================================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #13a88f; /* TU COLOR */
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 1000;
}

.nav-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

/* ===== MENÚ ===== */
.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    transition: opacity 0.3s ease;
}

/* Línea inferior elegante */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: rgba(255,255,255,0.9);
    transition: width 0.3s ease;
}

.menu a:hover {
    opacity: 0.85;
}

.menu a:hover::after {
    width: 100%;
}

/* Opción activa */
.menu a.active::after {
    width: 100%;
}


/* Espacio para menú fijo */
.espacio-menu {
    height: 80px;
}

/* =========================================================
   HERO / PORTADA
========================================================= */
.hero {
    height: calc(100vh - 80px);
    background-image: url("airlok 3.jpeg");
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 60px;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Botones */
.botones a {
    display: inline-block;
    padding: 14px 28px;
    margin-right: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-principal {
    background: #2563eb;
    color: white;
}

.btn-principal:hover {
    background: #1e40af;
}

.btn-secundario {
    border: 2px solid white;
    color: white;
}

.btn-secundario:hover {
    background: white;
    color: #1f2933;
}

/* =========================================================
   SERVICIOS
========================================================= */
.titulo {
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0 30px;
}

.servicios {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 40px 60px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 20px;
}

.card p {
    margin: 0 20px 25px;
    color: #475569;
    line-height: 1.6;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: radial-gradient(circle at top, #111827, #020617);
    color: #cbd5f5;
    padding: 80px 40px 60px;
    position: relative;
}

.footer-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.mt {
    margin-top: 25px;
}

/* REDES */
.redes {
    margin-top: 10px;
}

.red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1f2933;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

/* WHATSAPP FLOAT */
/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}



/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    background: url("airlok 3.jpeg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-contenido {
    position: relative;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 20px;
}

.hero-contenido h1 {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fade 1s ease;
}

.contador {
    font-size: 14px;
    color: #e5e7eb;
    letter-spacing: 2px;
}

/* ===== LOGO NAV ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    width: auto;
}

/* =========================================================
   SEPARADOR DE SECCIÓN
========================================================= */
.separador-seccion {
    position: relative;
    height: 280px;
    background: url("airlok 3.jpeg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.separador-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.separador-contenido {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

.separador-contenido h2 {
    font-size: 2.6rem;
    font-weight: bold;
    margin: 15px 0 0;
}

/* Etiqueta tipo badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #e30613;
    background: rgba(227,6,19,0.12);
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.separador-servicios {
    background: #ffffff;
    padding: 20px 20px;
    text-align: center;
}

.separador-servicios h2 {
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

/* Línea decorativa debajo del texto */
.separador-servicios h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0a5cff; /* azul industrial */
    margin: 15px auto 0;
    border-radius: 2px;
}



/* ANIMACIÓN */
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }



}

@media (max-width: 768px) {

    /* ===== NAVBAR ===== */
    .nav-contenedor {
        padding: 12px 20px;
    }

    .menu {
        gap: 15px;
    }

    .menu a {
        font-size: 14px;
    }

    .logo span {
        font-size: 18px;
    }

    /* ===== ESPACIO MENÚ ===== */
    .espacio-menu {
        height: 55px;
    }

    /* ===== HERO PRINCIPAL ===== */
    .hero {
        height: calc(100vh - 55px);
    }

    .hero-content {
        left: 20px;
        bottom: 80px;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 15px;
    }

    /* ===== BOTONES ===== */
    .botones a {
        padding: 12px 20px;
        margin-bottom: 10px;
        display: inline-block;
    }

    /* ===== SEPARADOR SERVICIOS ===== */
    .separador-servicios {
        padding: 20px 15px;
    }

    .separador-servicios h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    /* ===== HERO TEXTO DINÁMICO ===== */
    .hero-contenido h1 {
        font-size: 1.9rem;
    }

    .contador {
        font-size: 12px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 60px 20px 40px;
    }

    .footer-contenedor {
        gap: 30px;
    }

    /* ===== WHATSAPP ===== */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
