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

:root {
    --bg: #080b14;
    --bg-card: #0f1623;
    --blue: #4f9eff;
    --cyan: #00d4ff;
    --white: #f0f4ff;
    --muted: #8899bb;
    --border: rgba(79, 158, 255, 0.15);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 158, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 158, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(8, 11, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-logo span { color: var(--cyan); }

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--blue);
    color: #000 !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--cyan) !important; transform: translateY(-1px); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }

.mobile-close {
    position: absolute;
    top: 24px; right: 28px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted);
    background: none;
    border: none;
    transition: color 0.2s;
    font-family: var(--font-body);
}
.mobile-close:hover { color: var(--white); }

/* ========== HERO ========== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(79, 158, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.orb-a {
    width: 450px; height: 450px;
    background: rgba(79, 158, 255, 0.09);
    top: 15%; left: -8%;
    animation: floatA 9s ease-in-out infinite;
}
.orb-b {
    width: 320px; height: 320px;
    background: rgba(0, 212, 255, 0.07);
    bottom: 8%; right: -4%;
    animation: floatA 11s ease-in-out infinite reverse;
}

@keyframes floatA {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-28px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 158, 255, 0.08);
    border: 1px solid rgba(79, 158, 255, 0.28);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}
.hero-badge::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7.5vw, 5.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}
.hero-title .gradient {
    background: linear-gradient(130deg, var(--blue) 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #060a14;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 28px rgba(79, 158, 255, 0.32);
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(79, 158, 255, 0.48);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-ghost:hover {
    border-color: rgba(79, 158, 255, 0.5);
    background: rgba(79, 158, 255, 0.06);
}

.hero-devices {
    margin-top: 68px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.h-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.h-device-box {
    width: 54px; height: 54px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}
.h-device:hover .h-device-box {
    border-color: rgba(79, 158, 255, 0.5);
    background: rgba(79, 158, 255, 0.07);
    transform: translateY(-5px);
}

/* ========== LAYOUT ========== */
section { position: relative; z-index: 1; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.s-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

.s-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.s-desc {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.75;
    font-weight: 400;
}

.s-head { margin-bottom: 64px; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== SOBRE ========== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sobre-text p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 400;
}
.sobre-text p:last-child { margin-bottom: 0; }
.sobre-text strong { color: var(--white); font-weight: 600; }

.sobre-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    transition: all 0.3s;
}
.sc:hover {
    border-color: rgba(79, 158, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(79, 158, 255, 0.09);
}
.sc-icon { font-size: 1.8rem; margin-bottom: 10px; }
.sc-label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.sc-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 4px;
}
.sc-val .hi { color: var(--blue); }

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

.srv {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.srv::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.srv:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 158, 255, 0.38);
    box-shadow: 0 16px 48px rgba(79, 158, 255, 0.1);
}
.srv:hover::before { opacity: 1; }

.srv.star {
    border-color: rgba(79, 158, 255, 0.45);
    background: linear-gradient(140deg, rgba(79, 158, 255, 0.07), rgba(0, 212, 255, 0.03));
}
.srv.star::after {
    content: 'GRATIS';
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #060a14;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
}

.srv-icon { font-size: 2.2rem; margin-bottom: 18px; display: block; }
.srv-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.srv-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}
.srv-price {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--blue);
}
.srv-price small {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
}
.srv-items { list-style: none; margin-top: 14px; }
.srv-items li {
    color: var(--muted);
    font-size: 0.88rem;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.srv-items li::before {
    content: '›';
    color: var(--blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========== GALERÍA ========== */
#galeria .wrap { padding-bottom: 40px; }

.gallery-notice {
    background: rgba(79, 158, 255, 0.04);
    border: 1px dashed rgba(79, 158, 255, 0.28);
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-bottom: 24px;
}
.gallery-notice-icon { font-size: 2.2rem; margin-bottom: 10px; }
.gallery-notice-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 6px;
}
.gallery-notice-text { color: var(--muted); font-size: 0.9rem; line-height: 1.65; font-weight: 400; }

.gal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gal-item {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.gal-item:hover {
    border-color: rgba(79, 158, 255, 0.45);
    box-shadow: 0 8px 32px rgba(79, 158, 255, 0.12);
}
.gal-item:hover img {
    transform: scale(1.05);
}

/* ========== CONTACTO ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.c-items { display: flex; flex-direction: column; gap: 14px; }

.c-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}
.c-item:hover {
    border-color: rgba(79, 158, 255, 0.38);
    transform: translateX(4px);
}
.c-icon {
    width: 42px; height: 42px;
    background: rgba(79, 158, 255, 0.09);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.c-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.c-val { font-weight: 600; color: var(--white); font-size: 1rem; }
.c-val a { color: inherit; text-decoration: none; transition: color 0.2s; }
.c-val a:hover { color: var(--cyan); }

.social-row { display: flex; gap: 10px; margin-top: 4px; }
.soc-btn {
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--muted);
    transition: all 0.3s;
}
.soc-btn:hover {
    border-color: rgba(79, 158, 255, 0.5);
    background: rgba(79, 158, 255, 0.08);
    transform: translateY(-3px);
    color: var(--white);
}

/* ========== FORM ========== */
.form { display: flex; flex-direction: column; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fl { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.fi, .ft, .fsel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.fi:focus, .ft:focus, .fsel:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(79, 158, 255, 0.1);
}
.ft { resize: vertical; min-height: 115px; }
.fsel option { background: #0f1623; color: var(--white); }

.fsub {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #060a14;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(79, 158, 255, 0.25);
}
.fsub:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 158, 255, 0.4);
}

/* ========== FOOTER ========== */
footer {
    background: #050810;
    border-top: 1px solid var(--border);
    padding: 30px 40px;
}
.foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.foot-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}
.foot-logo span { color: var(--cyan); }
.foot-copy { color: var(--muted); font-size: 0.83rem; }
.foot-links { display: flex; gap: 22px; list-style: none; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--white); }

/* ========== WHATSAPP FLOAT ========== */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.42);
    z-index: 50;
    transition: all 0.3s;
    animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.42); }
    50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.68); }
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.visible { opacity: 1; transform: none; }

.stagger {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.visible { opacity: 1; transform: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .wrap { padding: 80px 24px; }
    .nav-links { display: none; }
    nav { padding: 18px 24px; }
    nav.scrolled { padding: 14px 24px; }
    .nav-hamburger { display: flex; }
    .sobre-cards { grid-template-columns: 1fr 1fr; }
    .foot-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .sobre-cards { grid-template-columns: 1fr; }
    .gal-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-devices { gap: 14px; }
    .srv-grid { grid-template-columns: 1fr; }
}
