/* ============================================================
   Deranet · global.css — Paleta azul + fondo crema
   ============================================================ */

:root {
    --bg:       #f5f4f1;
    --surface:  #ffffff;
    --surface2: #efede8;
    --border:   rgba(0,0,0,0.08);
    --border2:  rgba(0,0,0,0.14);
    --text:     #181714;
    --muted:    #6b6a65;
    --hint:     #9e9d97;

    /* Azul corporativo Deranet */
    --accent:        #1a56db;
    --accent-d:      #1347bf;
    --accent-bg:     #eff6ff;
    --accent-border: rgba(26,86,219,0.2);
    --accent-light:  #dbeafe;

    --dark:     #181714;
    --dark-d:   #2e2c28;

    --green:    #0F6E56;
    --green-bg: #E1F5EE;
    --amber:    #1a56db;
    --amber-bg: #eff6ff;
    --red:      #A32D2D;
    --red-bg:   #FCEBEB;

    --font:   'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-h: 'Nunito', -apple-system, sans-serif;

    --radius:    12px;
    --radius-sm: 7px;
    --radius-lg: 16px;
    --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    border: none; cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap; text-decoration: none; line-height: 1.3;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(26,86,219,.3); }
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 4px 14px rgba(26,86,219,.35); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-d); transform: translateY(-1px); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245,244,241,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display:flex; align-items:center; height:72px; gap:32px; }
.logo { display:flex; align-items:center; gap:10px; flex-shrink:0; text-decoration:none; }
.logo-name {
    font-family: var(--font-h);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}
.logo-name span { color: var(--accent); }

.main-nav { display:flex; gap:4px; margin-left:auto; }
.main-nav a {
    font-size: 14px; font-weight: 500; color: var(--muted);
    padding: 6px 12px; border-radius: var(--radius-sm); transition: all .15s;
    text-decoration: none;
}
.main-nav a:hover { color: var(--text); background: var(--surface2); }
.header-cta { margin-left: 8px; }
.header-cta .btn { padding: 7px 16px; font-size: 13px; }

/* ── Menú móvil ──────────────────────────────────────────────── */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 6px; margin-left: auto;
    border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--surface2); }
.nav-toggle span { display:block; width:20px; height:2px; background:var(--text); border-radius:2px; }
.mobile-nav {
    display:flex; flex-direction:column;
    padding:12px 16px 16px; gap:2px;
    border-top:1px solid var(--border);
    background:var(--surface);
}
.mobile-nav.is-hidden { display:none; }
.mobile-nav a { padding:10px 12px; font-size:15px; font-weight:500; color:var(--muted); border-radius:var(--radius-sm); }
.mobile-nav a:hover { color:var(--text); background:var(--surface2); }
.mobile-nav .btn { margin-top:8px; justify-content:center; width:100%; }
.mobile-nav .btn-primary { color:#fff; }
.mobile-nav-section { font-size:10px; font-family:var(--font-h); text-transform:uppercase; letter-spacing:1.5px; color:var(--hint); font-weight:700; padding:12px 12px 4px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background:var(--surface); border-top:1px solid var(--border); padding:52px 0 28px; margin-top:80px; }
.footer-grid { display:grid; grid-template-columns:1fr auto; gap:48px; margin-bottom:36px; }
.footer-tagline { font-size:13px; color:var(--hint); max-width:220px; line-height:1.55; margin-top:10px; }
.footer-links { display:flex; gap:48px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col h4 { font-size:11px; font-family:var(--font-h); text-transform:uppercase; letter-spacing:1px; color:var(--hint); margin-bottom:4px; font-weight:600; }
.footer-col a { font-size:13px; color:var(--muted); transition:color .15s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:20px; border-top:1px solid var(--border); font-size:12px; color:var(--hint); }

/* ── Secciones ───────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-label { display:inline-block; font-size:11px; font-family:var(--font-h); letter-spacing:2px; text-transform:uppercase; color:var(--accent); margin-bottom:12px; font-weight:700; }
.section-title { font-family:var(--font-h); font-size:clamp(26px,3.5vw,40px); font-weight:800; line-height:1.15; color:var(--text); letter-spacing:-.5px; }
.section-subtitle { font-size:17px; color:var(--muted); margin-top:14px; max-width:540px; line-height:1.6; }
.text-center { text-align:center; }
.text-center .section-subtitle { margin-left:auto; margin-right:auto; }

/* ── Features ────────────────────────────────────────────────── */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:24px 22px;
    transition:border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
    border-color:var(--accent);
    box-shadow:0 4px 16px rgba(26,86,219,.1);
    transform:translateY(-2px);
}
.feature-icon { font-size:26px; margin-bottom:14px; line-height:1; }
.feature-card h3 { font-family:var(--font-h); font-size:16px; font-weight:700; color:var(--text); margin-bottom:7px; }
.feature-card p { font-size:14px; color:var(--muted); line-height:1.6; }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.pricing-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:32px 28px;
    display:flex; flex-direction:column; gap:20px;
    transition:border-color .2s, box-shadow .2s;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(26,86,219,.12);
}
.pricing-card-name { font-family:var(--font-h); font-size:18px; font-weight:700; color:var(--text); }
.pricing-card-desc { font-size:14px; color:var(--muted); }
.pricing-price { display:flex; align-items:baseline; gap:4px; }
.pricing-amount { font-family:var(--font-h); font-size:40px; font-weight:900; color:var(--text); letter-spacing:-2px; }
.pricing-period { font-size:14px; color:var(--hint); }
.pricing-features { display:flex; flex-direction:column; gap:8px; flex:1; }
.pricing-feature { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:var(--muted); }
.pricing-feature::before { content:'✓'; color:var(--accent); font-weight:700; flex-shrink:0; }

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-box {
    background:var(--surface); border:1px solid var(--border2);
    border-left:4px solid var(--accent);
    border-radius:var(--radius-lg); padding:40px 48px;
    display:flex; align-items:center; justify-content:space-between; gap:40px;
}
.cta-left { flex:1; }
.cta-right { flex-shrink:0; text-align:center; }

/* ── Trust bar ───────────────────────────────────────────────── */
.block-trust {
    padding:56px 0; background:var(--surface);
    border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.trust-grid { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.trust-item { flex:1; min-width:180px; text-align:center; padding:24px 32px; }
.trust-divider { width:1px; height:80px; background:var(--border2); flex-shrink:0; }
.trust-number { display:flex; align-items:baseline; justify-content:center; gap:3px; margin-bottom:10px; line-height:1; }
.trust-count { font-family:var(--font-h); font-size:clamp(40px,5vw,60px); font-weight:900; color:var(--text); letter-spacing:-2px; }
.trust-unit { font-family:var(--font-h); font-size:clamp(24px,3vw,36px); font-weight:800; color:var(--accent); }
.trust-label { font-family:var(--font-h); font-size:15px; font-weight:700; color:var(--text); margin-bottom:6px; }
.trust-desc { font-size:13px; color:var(--hint); line-height:1.5; max-width:180px; margin:0 auto; }

/* ── Legal ───────────────────────────────────────────────────── */
.legal-wrap { display:grid; grid-template-columns:1fr 280px; gap:48px; align-items:start; }
.legal-body { max-width:100%; font-size:15px; line-height:1.8; color:var(--muted); }
.legal-body h2 { font-family:var(--font-h); font-size:18px; font-weight:700; color:var(--text); margin:36px 0 12px; padding-top:24px; border-top:1px solid var(--border); }
.legal-body h2:first-child { margin-top:0; border-top:none; padding-top:0; }
.legal-body p { margin-bottom:14px; }
.legal-body strong { color:var(--text); font-weight:600; }
.legal-body a { color:var(--accent); text-decoration:underline; }
.legal-body ul { padding-left:0; margin:12px 0 16px; list-style:none; display:flex; flex-direction:column; gap:8px; }
.legal-body ul li { font-size:15px; color:var(--muted); line-height:1.65; padding-left:20px; position:relative; }
.legal-body ul li::before { content:'•'; position:absolute; left:4px; color:var(--accent); font-weight:700; }
.legal-table { width:100%; border-collapse:collapse; margin-bottom:20px; font-size:14px; }
.legal-table th, .legal-table td { padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); vertical-align:top; }
.legal-table th { background:var(--surface2); font-family:var(--font-h); font-size:12px; font-weight:700; color:var(--hint); text-transform:uppercase; letter-spacing:.5px; }
.legal-table td:first-child { color:var(--text); font-weight:500; }
.legal-sidebar { position:sticky; top:80px; display:flex; flex-direction:column; gap:16px; }
.legal-nav-card, .legal-contact-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.legal-nav-card h4, .legal-contact-card h4 { font-family:var(--font-h); font-size:13px; font-weight:700; color:var(--text); margin-bottom:12px; text-transform:uppercase; letter-spacing:.5px; }
.legal-nav-card nav { display:flex; flex-direction:column; gap:4px; }
.legal-nav-card nav a { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:var(--radius-sm); font-size:14px; color:var(--muted); text-decoration:none; transition:all .15s; }
.legal-nav-card nav a:hover { background:var(--surface2); color:var(--text); }
.legal-nav-card nav a.active { background:var(--accent-bg); color:var(--accent); font-weight:600; }

/* ── Formularios ─────────────────────────────────────────────── */
.form-error-msg { background:var(--red-bg); border:1px solid rgba(163,45,45,.2); color:var(--red); padding:10px 14px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:16px; }
.form-success { text-align:center; padding:48px 20px; }
.form-success-icon { width:56px; height:56px; background:var(--green-bg); color:var(--green); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; margin:0 auto 16px; }
.form-success h3 { font-family:var(--font-h); font-size:22px; margin-bottom:10px; }
.req { color:var(--accent); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .main-nav, .header-cta { display:none; }
    .nav-toggle { display:flex; }
    .footer-grid { grid-template-columns:1fr; gap:28px; }
    .footer-links { flex-wrap:wrap; gap:28px; }
    .footer-bottom { flex-direction:column; gap:6px; text-align:center; }
    .section { padding:52px 0; }
    .features-grid { grid-template-columns:1fr !important; }
    .trust-divider { display:none; }
    .trust-item { flex:0 0 50%; padding:20px 16px; }
    .legal-wrap { grid-template-columns:1fr; }
    .legal-sidebar { position:static; }
    .cta-box { flex-direction:column; padding:32px 24px; border-left:none; border-top:4px solid var(--accent); }
    .pricing-grid { grid-template-columns:1fr; }
}
