:root {
    --bg: #000000;
    --bg-panel: #121212;
    --bg-panel-2: #191b24;
    --border: #2a2e3f;
    --text: #ffffff;
    --text-muted: #b7c0d6;
    --gold: #cda434;
    --gold-light: #f0d27a;
    --gold-deep: #96730f;
    --blue: #1d3f7a;
    --blue-light: #4f7fe0;
    --danger: #ff6b60;
    --success: #4fd38a;
    --radius: 10px;
    --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.brand .brand-mark {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-light);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 1.1rem;
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 14px 20px;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
}

/* ---- Hero / verify search ---- */
.hero {
    position: relative;
    padding: 64px 0 56px;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.hero-canvas {
    position: absolute;
    inset: -12%;
    z-index: 0;
    width: 124%;
    height: 124%;
    filter: blur(14px);
    opacity: 0.85;
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 10px;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.hero .subtitle {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 34px;
    font-size: 1.05rem;
}

.verify-box {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.verify-box .verify-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.verify-form {
    display: flex;
    gap: 10px;
}

.verify-form input[type=text] {
    flex: 1;
    min-width: 0;
}

.verify-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.waitlist-beta-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    text-transform: lowercase;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 18px auto 0;
}

.waitlist-stats {
    margin-top: 36px;
}

.waitlist-stats .stat-line {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.waitlist-stats .stat-line-muted {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ---- Buttons / forms ---- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    transition-duration: 0.05s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    color: #fff;
    border-bottom: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 22px rgba(79, 127, 224, 0.4), 0 0 0 1px rgba(240, 210, 122, 0.15);
}
.btn-primary:hover {
    filter: brightness(1.15);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(79, 127, 224, 0.6), 0 0 0 1px rgba(240, 210, 122, 0.35);
}

.btn-primary::after {
    content: "\2192";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.btn-primary:hover::after {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.btn-danger {
    background: var(--danger);
    color: #1a0503;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255, 107, 96, 0.35);
}
.btn-danger:hover {
    box-shadow: 0 8px 22px rgba(255, 107, 96, 0.55);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], select, textarea {
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.field { margin-bottom: 18px; }

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* ---- Sections ---- */
.section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.section:nth-of-type(even) {
    background: var(--bg-panel-2);
}

.section h2 {
    font-size: 1.7rem;
    margin: 0 0 8px;
}

.section .section-lead {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 34px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-illustration {
    max-width: 260px;
    margin: 8px auto 30px;
}

.service-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.step-item {
    position: relative;
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    padding-top: 26px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover {
    transform: translateY(-3px);
    border-color: rgba(205, 164, 52, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.step-number {
    position: absolute;
    top: -14px;
    left: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #17120a;
    font-weight: 800;
    font-size: 0.95rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(205, 164, 52, 0.45);
}

.step-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.step-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.step-item ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.step-item ul li {
    margin-bottom: 3px;
}

.price-tag {
    display: inline-block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gold-light);
    background: rgba(205, 164, 52, 0.15);
    border: 1px solid rgba(205, 164, 52, 0.5);
    padding: 6px 14px;
    border-radius: 100px;
    margin-left: 10px;
}

.card-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(205, 164, 52, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.card-panel h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.tag-blue { background: rgba(79, 127, 224, 0.16); color: var(--blue-light); }
.tag-gold { background: rgba(205, 164, 52, 0.18); color: var(--gold-light); }

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.criteria-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin-bottom: 8px;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: block;
    margin-bottom: 10px;
}

.criteria-list li {
    background: var(--bg-panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.9rem;
}

.placeholder-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-left: 3px solid var(--gold);
    padding: 8px 12px;
    background: rgba(205, 164, 52, 0.10);
    border-radius: 0 6px 6px 0;
    margin-top: 16px;
}

.highlight {
    color: var(--gold-light);
    font-weight: 700;
}

/* ---- Card result (verify page) ---- */
.result-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.grade-badge {
    text-align: center;
    background: linear-gradient(160deg, var(--blue-light), var(--blue));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 110px;
}

.grade-badge .grade-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.grade-badge .grade-caption {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.photos-grid img {
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
    height: auto;
}

.subgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.subgrade-item {
    background: linear-gradient(160deg, var(--blue-light), var(--blue));
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.subgrade-item .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-light);
}

.subgrade-item .label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.qr-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qr-box svg { width: 130px; height: 130px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px; }

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 0.92rem;
}
.alert-error { background: rgba(255, 107, 96, 0.14); border: 1px solid rgba(255, 107, 96, 0.4); color: #ff9891; }
.alert-success { background: rgba(79, 211, 138, 0.14); border: 1px solid rgba(79, 211, 138, 0.4); color: #8fe6b4; }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 34px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.site-footer .footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Admin ---- */
.admin-shell { min-height: 100vh; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.admin-table th {
    background: var(--bg-panel-2);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.actions-cell { display: flex; gap: 10px; }

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.login-box h1 {
    font-size: 1.3rem;
    text-align: center;
    margin-top: 0;
}

.current-photos {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.current-photos img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ---- Animaciones al hacer scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Contador animado ---- */
.counter {
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn, .btn:hover, .card-panel, .card-panel:hover, .step-item, .step-item:hover {
        transition: none;
        transform: none;
    }
}
