:root {
    --azul: #0A1628;
    --azul-med: #0D2248;
    --electric: #00BFFF;
    --electric-dim: #0099CC;
    --rojo: #E63946;
    --blanco: #F0F4FF;
    --gris: #8A9BB5;
    --gris-claro: #DCE5F5;
    --card-bg: #0F1E3A;
    --whatsapp: #25D366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--azul);
    color: var(--blanco);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: "Google Sans Flex", sans-serif;
    ;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

section,
nav,
footer {
    position: relative;
    z-index: 1;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 191, 255, 0.12);
    z-index: 100;
    transition: padding .3s;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    padding: 20px 5%;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.12);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap p {
    font-weight: 600;
}

.logo-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--electric);
    object-fit: cover;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--blanco);
}

.logo-text span {
    color: var(--electric);
}

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

.nav-links a {
    color: var(--gris);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .03em;
    transition: color .2s;
}

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

.btn-wa-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.btn-wa-nav:hover {
    opacity: .9;
    transform: scale(1.04);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blanco);
    border-radius: 2px;
}

/* ── HERO ── */
#hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 5% 80px;
    gap: 60px;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(0, 191, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(230, 57, 70, 0.06) 0%, transparent 60%),
        var(--azul);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--electric);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--electric);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--blanco);
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--electric);
}

.hero-title .rojo {
    color: var(--rojo);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--gris);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 100px;
    padding: 15px 30px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 32px rgba(37, 211, 102, 0.3);
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 48px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--electric);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid rgba(0, 191, 255, 0.35);
    border-radius: 100px;
    padding: 14px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.08);
    border-color: var(--electric);
}

/* HERO right: visual card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.15), transparent 70%);
    border-radius: 50%;
}

.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--electric);
    margin: 0 auto 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 24px rgba(0, 191, 255, 0.4);
}

.hero-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 8px;
}

.hero-card p {
    font-size: .85rem;
    color: var(--gris);
    margin-bottom: 24px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(0, 191, 255, 0.06);
    border: 1px solid rgba(0, 191, 255, 0.12);
    border-radius: 12px;
    padding: 12px 6px;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--electric);
    display: block;
}

.stat-label {
    font-size: .72rem;
    color: var(--gris);
    display: block;
    margin-top: 2px;
}

/* floating dot decorations */
.hero-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── SECTION COMMONS ── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--electric);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-title .accent {
    color: var(--electric);
}

.section-sub {
    color: var(--gris);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── QUÉ HACEMOS ── */
#servicios {
    padding: 45px 5%;
    background: var(--azul);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    transition: border-color .3s, transform .3s;
    cursor: default;
}

.service-card:hover {
    border-color: rgba(0, 191, 255, 0.4);
    transform: translateY(-6px);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 8px;
}

.service-card p {
    font-size: .87rem;
    color: var(--gris);
    line-height: 1.6;
}

/* ── POR QUÉ ELEGIRNOS ── */
#por-que {
    padding: 45px 5%;
    background: linear-gradient(180deg, var(--azul) 0%, var(--azul-med) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: rgba(0, 191, 255, 0.04);
    border: 1px solid rgba(0, 191, 255, 0.13);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}

.benefit-card:hover {
    border-color: rgba(0, 191, 255, 0.4);
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric), transparent);
}

.benefit-num {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 191, 255, 0.15);
    line-height: 1;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: .87rem;
    color: var(--gris);
    line-height: 1.6;
}

/* ── GALERÍA ── */
#galeria {
    padding: 45px 5%;
    background: var(--azul);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.gallery-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, transform .3s;
}

.gallery-item:hover {
    border-color: rgba(0, 191, 255, 0.4);
    transform: scale(1.02);
}

.gallery-item.big {
    grid-row: span 2;
    min-height: 360px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    text-align: center;
    padding: 24px;
}

.gallery-placeholder .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gallery-placeholder p {
    font-size: .82rem;
    color: var(--gris);
}

.gallery-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: .75rem;
    color: var(--electric);
    font-weight: 600;
}

/* ── UBICACIÓN ── */
#ubicacion {
    padding: 45px 5%;
    background: var(--azul-med);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    height: 360px;
}

.map-wrapper iframe {
    width: 100%;
    height: 420px;
    border: none;
    /* filter: invert(90%) hue-rotate(180deg) saturate(1.2); */
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--electric);
    margin-bottom: 4px;
}

.info-text {
    color: var(--blanco);
    font-size: .95rem;
    line-height: 1.55;
}

/* ── CONTACTO CTA ── */
#contacto {
    padding: 45px 5%;
    text-align: center;
    background: linear-gradient(180deg, var(--azul) 0%, #060f1e 100%);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 255, 0.18);
    border-radius: 28px;
    padding: 64px 48px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.contact-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--gris);
    margin-bottom: 36px;
    line-height: 1.65;
}

.contact-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-wa-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--whatsapp);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 100px;
    padding: 18px 36px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.35);
    transition: transform .2s, box-shadow .2s;
}

.btn-wa-big:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 56px rgba(37, 211, 102, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gris);
    text-decoration: none;
    font-size: 1rem;
    transition: background .2s, color .2s, border-color .2s;
}

.social-link:hover {
    background: rgba(0, 191, 255, 0.18);
    color: var(--electric);
    border-color: var(--electric);
}

/* ── FOOTER ── */
footer {
    background: #04090f;
    border-top: 1px solid rgba(0, 191, 255, 0.08);
    padding: 40px 15%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--electric);
    object-fit: cover;
}

.footer-name {
    /* font-family: 'Syne', sans-serif;
    font-size: .95rem;
    */
    /* font-weight: 800;  */
    color: var(--blanco);
}

.footer-name span {
    color: var(--electric);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gris);
    text-decoration: none;
    font-size: .85rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--electric);
}

.footer-copy {
    color: var(--gris);
    font-size: .8rem;
}

/* ── FLOATING WA BUTTON ── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5);
    z-index: 999;
    text-decoration: none;
    transition: transform .25s;
    animation: wa-appear 1s ease 1.5s both;
}

@keyframes wa-appear {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
    #servicios, #ubicacion, #contacto {
        padding: 10px 5%;
    }

    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 5% 30px;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-sub {
        margin: 0 auto 32px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

    .gallery-item.big {
        grid-row: span 1;
        min-height: 180px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .contact-card {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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

    footer {
        flex-direction: column;
        text-align: center;
    }

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

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

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