:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --line: rgba(255, 255, 255, .1);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, .55);
    --petroleum: #3d6b7a;
    --petroleum-dark: #1e3a44;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --max: 1140px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), 90vw); margin: 0 auto; }

.header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.header.scrolled {
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(12px);
    border-color: var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 80px; gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: .35rem .75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
    transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.brand:hover {
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .34);
}
.brand-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    line-height: 1;
    min-width: 0;
}
.brand-name {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--text);
}
.brand-tag {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
}
@media (max-width: 480px) {
    .brand { padding: .3rem .6rem; }
    .brand-name { font-size: 1.15rem; }
    .brand-tag { display: none; }
}
.nav { display: flex; gap: 2rem; }
.nav a {
    font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); transition: color .2s;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang {
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    color: var(--muted); text-transform: uppercase;
}
.lang:hover { color: var(--text); }
.menu-btn {
    display: none; background: none; border: 0; color: var(--text);
    font-size: 1.25rem; cursor: pointer; padding: .25rem;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.35rem; font-size: .8125rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s, color .25s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: rgba(255, 255, 255, .88); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--petroleum); color: var(--text); }

.hero {
    min-height: 92svh; display: flex; align-items: center;
    padding: 7rem 0 4rem;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.hero-grid-text { grid-template-columns: minmax(0, 1fr) auto; }
.hero-content { display: flex; flex-direction: column; justify-content: center; }
.hero-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-wrap {
    width: clamp(210px, 22vw, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.15rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}
.hero-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.hero-inner { max-width: none; }
.hero-visual {
    border: 1px solid var(--line); overflow: hidden; position: relative;
}
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-visual figcaption {
    position: absolute; inset: auto 0 0; padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-visual figcaption strong { color: var(--text); display: block; margin-bottom: .25rem; }
.eyebrow {
    font-size: .75rem; font-weight: 600; letter-spacing: .2em;
    text-transform: uppercase; color: var(--petroleum); margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 500;
    line-height: 1.08; letter-spacing: -.03em; margin: 0 0 1.25rem;
}
.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted);
    max-width: 36rem; margin: 0 0 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.strip {
    border-block: 1px solid var(--line);
    padding: 1.25rem 0;
    font-size: .75rem; font-weight: 500; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); text-align: center;
}
.strip span { color: var(--petroleum); }

.metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border-block: 1px solid var(--line);
}
.metric {
    background: var(--bg); padding: 2rem 1.5rem; text-align: center;
}
.metric strong {
    display: block; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500;
    letter-spacing: -.03em; margin-bottom: .35rem;
}
.metric span { font-size: .8125rem; color: var(--muted); line-height: 1.4; }

.statement {
    padding: 5rem 0; border-bottom: 1px solid var(--line);
}
.statement blockquote {
    margin: 0; font-size: clamp(1.35rem, 2.8vw, 2rem); font-weight: 500;
    line-height: 1.45; letter-spacing: -.025em; max-width: 820px;
}
.statement cite {
    display: block; margin-top: 1.5rem; font-size: .8125rem; font-style: normal;
    letter-spacing: .14em; text-transform: uppercase; color: var(--petroleum);
}

.pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.pillar { background: var(--bg-elevated); padding: 2rem 1.75rem; }
.pillar h3 { margin: 0 0 .65rem; font-size: 1.05rem; font-weight: 500; }
.pillar p { margin: 0; color: var(--muted); font-size: .9rem; }

.case-study {
    max-width: 720px;
}
.case-content h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 1rem; }
.case-content p { color: var(--muted); margin: 0 0 1rem; }
.case-list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.case-list li {
    padding: .85rem 0; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: 140px 1fr; gap: 1rem; font-size: .9rem;
}
.case-list strong { color: var(--text); font-weight: 500; }
.case-list span { color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.channels span {
    font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid var(--line); padding: .45rem .7rem; color: var(--muted);
}

.timeline { border-left: 1px solid var(--line); margin-left: .5rem; }
.timeline-item {
    position: relative; padding: 0 0 2.5rem 2rem;
}
.timeline-item::before {
    content: ""; position: absolute; left: -.5rem; top: .35rem;
    width: 9px; height: 9px; border-radius: 50%; background: var(--petroleum);
    box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
    font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--petroleum); margin-bottom: .35rem;
}
.timeline-item h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 500; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 520px; }

.split-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.25rem 0;
    font-weight: 500; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--petroleum); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1.25rem; color: var(--muted); font-size: .9375rem; max-width: 640px; }

.cta-band {
    padding: 4rem 0; border-block: 1px solid var(--line); background: var(--bg-elevated);
    text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin: 0 0 .75rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.75rem; max-width: 480px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-head { margin-bottom: 3rem; max-width: 560px; }
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 500;
    letter-spacing: -.025em; margin: 0 0 1rem;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.process {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.process-step {
    background: var(--bg); padding: 2rem 1.75rem;
}
.process-num {
    font-size: .6875rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--petroleum); margin-bottom: 1rem;
}
.process-step h3 {
    font-size: 1.125rem; font-weight: 500; margin: 0 0 .65rem; letter-spacing: -.01em;
}
.process-step p { margin: 0; color: var(--muted); font-size: .9375rem; }

.symbol-explainer {
    display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center;
    padding: 3rem; border: 1px solid var(--line); background: var(--bg-elevated);
}
.symbol-large { width: 120px; height: 120px; }
.symbol-legend { list-style: none; padding: 0; margin: 0; }
.symbol-legend li {
    display: grid; grid-template-columns: 12px 1fr; gap: 1rem;
    padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem;
}
.symbol-legend li:last-child { border-bottom: 0; }
.symbol-legend .dot {
    width: 8px; height: 8px; border-radius: 50%; margin-top: .45rem;
    background: var(--petroleum);
}
.symbol-legend strong { display: block; font-weight: 500; margin-bottom: .2rem; }
.symbol-legend span { color: var(--muted); font-size: .875rem; }

.brands { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.brand-row {
    display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; align-items: center;
    padding: 2rem; background: var(--bg);
}
.brand-row.parent { background: var(--bg-elevated); }
.brand-row .label {
    font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--petroleum);
}
.brand-row h3 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.brand-row p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.brand-row .tag {
    font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line); padding: .4rem .65rem;
}
.brand-row.future { opacity: .45; }
.brand-row.future h3 { font-weight: 400; }

.capabilities {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.cap {
    background: var(--bg); padding: 1.75rem;
}
.cap h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 500; }
.cap p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }

.founder-block {
    max-width: 720px;
}
.founder-head {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.founder-avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    object-position: center top; flex-shrink: 0; border: 1px solid var(--line);
}
.founder-head h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 .35rem; }
.founder-head .meta { margin: 0; }
.founder-body .meta {
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--petroleum); margin-bottom: .75rem;
}
.founder-block h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 1rem; }
.founder-block p { color: var(--muted); margin: 0 0 1rem; }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    padding-top: 2rem; border-top: 1px solid var(--line);
}
.contact-meta p { color: var(--muted); font-size: .9375rem; margin: 0 0 .5rem; }
.contact-meta a { color: var(--text); border-bottom: 1px solid var(--line); }
.contact-meta a:hover { border-color: var(--petroleum); }
.contact-form { display: grid; gap: .75rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: .9rem 1rem; background: var(--bg-elevated);
    border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .9375rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--petroleum);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { cursor: pointer; width: fit-content; }

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.footer {
    padding: 2.5rem 0 3rem; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    font-size: .8125rem; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* —— Expanded layout (v5) —— */
.hero-compact { min-height: auto; padding: 6.5rem 0 3.5rem; }
.hero-symbol {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem; border: 1px solid var(--line); background: var(--bg-elevated); text-align: center;
}
.hero-founder {
    border: 1px solid var(--line); overflow: hidden; background: var(--bg-elevated);
}
.hero-founder img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; display: block; }
.hero-founder .hero-symbol-caption { padding: 1rem 1.25rem 1.25rem; }
.tech-row {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem;
}
.tech-row span {
    font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--line); padding: .4rem .65rem; color: var(--muted);
}
.tech-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.tech-group { background: var(--bg); padding: 1.35rem 1.5rem; }
.tech-group h4 {
    margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--petroleum);
}
.tech-group p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.hero-symbol-caption { margin: 0; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }

.service-lines {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.service-line {
    background: var(--bg); padding: 2rem 1.75rem;
}
.service-num {
    font-size: .6875rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--petroleum); margin: 0 0 .75rem;
}
.service-line h3 { margin: 0 0 .65rem; font-size: 1.1rem; font-weight: 500; }
.service-line p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.service-tags {
    list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem;
}
.service-tags li {
    font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
    border: 1px solid var(--line); padding: .35rem .55rem; color: var(--muted);
}

.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.portfolio-card {
    background: var(--bg); padding: 1.75rem; display: flex; flex-direction: column; gap: .65rem;
}
.portfolio-card.portfolio-featured { grid-column: span 2; background: var(--bg-elevated); }
.portfolio-card .label {
    font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--petroleum); margin: 0;
}
.portfolio-card h3 { margin: 0; font-size: 1.1rem; font-weight: 500; }
.portfolio-card p { margin: 0; color: var(--muted); font-size: .875rem; flex: 1; }
.portfolio-card .btn { margin-top: .5rem; width: fit-content; }

.price-badge {
    margin: 1rem 0 0; font-size: .9375rem; color: var(--muted);
}
.price-badge strong { color: var(--text); font-weight: 500; }

#metodo .process { grid-template-columns: repeat(4, 1fr); }
.case-list.compact { margin-top: .75rem; }
.case-list.compact li { grid-template-columns: 110px 1fr; padding: .55rem 0; font-size: .8125rem; }
.portfolio-squads .case-list { border-top: 1px solid var(--line); }

.templates-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.template-card {
    background: var(--bg-elevated); border: 1px solid var(--line);
    border-radius: 2px; overflow: hidden;
}
.template-card.visible, .template-card { opacity: 1; transform: none; }
.template-thumb { position: relative; overflow: hidden; }
.template-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.template-tag {
    position: absolute; left: .75rem; top: .75rem;
    font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    background: rgba(0,0,0,.7); color: #fff; padding: .35rem .5rem;
}
.template-body { padding: 1.25rem; }
.template-body h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 500; }
.template-body p { margin: 0 0 1rem; color: var(--muted); font-size: .8125rem; }
.template-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-sm { padding: .6rem 1rem; font-size: .6875rem; }

.modal {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-dialog {
    width: min(920px, 100%); max-height: 90vh; overflow: auto;
    background: var(--bg-elevated); border: 1px solid var(--line);
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.modal-close {
    background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-foot {
    padding: .75rem 1.25rem 1.25rem; margin: 0; font-size: .75rem; color: var(--muted);
}
.demo-frame-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid;
}
.demo-frame-head nav { display: flex; gap: 1rem; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.demo-frame-hero {
    position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; text-align: center; padding: 2rem;
}
.demo-frame-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.demo-frame-hero h2 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 1.75rem; font-weight: 500; }
.demo-frame-note { padding: 1rem; text-align: center; font-size: .75rem; opacity: .65; }

#templates { background: var(--bg); }
.section-alt { background: var(--bg-elevated); }

@media (max-width: 860px) {
    .hero-grid, .process, .capabilities, .contact-grid, .founder-block,
    .case-study, .split-section, .pillars, .metrics, .service-lines,
    .portfolio-grid, .templates-grid, .tech-grid { grid-template-columns: 1fr; }
    .hero-compact .hero-grid { min-height: auto; }
    .hero-logo-panel { max-width: 260px; margin: 1.5rem auto 0; }
    #metodo .process { grid-template-columns: 1fr; }
    .portfolio-card.portfolio-featured { grid-column: span 1; }
    .case-list li { grid-template-columns: 1fr; gap: .25rem; }
    .brand-row { grid-template-columns: 1fr; gap: .75rem; }
    .symbol-explainer { grid-template-columns: 1fr; text-align: center; }
    .symbol-large { margin: 0 auto; }
    .nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--bg);
        border-bottom: 1px solid var(--line); padding: 1rem 5vw;
    }
    .nav.open { display: flex; }
    .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
    .menu-btn { display: block; }
}
