:root {
    --bg-color: #030303;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --accent: #3B82F6;
    --accent-dark: #1D4ED8;
    --accent-glow: rgba(59,130,246,0.25);
    --green: #4ADE80;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: clip;
    line-height: 1.5;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, rgba(0,0,0,0) 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #93C5FD;
}

.nav-links a.active {
    color: #93C5FD;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-actions a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #FFFFFF;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60A5FA 0%, var(--accent) 100%);
    box-shadow: 0 0 32px rgba(59,130,246,0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: rgba(59,130,246,0.06);
    color: var(--text-main);
    border: 1px solid rgba(59,130,246,0.25);
}

.btn-outline:hover {
    background-color: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.5);
}

/* WhatsApp button */
.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    box-shadow: 0 0 32px rgba(37,211,102,0.5);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: #93C5FD;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(160deg, #FFFFFF 0%, #BFDBFE 60%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Page header (interior pages) */
.page-header {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.page-header h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(160deg, #FFFFFF 0%, #BFDBFE 60%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
}

/* Sparkles */
.sparkle {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}
.sparkle-1 { top: 50px; right: 20%; width: 120px; }
.sparkle-2 { top: 150px; right: 10%; width: 80px; }

/* Logos */
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 40px 0;
    opacity: 0.5;
    filter: grayscale(100%);
}

.logos img {
    height: 24px;
}

/* Features / Bento Box */
.features {
    padding: 100px 0;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #BFDBFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(250px, auto);
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.02);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px var(--accent-glow), 0 0 0 1px rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.35);
}

/* ── Scroll-reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SVG chart draw ── */
.chart-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.4s ease;
}
.chart-path.drawn {
    stroke-dashoffset: 0;
}

/* ── Mock-pill shimmer ── */
@keyframes pill-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}
.bento-card.visible .mock-pill {
    animation: pill-pulse 2s ease-in-out infinite;
}
.bento-card.visible .mock-pill:nth-child(2) { animation-delay: 0.3s; }
.bento-card.visible .mock-pill:nth-child(3) { animation-delay: 0.6s; }

/* ── Stats bar slide ── */
.stat-bar {
    transform: translateX(40px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.stat-bar.visible {
    transform: translateX(0);
    opacity: 1;
}
.stat-bar:nth-child(2) { transition-delay: 0.2s; }

/* ── Google glow pulse ── */
@keyframes google-glow {
    0%, 100% { text-shadow: 0 0 0px rgba(255,255,255,0); }
    50%       { text-shadow: 0 0 24px rgba(255,255,255,0.25); }
}
.google-text {
    animation: google-glow 3s ease-in-out infinite;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.col-span-2 {
    grid-column: span 2;
}

.bento-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.bento-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Card Graphics (Simulated for the design) */
.card-graphic {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
}

.mock-ui {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mock-pill {
    background: #222;
    border-radius: 100px;
    height: 8px;
    width: 60px;
    margin-bottom: 12px;
}

.mock-pill.long { width: 100%; }
.mock-pill.medium { width: 70%; }

/* Project images shown complete */
.project-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    height: auto;
}

/* Service icon badge */
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: #93C5FD;
    margin-bottom: 20px;
}

/* Contact & Calendly Section */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--card-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239CA3AF%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-color);
    color: var(--text-main);
}

.cookie-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 360px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Content pages (prose: cookies, legal, etc.) */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.content-container h1 { font-size: 32px; margin-bottom: 24px; letter-spacing: -0.02em; font-weight: 600; }
.content-container h2 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; letter-spacing: -0.01em; font-weight: 600; }
.content-container h3 { font-size: 18px; margin-top: 24px; margin-bottom: 12px; font-weight: 600; }

.content-container p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.content-container ul {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.7;
}

.content-container li {
    margin-bottom: 8px;
}

.content-container a {
    color: var(--text-main);
    text-decoration: underline;
}

.content-container a:hover {
    color: #93C5FD;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid var(--card-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    color: var(--text-muted);
}

.cookie-table th {
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-weight: 600;
}

.cookie-table td strong { color: var(--text-main); }

.table-wrap { overflow-x: auto; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}
.back-btn:hover {
    color: var(--text-main) !important;
    background: rgba(255,255,255,0.05);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}

.footer-links a.footer-wa {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 992px) {
    .features .bento-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .projects-section .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .features .col-span-2 {
        grid-column: span 2 !important;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .hero h1 {
        font-size: 50px;
    }
    .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .cookie-modal {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: calc(100vw - 32px);
        width: auto;
        padding: 16px;
        box-sizing: border-box;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        box-sizing: border-box;
        z-index: 1000;
        background: rgba(9, 11, 17, 0.9);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        margin: 0;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    }
    .hero {
        padding-top: 120px;
    }
    .page-header {
        padding-top: 120px;
    }
    .content-container {
        padding-top: 100px;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(3, 3, 3, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--card-border);
        padding: 8px 24px 16px;
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .hero h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    .page-header h1 {
        font-size: 34px;
    }
    .page-header p {
        font-size: 16px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .logos {
        gap: 24px;
        padding: 24px 0;
    }
    .logos span {
        font-size: 16px !important;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .features, .projects-section, .contact-section, .section {
        padding: 60px 0 !important;
    }
    .bento-card {
        padding: 24px !important;
    }
    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .sparkle {
        display: none;
    }
}

/* ── Captura ampliable + lightbox ── */
.zoomable { cursor: zoom-in; position: relative; }
.zoomable:hover { border-color: rgba(59,130,246,0.45); }
.zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.img-modal.open { display: flex; }
.img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.img-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    background: #0b0b0d;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}
.img-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--card-border);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.img-modal-close:hover { background: rgba(255,255,255,0.16); }
.img-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.img-modal-content h3 { font-size: 22px; font-weight: 600; padding-right: 40px; line-height: 1.2; }
.img-modal-figure {
    width: 100%;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: #111;
    -webkit-overflow-scrolling: touch;
}
.img-modal-figure img { display: block; width: 100%; height: auto; }
.img-modal-text { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.img-modal-scrollhint { display: none; color: var(--text-muted); font-size: 12px; }

@media (max-width: 768px) {
    .result-shot { padding: 5px !important; }
    .caso-real { padding: 16px !important; }
    .img-modal-content { padding: 20px; }
    .img-modal-figure img { width: 760px; max-width: none; }
    .img-modal-scrollhint { display: block; }
}

/* ── Migas de pan (breadcrumb) ── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: #93C5FD; }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .current { color: var(--text-main); }

/* ── Bloques de contenido (páginas de servicio) ── */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.prose p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--text-main); }
.prose a { color: #93C5FD; }

/* ── FAQ (acordeón nativo) ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0 22px;
    transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(59,130,246,0.35); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
