
/* =========================================
   1. CONFIGURACIÓN GENERAL
========================================= */

:root {
    --fondo: #090a0c;
    --fondo-secundario: #111318;
    --tarjeta: #17191e;
    --naranja: #ff8a00;
    --naranja-claro: #ffad32;
    --rojo: #f04438;
    --blanco: #f6f6f7;
    --gris: #b4b6bd;
    --borde: rgba(255, 255, 255, 0.12);
    --verde: #20c96b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--blanco);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1200px, calc(100% - 42px));
    margin: 0 auto;
}

.seccion {
    padding-top: 85px;
    padding-bottom: 85px;
}

::selection {
    background: var(--naranja);
    color: #111;
}


/* =========================================
   2. ENCABEZADO Y NAVEGACIÓN
========================================= */

.encabezado {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borde);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--naranja-claro),
        var(--rojo)
    );
    color: #111;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 5px 20px rgba(255, 138, 0, 0.15);
    transition: transform 0.3s;
}

.marca:hover .logo {
    transform: rotate(-5deg) scale(1.05);
}

.nombre-marca {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.nombre-marca > span {
    color: var(--naranja);
}

.nombre-marca small {
    display: block;
    margin-top: 5px;
    color: #a6a7ac;
    font-size: 8px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #d6d6d9;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.25s;
}

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

.nav-actions {
    display: flex;
    gap: 9px;
}

.boton-nav {
    padding: 9px 13px;
    border: 1px solid rgba(255, 138, 0, 0.65);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.25s, background 0.25s;
}

.boton-nav:hover {
    transform: translateY(-2px);
    background: rgba(255, 138, 0, 0.12);
}

.whatsapp-nav {
    background: var(--verde);
    border-color: var(--verde);
    color: #07170d;
}

.whatsapp-nav:hover {
    background: #42e787;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--blanco);
    font-size: 27px;
    cursor: pointer;
}


/* =========================================
   3. CARRUSEL PRINCIPAL
========================================= */

.hero {
    position: relative;
    height: 610px;
    min-height: 520px;
    overflow: hidden;
    background: #101114;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 6s ease;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 8, 0.96) 0%,
            rgba(5, 6, 8, 0.78) 40%,
            rgba(5, 6, 8, 0.22) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 6, 8, 0.55),
            transparent 40%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
    padding-bottom: 40px;
}

.etiqueta {
    margin: 0 0 16px;
    color: var(--naranja);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero h1,
.hero h2 {
    margin: 0 0 20px;
    max-width: 700px;
    color: white;
    font-size: clamp(43px, 6vw, 74px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -3px;
}

.hero h1 span,
.hero h2 span {
    color: var(--naranja);
}

.hero-description {
    max-width: 500px;
    margin: 0 0 28px;
    color: #dedfe3;
    font-size: 14px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.boton {
    min-height: 47px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 12px 19px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}

.boton:hover {
    transform: translateY(-3px);
}

.boton-principal {
    background: linear-gradient(
        110deg,
        var(--naranja-claro),
        var(--naranja)
    );
    color: #17100a;
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.16);
}

.boton-principal:hover {
    box-shadow: 0 12px 30px rgba(255, 138, 0, 0.32);
}

.boton-secundario {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(8, 9, 11, 0.4);
    color: white;
    backdrop-filter: blur(8px);
}

.boton-secundario:hover {
    border-color: var(--naranja);
    background: rgba(255, 138, 0, 0.1);
}

.hero-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 28px;
    color: #e1e1e4;
    font-size: 10px;
    font-weight: 600;
}

.hero-beneficios span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* Controles del carrusel */

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(8, 9, 11, 0.55);
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s, border-color 0.25s;
}

.slider-arrow:hover {
    background: var(--naranja);
    border-color: var(--naranja);
    color: #111;
}

.slider-arrow.anterior {
    left: 18px;
}

.slider-arrow.siguiente {
    right: 18px;
}

.flecha {
    width: 10px;
    height: 10px;
    display: block;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.flecha-izquierda {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.flecha-derecha {
    transform: rotate(45deg);
    margin-right: 4px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.dot.active {
    width: 29px;
    background: var(--naranja);
}


/* =========================================
   4. TÍTULOS DE SECCIÓN
========================================= */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 36px;
}

.section-head h2,
.contact-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 47px);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -1.8px;
}

.section-head h2 span,
.contact-panel h2 span {
    color: var(--naranja);
}

.section-description {
    max-width: 380px;
    margin: 0 0 4px;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================
   5. TARJETAS DE SERVICIOS
========================================= */

.servicios {
    padding-top: 85px;
    padding-bottom: 90px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        #191b20,
        #101114
    );
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 138, 0, 0.75);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.service-image {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: #24262b;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.09);
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(5, 6, 8, 0.65),
        transparent 65%
    );
}

.service-icon {
    position: absolute;
    bottom: 13px;
    left: 14px;
    z-index: 2;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 138, 0, 0.9);
    border-radius: 13px;
    background: rgba(12, 13, 16, 0.94);
    font-size: 22px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: translateY(-4px) rotate(-4deg);
}

.service-number {
    position: absolute;
    top: 12px;
    right: 13px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(10, 11, 13, 0.7);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

.service-content {
    padding: 18px 17px 20px;
}

.card-kicker {
    color: var(--naranja);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.service-content h3 {
    min-height: 42px;
    margin: 8px 0 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.service-content p {
    min-height: 80px;
    margin: 0 0 15px;
    color: var(--gris);
    font-size: 11px;
    line-height: 1.8;
}

.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--borde);
    color: var(--naranja);
    font-size: 10px;
    font-weight: 900;
    transition: color 0.25s;
}

.service-link:hover {
    color: var(--naranja-claro);
}


/* =========================================
   6. BENEFICIOS
========================================= */

.benefits {
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
    background: linear-gradient(
        100deg,
        #191b20,
        #111215
    );
}

.benefits-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding-top: 29px;
    padding-bottom: 29px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 138, 0, 0.45);
    border-radius: 14px;
    background: rgba(255, 138, 0, 0.08);
    font-size: 24px;
    transition: transform 0.3s, background 0.3s;
}

.benefit:hover .benefit-icon {
    transform: scale(1.07);
    background: rgba(255, 138, 0, 0.18);
}

.benefit h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
}

.benefit p {
    margin: 0;
    color: var(--gris);
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================
   7. CONTACTO
========================================= */

.contacto {
    padding-top: 75px;
    padding-bottom: 75px;
}

.contact-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: clamp(25px, 5vw, 52px);
    border: 1px solid rgba(255, 138, 0, 0.4);
    border-radius: 22px;
    background:
        radial-gradient(
            ellipse at 95% 0%,
            rgba(240, 68, 56, 0.12),
            transparent 42%
        ),
        linear-gradient(115deg, #191a1e, #0d0e10);
}

.contact-copy {
    max-width: 590px;
}

.contact-panel h2 {
    margin-bottom: 16px;
}

.contact-panel .contact-copy > p:last-child {
    margin: 0;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}


/* =========================================
   8. PIE DE PÁGINA
========================================= */

.footer {
    padding: 27px 0;
    border-top: 1px solid var(--borde);
    background: #070809;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p,
.footer small {
    margin: 0;
    color: #a3a5ac;
    font-size: 10px;
}

.footer .logo {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    font-size: 15px;
}

.footer .nombre-marca {
    font-size: 15px;
}


/* =========================================
   9. BOTÓN FLOTANTE DE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 17px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: var(--verde);
    color: #07170d;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    animation: pulsoWhatsapp 2.7s infinite;
    transition: transform 0.25s, background 0.25s;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    background: #42e787;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0b9c4b;
    font-size: 19px;
}

.whatsapp-text {
    white-space: nowrap;
}


/* =========================================
   10. ANIMACIONES DE APARICIÓN
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.servicios-grid .service-card:nth-child(2) {
    transition-delay: 0.07s;
}

.servicios-grid .service-card:nth-child(3) {
    transition-delay: 0.14s;
}

.servicios-grid .service-card:nth-child(4) {
    transition-delay: 0.21s;
}

.servicios-grid .service-card:nth-child(5) {
    transition-delay: 0.07s;
}

.servicios-grid .service-card:nth-child(6) {
    transition-delay: 0.14s;
}

.servicios-grid .service-card:nth-child(7) {
    transition-delay: 0.21s;
}

@keyframes pulsoWhatsapp {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(32, 201, 107, 0.28);
    }

    50% {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.45),
            0 0 0 9px rgba(32, 201, 107, 0);
    }
}


/* =========================================
   11. TABLETAS
========================================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 15px;
    }

    .nav-actions .boton-nav {
        padding: 8px 10px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        height: 590px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}


/* =========================================
   12. CELULARES
========================================= */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 30px);
    }

    .navbar {
        min-height: 68px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .nombre-marca {
        font-size: 16px;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 18px;
        border-bottom: 1px solid var(--borde);
        background: rgba(9, 10, 12, 0.98);
    }

    .nav-links.open a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero {
        height: 620px;
        min-height: 550px;
    }

    .hero-bg {
        object-position: 60% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 6, 8, 0.95),
                rgba(5, 6, 8, 0.74)
            ),
            linear-gradient(
                0deg,
                rgba(5, 6, 8, 0.65),
                transparent
            );
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 440px;
        font-size: 13px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 310px);
    }

    .hero-buttons .boton {
        width: 100%;
    }

    .hero-beneficios {
        gap: 10px;
        max-width: 340px;
        font-size: 9px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
    }

    .slider-arrow.anterior {
        left: 7px;
    }

    .slider-arrow.siguiente {
        right: 7px;
    }

    .seccion,
    .servicios {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-head h2,
    .contact-panel h2 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .servicios-grid {
        gap: 12px;
    }

    .service-image {
        height: 135px;
    }

    .service-content {
        padding: 13px;
    }

    .service-content h3 {
        min-height: 0;
        font-size: 13px;
    }

    .service-content p {
        min-height: 100px;
        font-size: 10px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .service-link {
        font-size: 9px;
    }

    .benefits-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .contact-buttons .boton {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .whatsapp-float {
        right: 13px;
        bottom: 13px;
    }

    .whatsapp-text {
        display: none;
    }
}


/* =========================================
   13. CELULARES PEQUEÑOS
========================================= */

@media (max-width: 390px) {

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 185px;
    }

    .service-content p {
        min-height: 0;
    }

    .hero h1,
    .hero h2 {
        font-size: 39px;
    }
}


/* =========================================
   14. ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
