:root {
    --bg:             #000000;
    --surface:        #0a0a0a;
    --surface-mid:    #1a1a1a;
    --surface-high:   #333333;

    --glass-bg:       rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.04);
    --glass-blur:     blur(25px);

    --glass-border:        rgba(255, 255, 255, 0.10);
    --glass-border-accent: rgba(255, 255, 255, 0.10);
    --border:              rgba(255, 255, 255, 0.10);

    --accent:      #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.08);

    --text-main:      #eaeaea;
    --text-primary:   #eaeaea;
    --text-dim:       rgba(255, 255, 255, 0.70);
    --text-secondary: rgba(255, 255, 255, 0.70);

    --glass-shadow:       0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 32px rgba(0,0,0,0.85);
    --glass-shadow-hover: 0 1px 0 rgba(255,255,255,0.08) inset, 0 16px 48px rgba(0,0,0,0.92);

    --danger:  #f04040;
    --warning: #f0a000;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin: 0;
    background-color: #000;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82)),
        url('../../images/services/image_8.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    pointer-events: none;
}

.dot-grid { display: none; }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: -0.5px; line-height: 1.1; }

/* Navegación */
nav { 
    padding: 16px 48px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    position: sticky; top: 0; z-index: 1000;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

/* Hero Section con Parallax */
.hero {
    position: relative;
    padding: 150px 40px;
    text-align: center;
}

.hero h1 { 
    font-size: clamp(3rem, 10vw, 5.5rem); 
    margin-bottom: 50px; /* Separación pedida */
    line-height: 0.85;
}

.hero-description {
    font-size: 1.5rem; 
    max-width: 850px; 
    margin: 0 auto 60px;
    color: var(--text-secondary);   /* 70% white — hierarchy below H1 */
    font-weight: 400;
    line-height: 1.75;
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85); /* prevents bg bleed on parallax */
}

.hero-description span {
    display: block;
    margin-top: 15px;
    color: var(--accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── Scanner & Lab Cards ─── */
.scanner-box, .tool-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    padding: 36px;
    position: relative;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.scanner-box:hover, .tool-card:hover {
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.22);
}
.scanner-box::after, .tool-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    pointer-events: none;
}

.scanner-box::before { content: "SECURITY AUDIT"; position: absolute; top: -9px; left: 20px; background: var(--bg); padding: 0 8px; color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; opacity: 0.85; }

.scanner-input, .lab-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    caret-color: var(--accent);
}
.scanner-input:focus, .lab-input:focus {
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.07);
}

.scanner-btn {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 10px;
    transition: border-color 0.22s ease, background 0.22s ease;
}
.scanner-btn:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: #1a1a1a;
}

/* Cards con Imágenes - CORREGIDAS RUTAS */
.services { padding: 100px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }

.card { 
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.card:hover {
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.card::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: grayscale(100%) brightness(0.3);
    z-index: 1; transition: 0.5s;
}
.card:hover::before { filter: grayscale(50%) brightness(0.4); transform: scale(1.05); }

.card-takedown::before { background-image: url('../../images/services/image_6.webp'); }
.card-osint::before { background-image: url('../../images/services/image_7.webp'); }
.card-blindaje::before { background-image: url('../../images/services/social-security.png.webp'); }

.card-content {
    position: relative;
    z-index: 2;
    /* Text shield: ensures legibility over any glass/image background */
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.7);
}

/* Terminal & Extras */
#terminal-logic {
    display: none; text-align: left; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.78rem;
    color: var(--accent); margin-top: 20px; height: 120px; overflow-y: auto;
    background: rgba(0, 0, 0, 0.7); padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 6px;
    letter-spacing: 0.02em;
}

.btn-main {
    background: var(--accent);
    color: #000;
    padding: 18px 40px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 6px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.btn-main:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 40px 48px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

.footer-brand img {
    height: 52px;
    opacity: 0.88;
    display: block;
    margin-bottom: 16px;
}

.footer-mission {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.50);
    max-width: 260px;
}

.footer-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--text-primary);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer-tls {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.20);
    letter-spacing: 0.06em;
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
    .footer-inner { grid-template-columns: 1fr; padding: 56px 24px 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
}

/* ─────────────────────────────────────────────────────────────
   WEB ENGINEERING SECTION
───────────────────────────────────────────────────────────── */
#web-engineering {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.web-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 14px;
    opacity: 0.8;
}

.web-section-header h2 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 2-column grid, collapses to 1 on mobile */
.web-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 780px) {
    .web-grid { grid-template-columns: 1fr; }
    #web-engineering { padding: 80px 24px; }
}

.web-article {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.web-article:hover {
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.web-article-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin: 0 0 24px;
    line-height: 1;
    opacity: 0.65;
}

.web-article-body h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.web-article-body > p {
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.web-feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.web-feat-list li {
    font-size: 0.875rem;
    color: var(--text-primary);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.web-feat-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 3px;
}

.btn-web {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-secondary);
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: border-color 0.22s ease, color 0.22s ease;
    align-self: flex-start;
}
.btn-web:hover {
    border-color: rgba(255, 255, 255, 0.38);
    color: var(--text-primary);
}

.btn-back {
    display: inline-block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.60);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.btn-back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

/* ─────────────────────────────────────────────────────────────
   FLOATING WHATSAPP CTA
───────────────────────────────────────────────────────────── */
.cta-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #0a0a0a;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 20px;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.cta-float:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: #1a1a1a;
}
.cta-float-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    line-height: 1.3;
}
.cta-float-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

/* =============================================================
   FORM COMPONENTS — Buttons, Inputs, Checkboxes
   ============================================================= */

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    background: #0a0a0a;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-premium:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: #1a1a1a;
    transform: translateY(-1px);
}

.btn-premium:active {
    transform: scale(0.98);
}

.btn-premium:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.22s ease, color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-copy:hover {
    border-color: rgba(255, 255, 255, 0.38);
    color: var(--text-primary);
}

.btn-copy:active {
    transform: scale(0.97);
}

.btn-copy:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Text / email inputs (global override) ────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    padding: 13px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    caret-color: var(--accent);
    transition:
        border-color 0.22s ease,
        box-shadow   0.22s ease,
        background   0.22s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.06);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(0, 242, 255, 0.45);
    background: rgba(0, 242, 255, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
    font-style: normal;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f2ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Checkbox ──────────────────────────────────────────── */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    vertical-align: middle;
}

input[type="checkbox"]:hover {
    border-color: rgba(0, 242, 255, 0.45);
    background: rgba(0, 242, 255, 0.05);
}

input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.35);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px; left: 6px;
    width: 4px; height: 8px;
    border: 2px solid #020408;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Form label ──────────────────────────────────────── */
label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 7px;
}