/* ═══════════════════════════════════════════════
   AZ SISTEMES INFORMÀTICS — Global Styles
   ═══════════════════════════════════════════════ */

:root {
    --bg-primary: #090f1a;
    --bg-secondary: #0d1525;
    --bg-card: #131d30;
    --bg-card-hover: #182640;
    --accent: #2d7cf6;
    --accent-light: #5b9bf5;
    --accent-soft: rgba(45, 124, 246, 0.1);
    --accent-glow: rgba(45, 124, 246, 0.15);
    --green: #10b981;
    --green-soft: rgba(16, 185, 129, 0.1);
    --text-primary: #eaf0f9;
    --text-secondary: #8b9dc3;
    --text-muted: #7a8da8;
    --border: rgba(138, 160, 200, 0.08);
    --border-accent: rgba(45, 124, 246, 0.2);
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    --radius: 12px;
    --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Focus visible (accessibility) ── */
:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 4px;
}
.card:focus-visible {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Skip navigation ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    z-index: 10001;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    backdrop-filter: blur(24px) saturate(1.2);
    background: rgba(9, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}
nav.scrolled { padding: 0.6rem 2rem; }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-link img { height: 44px; width: auto; }
.logo-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(45, 124, 246, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45, 124, 246, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.02);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: white; }

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float::after {
    content: 'Escríbanos';
    position: absolute;
    right: 70px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--border);
}
.whatsapp-float:hover::after { opacity: 1; }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── Section commons ── */
section { padding: 6rem 2rem; }
.bg-dark { background: var(--bg-secondary); }

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.75;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    opacity: 0;
    transition: opacity 0.35s;
}
.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.card:hover::after { opacity: 1; }

.card-icon {
    width: 50px; height: 50px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.card-icon svg {
    width: 24px; height: 24px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; font-weight: 300; }
.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: gap 0.2s;
}
.card:hover .card-link { gap: 0.6rem; }

/* ── Tech logos ── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s;
}
.tech-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.tech-item img, .tech-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.tech-item span { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.tech-item:hover span { color: var(--text-primary); }

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 20px; height: 20px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.5;
}
.meta-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
    font-weight: 500;
}
.meta-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.meta-value a { color: var(--accent-light); }
.meta-value a:hover { text-decoration: underline; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Google Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
}
.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: grayscale(0.8) invert(0.92) contrast(0.9);
}

/* ── Page Header (subpages) ── */
.page-header {
    padding: 10rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.page-header .bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(45, 124, 246, 0.06), transparent);
}
.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    margin-bottom: 1rem;
}
.page-header h1 .highlight {
    background: linear-gradient(135deg, var(--accent-light), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.75;
    font-weight: 300;
    position: relative;
}

/* ── Partners ── */
.partners-strip {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.partner-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.65;
    transition: opacity 0.3s;
}
.partner-item:hover { opacity: 1; }
.partner-item img, .partner-item svg { height: 28px; width: auto; }
.partner-item span { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.04em; }

/* ── Footer ── */
footer {
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    backdrop-filter: blur(20px);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s;
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cookie-inner p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
    min-width: 280px;
}
.cookie-inner a { color: var(--accent-light); }
.cookie-inner a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btns button {
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
    border: none;
}
.cookie-accept { background: var(--accent); color: white; }
.cookie-accept:hover { background: var(--accent-light); }
.cookie-reject { background: transparent; color: var(--text-secondary); border: 1px solid var(--border) !important; }
.cookie-reject:hover { color: var(--text-primary); border-color: var(--text-muted) !important; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseAnim { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── Content layouts (servicios, sobre-nosotros) ── */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.content-grid--reversed {
    grid-template-columns: 1fr 1.2fr;
}

.section-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.section-text--mb-lg {
    margin-bottom: 2rem;
}
.section-text strong {
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.feature-check {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.check-icon {
    color: var(--green);
}

.img-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.img-frame img {
    width: 100%;
    display: block;
}

/* ── Hero (index) ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(45, 124, 246, 0.06), transparent),
                radial-gradient(ellipse 50% 40% at 75% 30%, rgba(99, 102, 241, 0.04), transparent);
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(138, 160, 200, 0.025) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(138, 160, 200, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    animation: fadeUp 0.7s ease-out;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseAnim 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease-out 0.1s both;
    letter-spacing: -0.02em;
}
.highlight-gradient {
    background: linear-gradient(135deg, var(--accent-light), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.7s ease-out 0.2s both;
    font-weight: 300;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease-out 0.3s both;
}
.hero-visual {
    position: relative;
    animation: fadeUp 0.8s ease-out 0.3s both;
}
.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.img-frame--offset-down { margin-top: 2rem; }
.img-frame--offset-up { margin-top: -2rem; }

/* ── Banner grid (index) ── */
.banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
}

/* ── Section intro grid (index tech preview) ── */
.section-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}
.section-intro-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ── Services grid (index) ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Utility classes ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Tech item detailed (tecnologias) ── */
.tech-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tech-item--detailed {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
}
.tech-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.tech-item__name {
    font-weight: 600;
    color: var(--text-primary);
}
.tech-item__desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── Values & Process grids (sobre-nosotros) ── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.process-step {
    padding: 1.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}
.process-step--final {
    border-left-color: var(--green);
}
.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.step-number--green {
    color: var(--green);
}
.step-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ── Contact page extras ── */
.contact-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.contact-intro {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-actions .btn-primary,
.form-actions .btn-whatsapp {
    flex: 1;
    justify-content: center;
}

/* ── Footer helpers ── */
.footer-brand .logo-link img {
    height: 40px;
}



/* ── FAQ Accordion ── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.faq-item:only-child {
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
}

.faq-item:hover {
    background: var(--bg-card-hover);
}

.faq-item[open] {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: 0 0 20px rgba(45, 124, 246, 0.06), inset 0 0 0 1px var(--border-accent);
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border-accent);
    border-radius: var(--radius);
    margin: 0.5rem 0;
}

.faq-item:first-child[open] { margin-top: 0; }
.faq-item:last-child[open] { margin-bottom: 0; }

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
    content: '';
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232d7cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-question::after {
    background-color: rgba(45, 124, 246, 0.18);
}

.faq-item[open] .faq-question {
    color: var(--accent-light);
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    box-shadow: 0 0 12px rgba(45, 124, 246, 0.4);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--border-accent);
    margin: 0 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.97rem;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.faq-answer a:hover {
    border-bottom-color: var(--accent-light);
}

/* Numeración lateral */
.faq-question::before {
    content: counter(faq-counter, decimal-leading-zero);
    counter-increment: faq-counter;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.5;
    min-width: 28px;
}

.faq-list {
    counter-reset: faq-counter;
}


.faq-answer ul {
    margin: 0.75rem 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-answer ul li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.faq-answer p + p {
    margin-top: 0.75rem;
}

.faq-answer p + ul {
    margin-top: 0.5rem;
}

.faq-answer ul + p {
    margin-top: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .content-grid,
    .content-grid--reversed { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .section-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .banner-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(9, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    section { padding: 4rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr !important; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .hero { min-height: auto; padding: 7rem 1.5rem 3rem; }
    .hero-visual { display: none; }
    .banner-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .content-grid,
    .content-grid--reversed { gap: 1.5rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
