@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;700&family=Outfit:wght@200;400;700;900&display=swap');

:root {
    --bg: #060610;
    --surface: rgba(12, 12, 30, 0.85);
    --accent: #00e5ff;
    --accent2: #a855f7;
    --accent3: #ec4899;
    --text: #e8eaed;
    --text-dim: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ==================== PARTICLES CANVAS ==================== */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(6, 6, 16, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo-img {
    height: 22px;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.nav-logo-img:hover { opacity: 1; }

.nav-links { display: flex; gap: 2.5rem; }

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

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

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 1.5rem;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.nav-links a:hover::after { width: 100%; }

/* ==================== HERO ==================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 8px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.hero-logo {
    width: 480px;
    filter: drop-shadow(0 0 60px rgba(0, 229, 255, 0.15));
    cursor: pointer;
    transition: transform 0.8s var(--ease);
}



.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.cta-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.4s var(--ease);
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* HUD Elements */
.hero-hud {
    position: absolute;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-hud.top-left { top: 8rem; left: 3rem; }
.hero-hud.top-right { top: 8rem; right: 3rem; text-align: right; }
.hero-hud.bottom-left { bottom: 3rem; left: 3rem; }
.hero-hud.bottom-right { bottom: 3rem; right: 3rem; text-align: right; }

/* ==================== SECTIONS ==================== */
section {
    position: relative;
    z-index: 1;
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
}

h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 4rem;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--ease);
}

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

/* ==================== TEAM HERO ==================== */
.team-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.team-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
    border: 1px solid var(--border);
}

/* ==================== TEAM GRID ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    transition: all 0.6s var(--ease);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.5s;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.team-card:hover .card-glow { opacity: 1; }

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.team-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* ==================== QUÉ HACEMOS ==================== */
.large-statement {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 200;
    max-width: 900px;
    margin-bottom: 5rem;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.cap-item {
    padding: 1.5rem 2rem;
    border-left: 2px solid var(--border);
    transition: all 0.4s var(--ease);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.cap-item:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
    padding-left: 2.5rem;
}

.cap-item h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== SERVICIOS HOVER-REVEAL ==================== */
.services-accordion {
    display: flex;
    flex-direction: column;
}

.srv-item {
    border-top: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}

.srv-item:last-child {
    border-bottom: 1px solid var(--border);
}

.srv-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.srv-header:hover {
    padding-left: 1.5rem;
}

.srv-header:hover h3 {
    color: var(--accent);
}

.srv-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    min-width: 30px;
}

.srv-header h3 {
    flex: 1;
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.3s;
}

.srv-arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: all 0.4s var(--ease);
}

.srv-item.open .srv-arrow {
    transform: rotate(90deg);
    color: var(--accent);
}

/* Expand panel — hidden by default */
.srv-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease), opacity 0.4s;
    opacity: 0;
}

.srv-item.open .srv-expand {
    max-height: 600px;
    opacity: 1;
}

.srv-expand {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 0;
}

.srv-item.open .srv-expand {
    padding-bottom: 3rem;
}

.srv-media-zone {
    border-radius: 8px;
    overflow: hidden;
    max-height: 300px;
}

.srv-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.srv-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.srv-tagline {
    font-style: italic;
    color: var(--accent);
    font-size: 0.85rem;
}

.srv-details p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.srv-specs {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.srv-specs span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ==================== BUDGET WIZARD ==================== */
.budget-intro {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.budget-wizard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    max-width: 900px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wizard-progress {
    margin-bottom: 2rem;
}

.step-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 3px;
}

#current-step {
    color: var(--accent);
    font-weight: 700;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.5s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: var(--font-display);
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.option-card:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.opt-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.option-card strong {
    font-size: 0.95rem;
}

.wizard-nav {
    margin-top: auto !important;
}

.budget-disclaimer {
    margin-top: 1rem !important;
}

/* Form fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field textarea {
    resize: vertical;
}

/* Wizard nav */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.wiz-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background: transparent;
    color: var(--text);
}

.wiz-next {
    border-color: var(--accent);
    color: var(--accent);
    margin-left: auto;
}

.wiz-next:hover {
    background: var(--accent);
    color: var(--bg);
}

.wiz-back:hover {
    border-color: var(--text-dim);
}

.budget-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

.summary-box {
    padding: 2rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
}

.summary-box p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

#budget-summary {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2;
}



/* ==================== CONTACTO ENHANCED ==================== */
.contact-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.contact-info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.contact-method-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s var(--ease);
}

.contact-method-card:not(.no-hover):hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(0, 229, 255, 0.05);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.method-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.method-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.method-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.social-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.social-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

/* Ensure Wizard consistency */
.wizard-step h3, 
.option-card strong, 
.budget-intro {
    font-family: var(--font-display) !important;
}

.hud-label, 
.step-indicator, 
.wiz-btn, 
.form-field label {
    font-family: var(--font-mono) !important;
}

/* ==================== FOOTER ==================== */
footer {
    position: relative;
    z-index: 1;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    height: 16px;
    opacity: 0.4;
}

footer span {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==================== HAMBURGER MENU ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== MOBILE PREVIEW BUTTON (hidden, tecla M) ==================== */
#mobile-preview-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6,6,16,0.85);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}
/* Show on hover near corner or when user presses M */
body:hover #mobile-preview-btn,
#mobile-preview-btn.visible {
    opacity: 0.3;
    pointer-events: auto;
}
#mobile-preview-btn:hover,
#mobile-preview-btn.active {
    opacity: 1 !important;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
}

/* Mobile preview frame */
body.mobile-preview {
    background: #111 !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 0;
}
body.mobile-preview #mobile-frame {
    width: 390px;
    height: 844px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px solid var(--accent);
    border-radius: 40px;
    box-shadow: 0 0 0 8px #1a1a2e, 0 0 60px rgba(0,229,255,0.2);
    position: relative;
    scrollbar-width: none;
}
body.mobile-preview #mobile-frame::-webkit-scrollbar { display: none; }
body:not(.mobile-preview) #mobile-frame { all: unset; display: contents; }

/* ==================== RESPONSIVE — TABLET ==================== */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .srv-expand { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: repeat(2, 1fr); }
    h2 { font-size: 2.5rem; }
    .contact-info-blocks { grid-template-columns: 1fr; gap: 1rem; }
    .services-bento { grid-template-rows: auto; }
}

/* ==================== RESPONSIVE — MOBILE ==================== */
@media (max-width: 768px) {
    /* --- Navbar --- */
    .navbar {
        padding: 0.9rem 1.2rem;
        justify-content: space-between;
    }
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0;
        background: rgba(6,6,16,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 6rem 2rem 3rem;
        z-index: 999;
        min-height: 100vh;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 4px;
        color: var(--text);
    }
    .lang-btn { margin-left: 0; }
    .nav-logo-img { height: 18px; }

    /* --- Sections --- */
    section {
        padding: 5rem 1.4rem 3rem;
        max-width: 100%;
    }
    .section-header {
        flex-direction: row;
        gap: 0.8rem;
        margin-bottom: 2rem;
        align-items: baseline;
    }
    h2 { font-size: 1.9rem; letter-spacing: -1px; }
    .section-num { font-size: 0.75rem; }

    /* --- Hero --- */
    .hero-logo { width: 220px; }
    .hero-hud { display: none; }
    .hero-center { gap: 1rem; padding: 0 1rem; }
    .hero-subtitle { font-size: 0.55rem; letter-spacing: 5px; }
    .hero-tagline { font-size: 0.55rem; letter-spacing: 4px; }
    .cta-btn { font-size: 0.65rem; padding: 0.8rem 1.8rem; letter-spacing: 3px; margin-top: 0.5rem; }

    /* --- Team --- */
    .team-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .team-photo { max-height: 240px; border-radius: 10px; }
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .team-card { padding: 1.6rem 1.4rem; }
    .team-card h3 { font-size: 1.15rem; }
    .team-card p { font-size: 0.85rem; }
    .section-intro { font-size: 0.95rem; margin-bottom: 0; }

    /* --- Qué hacemos --- */
    .large-statement { font-size: 1.15rem; line-height: 1.6; margin-bottom: 2.5rem; }
    .cap-item { padding: 1rem 1.2rem; }
    .cap-item h4 { font-size: 0.95rem; letter-spacing: 1px; }

    /* --- Servicios Bento --- */
    .services-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        margin-top: 2rem;
    }
    .bento-large, .bento-wide {
        grid-row: auto;
        grid-column: auto;
    }
    .bento-card { min-height: 260px; border-radius: 10px; }
    .bento-content { padding: 1.5rem; }
    .bento-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
    .bento-tag { font-size: 0.6rem; letter-spacing: 2px; }
    .bento-card p {
        font-size: 0.85rem;
        transform: translateY(0);
        opacity: 1;   /* Always visible on mobile */
        margin-bottom: 0;
    }

    /* --- Budget Wizard --- */
    .budget-wizard {
        padding: 1.4rem;
        margin: 1.5rem 0;
        min-height: auto;
        border-radius: 10px;
    }
    .wizard-step h3 { font-size: 1rem; margin-bottom: 1.2rem; }
    .option-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .option-card { padding: 1.1rem 0.9rem; gap: 0.5rem; }
    .option-card strong { font-size: 0.72rem; }
    .option-card span { font-size: 0.67rem; }
    .opt-icon { font-size: 1.3rem; }
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .wiz-btn { padding: 0.75rem 1.2rem; font-size: 0.68rem; }

    /* --- Contacto / Redes --- */
    .contact-info-blocks {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .contact-method-card {
        padding: 1.4rem 1.2rem;
        border-radius: 10px;
        gap: 1rem;
    }
    .method-value { font-size: 0.95rem; }
    .social-row { gap: 1rem; }
    .social-pill { padding: 0.7rem 1.2rem; font-size: 0.73rem; }

    /* --- Footer --- */
    footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    footer span { font-size: 0.65rem; }

    /* --- Moodboard slider --- */
    .close-moodboard { top: 16px !important; right: 16px !important; padding: 0.6rem 1rem !important; font-size: 0.7rem !important; }
    .slider-btn { width: 38px; height: 38px; font-size: 0.9rem; }
    .prev-btn { left: 0.6rem; }
    .next-btn { right: 0.6rem; }
    .moodboard-item { padding: 3rem 1rem 2rem; }
    .moodboard-item video, .moodboard-item img { max-height: 65vh; max-width: 100%; }
}

/* ==================== RESPONSIVE — SMALL MOBILE ==================== */
@media (max-width: 420px) {
    h2 { font-size: 1.55rem; }
    .hero-logo { width: 190px; }
    section { padding: 4.5rem 1rem 2.5rem; }
    .team-card { padding: 1.2rem; }
    .bento-card { min-height: 220px; }
    .option-grid { grid-template-columns: 1fr; }
    .contact-method-card { padding: 1.1rem; }
    .method-value { font-size: 0.88rem; }
    .budget-wizard { padding: 1rem; }
    .wiz-btn { padding: 0.65rem 1rem; }
}

/* ==================== SERVICES BENTO GRID ==================== */
.services-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.6s var(--ease);
}

.bento-large {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-content {
    position: absolute;
    inset: 0;
    padding: 3rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(6, 6, 16, 0.95) 0%, rgba(6, 6, 16, 0.4) 50%, transparent 100%);
    transition: all 0.5s var(--ease);
}

.bento-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.bento-card h3 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 350px;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--ease);
}

.bento-footer {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--ease);
}

.bento-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.4s;
    text-transform: uppercase;
}

.bento-cta:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.bento-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-media img,
.bento-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) brightness(0.5);
    transition: all 1s var(--ease);
}

/* Hover Effects */
.bento-card {
    cursor: pointer;
}

.bento-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.bento-card:hover .bento-media img,
.bento-card:hover .bento-media video {
    filter: saturate(1) brightness(0.7);
    transform: scale(1.05);
}

/* Make P visible on hover */
.bento-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== MOODBOARD EXPLORER (FULLSCREEN SLIDER) ==================== */
.moodboard-explorer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483646 !important; /* MAX POSSIBLE minus one */
    background: #060610 !important; /* SOLID BACKGROUND to avoid ghosting */
    display: none;
    flex-direction: column;
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.moodboard-explorer.active {
    display: flex !important;
    opacity: 1 !important;
}

.close-moodboard {
    position: fixed !important;
    top: 40px !important;
    right: 40px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid var(--accent) !important; /* LIGHT BLUE BORDER for visibility */
    color: var(--text) !important;
    padding: 0.8rem 1.5rem !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    z-index: 2147483647 !important; /* ABSOLUTE MAX */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    transition: all 0.3s !important;
    backdrop-filter: blur(15px) !important;
    text-transform: uppercase;
}

.close-moodboard:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4) !important;
    transform: translateY(-3px) !important;
}


.moodboard-slider-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.moodboard-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.moodboard-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
}

.moodboard-item video,
.moodboard-item img {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
}

/* Slider Nav */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 4rem; }
.next-btn { right: 4rem; }

/* Pagination dots */
.slider-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    cursor: pointer;
    transition: all 0.4s;
    opacity: 0.5;
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 4px;
    opacity: 1;
}

@media (max-width: 900px) {
    .moodboard-slider-container { padding: 0 1rem; }
    .slider-btn { width: 45px; height: 45px; font-size: 1rem; }
    .prev-btn { left: 1rem; }
    .next-btn { right: 1rem; }
    .moodboard-item { padding: 2rem; }
}

/* ==================== BUDGET WIZARD ==================== */
.budget-wizard {
    max-width: 900px;
    margin: 4rem auto;
    background: rgba(12, 12, 30, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.wizard-progress {
    margin-bottom: 3rem;
}

.step-indicator {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.progress-bar-container {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%; /* JS controlled */
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.6s var(--ease);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.8s var(--ease);
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.option-card .opt-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.option-card strong {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-card span {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.option-card:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.option-card.selected {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-field input, .form-field select, .form-field textarea {
    transition: all 0.3s;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--accent) !important;
    outline: none;
    background: rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .budget-wizard { padding: 1.5rem; margin: 2rem 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
}

/* ==================== INVESTMENT TABLE ==================== */
.investment-container {
    margin: 4rem 0;
}

.investment-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.investment-table th,
.investment-table td {
    padding: 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.investment-table th {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(255, 255, 255, 0.03);
}

.investment-table td {
    font-size: 1.1rem;
}

.investment-table td strong {
    color: var(--text);
    font-weight: 700;
}

.investment-table tr:last-child td {
    border-bottom: none;
}

.investment-table tr:hover {
    background: rgba(0, 229, 255, 0.02);
}

.investment-note {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2rem;
    text-align: right;
    letter-spacing: 1px;
}

/* ==================== BUTTONS ==================== */
.budget-wizard-trigger {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 1.2rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s var(--ease);
}

.cta-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons-only {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon-btn {
    color: var(--text-dim);
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.social-icon-btn:hover {
    color: var(--accent);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px var(--accent));
}

@media (max-width: 600px) {
    .social-icons-only {
        gap: 2rem;
        flex-wrap: wrap;
    }
    .social-icon-btn svg {
        width: 24px;
        height: 24px;
    }
}
