/* ============================================================
   Informática Activa · global.css — Paleta roja profesional
   ============================================================ */

   :root {
    --bg:       #f5f5f5;
    --surface:  #ffffff;
    --surface2: #f0f0f0;
    --border:   rgba(0,0,0,0.08);
    --border2:  rgba(0,0,0,0.14);
    --text:     #1a1a1a;
    --muted:    #555555;
    --hint:     #999999;

    /* Rojo corporativo */
    --accent:        #d42b2b;
    --accent-d:      #b52222;
    --accent-bg:     #fdf2f2;
    --accent-border: rgba(212,43,43,0.2);
    --accent-light:  #fecaca;

    --dark:     #1a1a1a;
    --dark-d:   #2e2e2e;
    --green:    #0F6E56;
    --green-bg: #E1F5EE;

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

    --radius:    10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --container: 1140px;
}

*, *::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: 12px 24px; 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; }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(212,43,43,.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-red { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline-red:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.site-header .container { display:flex; align-items:center; height:70px; gap:32px; }
.logo { display:flex; align-items:center; gap:10px; flex-shrink:0; text-decoration:none; }
.logo img { height:44px; width:auto; }

.main-nav { display:flex; gap:6px; margin-left:auto; }
.main-nav a {
    font-size: 14px; font-weight: 500; color: var(--muted);
    padding: 6px 14px; border-radius: var(--radius-sm);
    transition: all .15s; text-decoration: none; position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.header-cta { margin-left: 8px; }

/* ── 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 span { display:block; width:22px; 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:#fff;
}
.mobile-nav.is-hidden { display:none; }
.mobile-nav a { padding:11px 12px; font-size:15px; font-weight:500; color:var(--muted); border-radius:var(--radius-sm); }
.mobile-nav a:hover { color:var(--accent); }
.mobile-nav .btn { margin-top:8px; justify-content:center; width:100%; }
.mobile-nav .btn-primary { color:#fff !important; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background:#1a1a1a; color:#e0e0e0; padding:52px 0 28px; margin-top:0; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-brand .logo-text { font-size:18px; font-weight:700; color:#fff; margin-bottom:10px; }
.footer-brand .logo-text span { color:var(--accent); }
.footer-tagline { font-size:13px; color:#999; line-height:1.6; max-width:220px; margin-top:8px; }
.footer-col h4 { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#999; margin-bottom:14px; }
.footer-col a { display:block; font-size:13px; color:#ccc; margin-bottom:8px; transition:color .15s; }
.footer-col a:hover { color:var(--accent); }
.footer-col p { font-size:13px; color:#ccc; line-height:1.6; margin-bottom:6px; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); font-size:12px; color:#666; }
.footer-social { display:flex; gap:12px; }
.footer-social a { width:32px; height:32px; background:rgba(255,255,255,.08); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; color:#ccc; transition:all .15s; }
.footer-social a:hover { background:var(--accent); color:#fff; }

/* ── Secciones ───────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-white { background: #fff; }
.section-gray  { background: var(--bg); }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-label::before {
    content: ''; display: block; width: 3px; height: 16px;
    background: var(--accent); border-radius: 2px;
}
.section-title {
    font-size: clamp(28px,4vw,44px); font-weight: 800;
    line-height: 1.15; color: var(--text); letter-spacing: -.5px;
}
.section-title span { color: var(--accent); }
.section-subtitle { font-size: 17px; color: var(--muted); margin-top: 14px; line-height: 1.65; max-width: 580px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Cards de servicio ───────────────────────────────────────── */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    border-color: var(--accent);
}
.service-icon {
    width: 56px; height: 56px;
    background: var(--accent-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
    color: var(--accent);
}
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.service-link {
    font-size: 13px; font-weight: 600; color: var(--accent);
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap .15s;
}
.service-link:hover { gap: 8px; }

/* ── Checks ──────────────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.check-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Trust / stats ───────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item { padding: 32px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ── CTA banner ──────────────────────────────────────────────── */
.cta-banner {
    background: var(--accent);
    padding: 48px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    color: #fff;
}
.cta-banner h2 { font-size: clamp(22px,3vw,32px); font-weight: 800; margin-bottom: 8px; }
.cta-banner p { font-size: 15px; opacity: .85; }
.cta-banner .btn-white { background:#fff; color:var(--accent); font-weight:700; }
.cta-banner .btn-white:hover { background:#f5f5f5; }

/* ── Formularios ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-group input, .form-group textarea, .form-group select {
    width:100%; padding:11px 14px;
    background:#f8f8f8; border:1.5px solid var(--border2);
    border-radius:var(--radius-sm); color:var(--text);
    font-size:14px; font-family:var(--font);
    outline:none; transition:border-color .15s, background .15s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
    .stat-item   { border-right: none; border-bottom: 1px solid var(--border); }
    .cta-banner  { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}