:root {
    --bg: #0a0e17;
    --bg-2: #0f1524;
    --bg-3: #141c30;
    --gold: #d4a017;
    --gold-light: #f0c33c;
    --gold-dark: #a87f12;
    --text: #e8ecf4;
    --text-dim: #9aa4b8;
    --line: rgba(212, 160, 23, 0.25);
    --ok: #2ecc71;
    --err: #e74c3c;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(212, 160, 23, 0.08), transparent 60%),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 24px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #0a0e17; letter-spacing: -0.5px;
}
.brand-logo-img {
    height: 42px; width: auto; border-radius: 10px; object-fit: contain;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.brand-name span { color: var(--gold-light); }

.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nav-links a {
    color: var(--text-dim); font-size: 14px; padding: 8px 12px; border-radius: 8px;
    transition: 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(212, 160, 23, 0.1); }
.nav-links a.active { color: var(--gold-light); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 8px; border-left: 1px solid var(--line); padding-left: 10px; }
.lang-switch button {
    background: none; border: 1px solid transparent; color: var(--text-dim);
    font-size: 12px; padding: 5px 8px; border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { color: var(--gold-light); border-color: var(--line); background: rgba(212,160,23,0.08); }

.hamburger { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--bg-2); flex-direction: column; align-items: stretch;
        padding: 12px; border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links.open { max-height: calc(100vh - 72px); overflow-y: auto; }
    .lang-switch { border-left: none; padding-left: 0; margin-left: 0; }
}

@media (max-width: 400px) {
    .brand-name { font-size: 15px; }
    .brand-logo-img { height: 36px; }
}

@media (max-width: 1500px) {
    .nav-links { gap: 2px; }
    .nav-links a { padding: 7px 8px; font-size: 13px; }
    .brand-name { font-size: 16px; }
    .lang-switch { margin-left: 4px; padding-left: 6px; }
}

@media (min-width: 1200px) {
    .nav { max-width: 1440px; }
}

@media (min-width: 1600px) {
    .nav { max-width: 1500px; }
    .container { max-width: 1400px; }
}

/* ===== Hero ===== */
.hero {
    position: relative; text-align: center; padding: 90px 24px 70px;
    background:
        linear-gradient(180deg, rgba(10,14,23,0) 0%, var(--bg) 100%),
        radial-gradient(900px 500px at 50% 0%, rgba(212,160,23,0.15), transparent 65%);
}
.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.hero h1 span { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 0 auto 32px; color: var(--text-dim); font-size: 18px; }

.btn {
    display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px;
    border: none; cursor: pointer; transition: 0.2s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0a0e17; }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,160,23,0.35); }
.btn-ghost { background: transparent; color: var(--gold-light); border: 1px solid var(--gold); }
.btn-ghost:hover { background: rgba(212,160,23,0.1); }
.btn-block { width: 100%; }
.hero .btn { margin: 0 6px 10px; }

/* ===== Sections ===== */
section { padding: 60px 0; }
.sec-tag {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; background: rgba(212,160,23,0.06);
}
.sec-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.sec-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 36px; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-2); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 24px; transition: 0.25s;
}
.card:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; }
.card .card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.card .card-link::after { content: ' →'; }

.feature-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feature-item .mark { color: var(--gold-light); font-weight: 800; }
.feature-item span { color: var(--text-dim); font-size: 15px; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--bg-2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 28px; position: relative; }
.plan.hot { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,160,23,0.08), var(--bg-2)); }
.plan .badge {
    position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0a0e17; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: 1px;
}
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price { font-size: 38px; font-weight: 800; color: var(--gold-light); margin: 8px 0; }
.plan .price small { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.plan ul { list-style: none; margin: 18px 0 24px; }
.plan li { padding: 6px 0; color: var(--text-dim); font-size: 14px; }
.plan li::before { content: '✓ '; color: var(--gold-light); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ===== Formularios ===== */
.form-card { background: var(--bg-2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-row { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 15px;
    background: var(--bg-3); border: 1px solid rgba(255,255,255,0.12); color: var(--text);
    transition: 0.2s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }
textarea { resize: vertical; min-height: 120px; }

.file-drop {
    border: 2px dashed rgba(212,160,23,0.35); border-radius: 10px; padding: 24px; text-align: center;
    cursor: pointer; transition: 0.2s; background: rgba(212,160,23,0.04);
}
.file-drop:hover, .file-drop.over { border-color: var(--gold); background: rgba(212,160,23,0.1); }
.file-drop .icon { font-size: 26px; }
.file-drop p { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.file-list { margin-top: 10px; font-size: 13px; color: var(--gold-light); }

.form-note { font-size: 13px; color: var(--text-dim); margin-top: 10px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; display: none; }
.form-status.ok { display: block; background: rgba(46,204,113,0.12); color: var(--ok); border: 1px solid rgba(46,204,113,0.3); }
.form-status.err { display: block; background: rgba(231,76,60,0.12); color: var(--err); border: 1px solid rgba(231,76,60,0.3); }
.form-status.loading { display: block; background: rgba(212,160,23,0.1); color: var(--gold-light); border: 1px solid var(--line); }

/* ===== Chat demo ===== */
.chat-box { max-width: 720px; margin: 0 auto; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(212,160,23,0.06); }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dark), var(--gold-light)); display: flex; align-items: center; justify-content: center; color: #0a0e17; font-weight: 800; }
.chat-head h4 { font-size: 15px; }
.chat-head small { color: var(--ok); font-size: 12px; }
.chat-body { height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.bubble.bot { background: var(--bg-3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.user { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #0a0e17; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-input input { flex: 1; background: var(--bg-3); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px 14px; color: var(--text); }
.chat-input button { background: linear-gradient(135deg, var(--gold), var(--gold-light)); border: none; color: #0a0e17; font-weight: 700; border-radius: 10px; padding: 0 18px; cursor: pointer; }
.chat-typing { color: var(--gold-light); font-size: 13px; padding: 4px 14px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 40px 0 30px; margin-top: 60px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold-light); font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid li { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--gold-light); }
.copyright { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== Page hero (interior) ===== */
.page-hero { padding: 70px 24px 40px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.page-hero h1 span { color: var(--gold-light); }
.page-hero p { color: var(--text-dim); font-size: 17px; max-width: 700px; margin: 0 auto; }

/* ===== Util ===== */
.center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.muted { color: var(--text-dim); }
.hidden { display: none !important; }
