:root {
    --ink: #14201b;
    --ink-soft: #3d4a44;
    --paper: #f7f2ea;
    --paper-deep: #ebe3d6;
    --surface: #fffdf9;
    --forest: #0f3d2e;
    --forest-2: #185a44;
    --ember: #c45c26;
    --ember-soft: #e8a06a;
    --line: rgba(20, 32, 27, 0.12);
    --shadow: 0 24px 60px rgba(20, 32, 27, 0.12);
    --radius: 18px;
    --font: "DM Sans", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(196, 92, 38, 0.18), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(15, 61, 46, 0.16), transparent 50%),
        linear-gradient(180deg, #f8f4ed 0%, #f3eee5 40%, #efe8dc 100%);
    line-height: 1.55;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(247, 242, 234, 0.82);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--forest), var(--forest-2));
    color: #f7f2ea; font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(15, 61, 46, 0.28);
}
.brand-text {
    font-family: var(--font);
    font-size: 1.35rem; font-weight: 700;
    letter-spacing: -0.03em;
}
.nav-desktop { display: none; gap: 1.4rem; }
.nav-desktop a { color: var(--ink-soft); font-weight: 500; }
.nav-desktop a:hover { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--surface); cursor: pointer;
}
.nav-mobile {
    display: grid; gap: .4rem; padding: .5rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(255,253,249,.96);
}
.nav-mobile a { padding: .7rem .4rem; font-weight: 600; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border-radius: 999px; padding: .78rem 1.25rem; font-weight: 700;
    border: 1px solid transparent; cursor: pointer; transition: .2s ease;
    font-family: inherit; font-size: .95rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ember), #a84618);
    color: #fff; box-shadow: 0 10px 24px rgba(196, 92, 38, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
    background: var(--forest); color: #f4f7f5;
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.22);
}
.btn-ghost {
    background: transparent; border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn-lg { padding: .95rem 1.45rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.hero {
    position: relative;
    padding: 3.2rem 0 4rem;
    overflow: hidden;
}
.hero-copy { max-width: 640px; position: relative; z-index: 2; }
.hero-brand {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5.4rem);
    line-height: .95; letter-spacing: -0.03em;
    margin: 0 0 .8rem; color: var(--forest);
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    font-weight: 600; line-height: 1.15;
    margin: 0 0 1rem; color: var(--ink);
    max-width: 18ch;
}
.hero-lead {
    font-size: 1.08rem; color: var(--ink-soft);
    max-width: 38ch; margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.hero-note { color: var(--ink-soft); font-size: .92rem; }
.hero-visual {
    margin-top: 2.4rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20,32,27,.08);
    background: #101916;
    position: relative;
}
.hero-visual .gallery-trigger {
    display: block; width: 100%; padding: 0; border: 0; background: transparent;
    cursor: zoom-in; position: relative;
}
.hero-visual img {
    width: 100%; min-height: 240px; object-fit: cover; object-position: top;
    aspect-ratio: 16/9;
}
.hero-visual .gallery-trigger::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
    background: linear-gradient(transparent, rgba(16,25,22,.35));
    pointer-events: none;
}

.section { padding: 4.5rem 0; }
.section-alt {
    background: linear-gradient(180deg, rgba(255,253,249,.72), rgba(235,227,214,.55));
    border-block: 1px solid var(--line);
}
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 0 0 .7rem; letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.feature-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.3rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: .8rem;
    background: rgba(15, 61, 46, 0.08); color: var(--forest); font-size: 1.25rem;
}
.feature h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.btn-feature-more {
    margin-top: .95rem;
    display: inline-flex; align-items: center; gap: .35rem;
    border: 0; background: transparent; padding: 0;
    color: var(--forest); font: inherit; font-weight: 700; font-size: .9rem;
    cursor: pointer;
}
.btn-feature-more:hover { color: var(--ember); }
.btn-feature-more i { font-size: .95rem; }

/* Panel de información ampliada de características */
.feature-panel {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
    background: rgba(10, 16, 14, 0.72);
    backdrop-filter: blur(5px);
}
.feature-panel.is-open { display: flex; }
.feature-panel-card {
    width: min(640px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    background: var(--surface);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
    padding: 1.5rem 1.5rem 1.35rem;
    position: relative;
    animation: featurePanelIn .28s ease;
}
@keyframes featurePanelIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.feature-panel-close {
    position: absolute; top: .85rem; right: .85rem;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; cursor: pointer;
    color: var(--ink); font-size: 1.1rem;
}
.feature-panel-close:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.feature-panel-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; margin-bottom: .9rem;
    background: rgba(15, 61, 46, 0.1); color: var(--forest); font-size: 1.4rem;
}
.feature-panel-card h3 {
    font-family: var(--display); font-size: 1.55rem;
    margin: 0 2.2rem .7rem 0; color: var(--ink);
}
.feature-detail-lead {
    margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.55;
}
.feature-panel-card ul {
    list-style: none; padding: 0; margin: 0 0 1.2rem;
    display: grid; gap: .55rem;
}
.feature-panel-card li {
    display: flex; gap: .55rem; align-items: flex-start;
    color: var(--ink); font-size: .95rem;
}
.feature-panel-card li::before {
    content: "✓";
    color: var(--forest); font-weight: 700; margin-top: .05rem;
}
.feature-panel-actions {
    display: flex; flex-wrap: wrap; gap: .6rem;
    padding-top: .4rem; border-top: 1px solid var(--line);
}

.shot-grid {
    display: grid; gap: 1.1rem;
    grid-template-columns: 1fr;
}
.shot {
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(20,32,27,.08);
}
.shot .gallery-trigger {
    display: block; width: 100%; padding: 0; border: 0; background: #1a2621;
    cursor: zoom-in; position: relative;
}
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: #1a2621; display: block; transition: transform .35s ease; }
.shot .gallery-trigger:hover img { transform: scale(1.03); }
.shot figcaption {
    padding: .9rem 1.1rem 1.1rem;
    font-weight: 600;
}
.shot figcaption span {
    display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-top: .2rem;
}
.gallery-zoom-hint {
    position: absolute; right: .85rem; bottom: .85rem; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(15, 61, 46, 0.88); color: #f7f2ea;
    font-size: 1.1rem; box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: transform .2s ease, background .2s ease;
}
.gallery-trigger:hover .gallery-zoom-hint {
    transform: scale(1.08); background: var(--ember);
}

/* Lightbox galería a pantalla completa */
.lb-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 14, 12, 0.94);
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1rem; backdrop-filter: blur(6px);
}
.lb-overlay.is-open { display: flex; }
.lb-stage {
    position: relative;
    width: min(1280px, 100%);
    height: min(86vh, 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 16px;
    touch-action: none; cursor: grab;
    background: #0b1210;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lb-stage.is-dragging { cursor: grabbing; }
.lb-image {
    max-width: 100%; max-height: 100%;
    object-fit: contain; user-select: none;
    transform-origin: center center;
    transition: transform .08s linear;
    will-change: transform;
}
.lb-caption {
    margin-top: .85rem; text-align: center; color: #f4f7f5;
    max-width: 40rem;
}
.lb-caption strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.lb-caption span { color: rgba(244,247,245,.72); font-size: .92rem; }
.lb-counter {
    position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
    color: rgba(244,247,245,.75); font-size: .9rem; font-weight: 600;
    z-index: 2; pointer-events: none;
}
.lb-btn {
    position: absolute; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: 1.35rem; backdrop-filter: blur(4px);
    transition: background .2s ease;
}
.lb-btn:hover { background: rgba(196, 92, 38, 0.85); }
.lb-close { top: 1rem; right: 1rem; z-index: 3; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lb-tools {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .45rem; z-index: 3;
}
.lb-tools .lb-btn { position: static; transform: none; width: 44px; height: 44px; font-size: 1.15rem; }
body.lb-lock { overflow: hidden; }

@media (max-width: 767px) {
    .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 1.1rem; }
    .lb-stage { height: min(72vh, 100%); }
}

.price-wrap {
    display: grid; gap: 1.5rem;
    align-items: stretch;
}
.price-card {
    background: linear-gradient(160deg, #12382c 0%, #0f3d2e 45%, #1a4f3a 100%);
    color: #f4f7f5;
    border-radius: 28px;
    padding: 2rem 1.6rem;
    box-shadow: 0 28px 60px rgba(15, 61, 46, 0.28);
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -70px;
    background: radial-gradient(circle, rgba(232,160,106,.35), transparent 70%);
}
.price-card > * { position: relative; z-index: 1; }
.price-card .eyebrow {
    display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ember-soft); font-weight: 700; margin-bottom: .6rem;
}
.price-card h2 { font-family: var(--display); margin: 0; font-size: 2rem; }
.price-amount {
    display: flex; align-items: baseline; gap: .35rem;
    margin: 1.1rem 0 .4rem;
}
.price-amount strong {
    font-family: var(--display);
    font-size: clamp(3.2rem, 8vw, 4.4rem);
    line-height: 1; font-weight: 700;
}
.price-amount span { color: rgba(244,247,245,.75); font-weight: 600; }
.price-card .lead { color: rgba(244,247,245,.82); margin: 0 0 1.2rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.price-list li { display: flex; gap: .55rem; align-items: flex-start; }
.price-list i { color: var(--ember-soft); margin-top: .15rem; }
.price-side {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.5rem;
}
.price-side h3 { margin: 0 0 .6rem; font-family: var(--display); }
.price-side p { color: var(--ink-soft); margin: 0 0 1rem; }
.steps { display: grid; gap: .8rem; counter-reset: step; }
.step {
    display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
    padding: .85rem; border-radius: 14px; background: rgba(15,61,46,.04);
}
.step::before {
    counter-increment: step; content: counter(step);
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--forest); color: #fff; font-weight: 700; font-size: .85rem;
}
.step strong { display: block; }
.step span { color: var(--ink-soft); font-size: .92rem; }

.auth-page { padding: 2.5rem 0 4rem; }
.auth-card {
    width: min(720px, 100%);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}
.auth-card h1 {
    font-family: var(--display);
    margin: 0 0 .4rem; font-size: 2rem;
}
.auth-card .sub { color: var(--ink-soft); margin: 0 0 1.4rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
input, select, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: .8rem .9rem; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(15, 61, 46, 0.25); border-color: var(--forest);
}
.form-check {
    display: flex; gap: .65rem; align-items: flex-start;
    font-weight: 500; color: var(--ink-soft); font-size: .92rem;
}
.form-check input { width: auto; margin-top: .25rem; }
.form-error {
    background: #fff1ed; color: #8a2b12; border: 1px solid #f0c2b0;
    border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.form-ok {
    background: #eaf6f0; color: #0f3d2e; border: 1px solid #b9dcc9;
    border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.muted { color: var(--ink-soft); }
.field-hint {
    display: block; margin-top: .35rem;
    font-weight: 400; font-size: .85rem; color: var(--ink-soft); line-height: 1.4;
}
.field-hint code {
    font-size: .82rem; background: rgba(15,61,46,.06);
    padding: .1rem .35rem; border-radius: 6px;
}
.legal-page { padding: 2.5rem 0 4rem; }
.legal-page article {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; padding: 1.6rem 1.8rem 2rem; max-width: 820px;
}
.legal-page h1 { font-family: var(--display); margin: 0 0 .4rem; }
.legal-page h2 {
    font-family: var(--display); font-size: 1.25rem;
    margin: 1.6rem 0 .7rem; color: var(--forest);
}
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul, .legal-page ol { padding-left: 1.2rem; }
.legal-page li { margin-bottom: .4rem; }
.legal-page a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.legal-callout {
    background: rgba(196, 92, 38, 0.08);
    border: 1px solid rgba(196, 92, 38, 0.28);
    border-left: 4px solid var(--ember);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin: 1.2rem 0;
    color: var(--ink);
    font-size: .95rem;
}
.legal-callout strong { color: var(--ink); }
.account-grid {
    display: grid; gap: 1rem;
}
.account-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; padding: 1.3rem;
}
.account-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 700;
}
.badge-ok { background: #dff5e8; color: #0f3d2e; }
.badge-warn { background: #fff1d6; color: #8a5a00; }
.badge-bad { background: #ffe3db; color: #8a2b12; }

.site-footer {
    margin-top: 2rem;
    background: #10241c;
    color: rgba(247,242,234,.86);
    padding: 3rem 0 1.4rem;
}
.footer-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
.footer-brand { margin-bottom: .7rem; }
.footer-tag { color: rgba(247,242,234,.7); max-width: 28ch; }
.site-footer h4 { margin: 0 0 .7rem; color: #fff; font-size: .95rem; }
.site-footer a, .footer-meta { display: block; color: rgba(247,242,234,.72); margin-bottom: .35rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2rem; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-wrap: wrap; gap: .6rem 1.2rem;
    justify-content: space-between; font-size: .85rem;
    color: rgba(247,242,234,.55);
}

.reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .shot-grid { grid-template-columns: repeat(2, 1fr); }
    .price-wrap { grid-template-columns: 1.2fr .8fr; }
    .form-row.two { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .account-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .hero {
        display: grid; grid-template-columns: 1fr 1.15fr;
        align-items: end; gap: 2rem;
        min-height: calc(100vh - 72px);
        padding-top: 2.5rem;
    }
    .hero-visual { margin-top: 0; }
}
