/* Estilos compartidos por todas las páginas (rediseño oct 2026, basado en el PDF
   "Presentacion Cuadrado & Asoc."): colores, encabezado, pie y botones. La home suma home.css; el resto
   de las páginas usa Tailwind y abajo se adaptan sus clases viejas (gradient-hero, gradient-text,
   btn-gradient) a esta paleta. Colores medidos en el PDF: azul marino, tarjetas gris claro e íconos
   cuadrados en azul, violeta, índigo, verde azulado y celeste. Títulos en Poppins, como el PDF. */

:root {
    --ink: #0a2138;          /* títulos y fondo oscuro (azul marino del PDF) */
    --text: #3b4659;
    --muted: #64748b;
    --steel: #2c5578;        /* números grandes y detalles del PDF */
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --violet: #6d28d9;
    --indigo: #4f46e5;
    --teal: #0d9488;
    --cyan: #0ea5e9;
    --stone: #eef1f4;        /* fondo de tarjetas del PDF */
    --paper: #f8f9fb;        /* fondo claro de las láminas */
    --line: #dde3ea;
    --night: #0a2138;
    --night-2: #0e2a47;      /* tarjetas sobre fondo oscuro */
    --display: 'Poppins', system-ui, -apple-system, sans-serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 10px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(36, 72, 240, .7); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* ---------- Encabezado ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: #fff; transition: color .3s; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 18px; color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: #fff; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.site-header.is-scrolled, .site-header.is-open {
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 35, 66, .5);
}
.site-header.is-scrolled .brand span, .site-header.is-open .brand span { color: var(--ink); }
.site-header.is-scrolled .nav a:not(.btn), .site-header.is-open .nav a:not(.btn) { color: var(--text); }
.site-header.is-scrolled .nav a:not(.btn):hover { color: var(--blue); }
.site-header.is-scrolled .menu-btn, .site-header.is-open .menu-btn { color: var(--ink); }
/* Páginas sin portada oscura (legales): encabezado blanco siempre */
.site-header.is-solid {
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.site-header.is-solid .brand span { color: var(--ink); }
.site-header.is-solid .nav a:not(.btn) { color: var(--text); }
.site-header.is-solid .nav a:not(.btn):hover { color: var(--blue); }
.site-header.is-solid .menu-btn { color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer { background: #060a1f; color: rgba(255, 255, 255, .55); padding: 46px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .brand span { font-size: 1.15rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Páginas con Tailwind (contacto, blog, legales) ---------- */
body.site-page { font-family: var(--sans); color: var(--text); background: #fff; }
.site-page :is(h1, h2, h3):not(.uppercase) { font-family: var(--display); letter-spacing: -0.01em; }
.site-page a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-page .text-gray-900 { color: var(--ink); }
.site-page .bg-gray-50 { background-color: var(--paper); }
.gradient-hero, .page-hero {
    position: relative;
    background: radial-gradient(900px 420px at 85% 0%, rgba(37, 99, 235, .22), transparent 60%),
                linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.gradient-text {
    background: linear-gradient(90deg, var(--blue), var(--violet));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gradient-primary, .gradient-accent { background: linear-gradient(135deg, var(--blue), var(--indigo)); }
/* Tarjetas del blog: gris claro con ícono en cuadrado de color, como las del PDF */
.blog-thumb {
    display: flex; align-items: center; gap: 16px; height: 8.5rem; padding: 0 24px;
    background: var(--stone); border-bottom: 1px solid var(--line);
}
.blog-sq {
    flex: none; width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center;
    color: #fff; font-size: 1.4rem; transition: transform .3s;
}
.blog-card:hover .blog-sq { transform: scale(1.08); }
.blog-tag { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.blog-sq.c-blue { background: var(--blue); }
.blog-sq.c-violet { background: var(--violet); }
.blog-sq.c-indigo { background: var(--indigo); }
.blog-sq.c-teal { background: var(--teal); }
.btn-gradient { background: var(--blue); }
.btn-gradient:hover { background: var(--blue-dark); box-shadow: 0 10px 25px rgba(36, 72, 240, .3); }

@media (max-width: 980px) {
    .nav { display: none; }
    .menu-btn { display: block; }
    .site-header.is-open .nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: absolute; top: 76px; left: 0; right: 0; padding: 12px 20px 22px;
        background: #fff; border-bottom: 1px solid var(--line);
    }
    .site-header.is-open .nav a:not(.btn) { padding: 10px 0; }
    .site-header.is-open .nav .btn { margin-top: 8px; }
}
