/* =========================
   RESET + VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #07111f;
    --bg-secondary: #0d1b2a;
    --accent: #00c2ff;
    --accent-2: #1d8fff;
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 194, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================
   FONDO GLOBAL
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,194,255,0.15), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(0,194,255,0.12), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(0,194,255,0.08), transparent 25%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(6,15,30,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: all .3s ease;
}

.header.scrolled {
    background: rgba(3,10,20,0.97);
    box-shadow: 0 0 25px rgba(0,194,255,0.15);
}

.navbar {
    width: min(92%, 1400px);
    margin: auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* =========================
   BOTONES
========================= */
.btn-primary,
.btn-secondary,
button {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all .3s ease;
    cursor: pointer;
}

.btn-primary,
button {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0,194,255,0.3);
}

.btn-primary:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0,194,255,0.5);
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* =========================
   SECCIONES
========================= */
section {
    padding: 100px 8%;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--accent);
    margin-bottom: 40px;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    background:
        linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.75)),
        url("assets/hero-bg.png") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(7,17,31,.7) 90%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 0 25px rgba(0,194,255,0.4);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   SERVICIOS
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    padding: 35px;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    transition: all .35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0,194,255,0.28);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.card p {
    color: var(--text-muted);
}

/* =========================
   NOSOTROS
========================= */
.about {
    text-align: center;
}

.about p {
    max-width: 920px;
    margin: 0 auto 20px auto;
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* =========================
   GALERIA
========================= */
.gallery-subtitle {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px auto;
    color: var(--text-muted);
}

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

.gallery-card {
    position: relative;
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,0.85)
    );
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.2rem;
}

/* =========================
   METRICAS
========================= */
.stats {
    background: rgba(255,255,255,0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}

.stat-card {
    text-align: center;
    padding: 45px 25px;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    transition: .3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0,194,255,0.25);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 0 0 18px rgba(0,194,255,0.4);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================
   MARCAS
========================= */
.brands {
    background: rgba(255,255,255,0.02);
}

.brands-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: .3s ease;
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,194,255,0.35);
    color: var(--accent);
}

/* =========================
   TESTIMONIOS
========================= */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card {
    max-width: 900px;
    margin: auto;
    padding: 35px;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    transition: .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0,194,255,0.2);
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
}

/* =========================
   FORMULARIO
========================= */
.quote form {
    max-width: 850px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote input,
.quote textarea {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 1rem;
    outline: none;
}

.quote input:focus,
.quote textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,194,255,0.25);
}

.quote textarea {
    min-height: 180px;
    resize: vertical;
}

.quote input::placeholder,
.quote textarea::placeholder {
    color: #9ca3af;
}

/* =========================
   CONTACTO
========================= */
.contact {
    text-align: center;
}

.contact p {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.contact iframe {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,194,255,0.12);
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 35px 20px;
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    padding: 15px 22px;
    border-radius: 50px;
    background: linear-gradient(90deg, #25d366, #1fb655);
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(37,211,102,0.4);
    transition: all .3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* =========================
   MOBILE MENU
========================= */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links.mobile-active {
    display: flex !important;
}

/* =========================
   SCROLL ANIMATIONS
========================= */
.hidden-section {
    opacity: 0;
    transform: translateY(70px);
    transition: all .85s ease;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}

img {
    opacity: 0;
    transition: opacity .6s ease;
}

img.loaded {
    opacity: 1;
}

/* =========================
   RESPONSIVE TABLET
========================= */
@media (max-width: 992px) {
    section {
        padding: 80px 6%;
    }

    .navbar {
        min-height: 78px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero {
        min-height: 85vh;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {

    section {
        padding: 70px 5%;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 20px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding: 20px;
        border-radius: 18px;
        background: rgba(7,17,31,0.97);
    }

    .logo img {
        height: 56px;
    }

    .hero {
        min-height: auto;
        padding: 140px 20px 90px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary,
    button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .gallery-card {
        min-height: 260px;
    }

    .stat-card h3 {
        font-size: 2.3rem;
    }

    .testimonial-card {
        padding: 24px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card,
    .testimonial-card,
    .stat-card {
        padding: 22px;
    }

    .brand-item {
        min-height: 85px;
        font-size: 1rem;
    }
}