/* ==========================================================================
   FMC BUSINESS GROUP — Sistema visual advisory corporate (compartido)
   Lo usan todas las páginas del sitio. Fuentes cargadas en el <head> de cada
   página: Montserrat (títulos) + Inter (lectura).
   ========================================================================== */

:root {
    --bg: #020617;                      /* slate-950 */
    --surface: #0b1120;
    --surface-2: #0f172a;               /* slate-900 */
    --line: #1e293b;                    /* slate-800 */
    --line-soft: rgba(30, 41, 59, 0.6); /* slate-800/60 */
    --line-strong: #334155;             /* slate-700 */
    --text: #cbd5e1;                    /* slate-300 */
    --muted: #94a3b8;                   /* slate-400 */
    --dim: #64748b;                     /* slate-500 */
    --white: #ffffff;
    --accent: #3b82f6;                  /* azul eléctrico */
    --accent-soft: #60a5fa;
    --glow: rgba(59, 130, 246, 0.14);
    --success: #6ee7b7;
    --radius: 16px;
    --radius-sm: 10px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;
    --section-y: clamp(5rem, 11vw, 9rem);
    --nav-h: 76px;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
::selection { background: rgba(59, 130, 246, 0.35); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); font-weight: 600; margin: 0; }
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; }
h3, h4 { letter-spacing: -0.015em; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
    padding: 0.95rem 1.9rem; border-radius: 999px; text-decoration: none; cursor: pointer;
    transition: box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}
.btn-solid { background: var(--white); color: var(--bg); border: 1px solid var(--white); }
.btn-solid:hover { box-shadow: 0 0 36px 0 rgba(59, 130, 246, 0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(148, 163, 184, 0.05); }
.btn i { font-size: 0.8rem; transition: transform 0.25s; }
.btn:hover i { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 520px) {
    .btn-row { flex-direction: column; }
    .btn-row .btn { width: 100%; }
}

/* ---------- NAVEGACIÓN ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; }
.h-10 { height: 2.5rem; }
.w-auto { width: auto; }
/* El logo original es oscuro: se muestra en blanco sobre el fondo oscuro */
.nav-logo img { display: block; object-fit: contain; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links .nav-cta {
    color: var(--white); padding: 0.6rem 1.25rem; border-radius: 999px;
    border: 1px solid var(--line-strong); transition: border-color 0.25s, box-shadow 0.25s;
}
.nav-links .nav-cta:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.25rem; cursor: pointer; padding: 0.5rem; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1.5rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
    .nav-links li:last-child a { border-bottom: 1px solid var(--line-strong); margin-top: 1rem; text-align: center; }
}

/* ---------- FONDO DECORATIVO (glow + retícula) ---------- */
.glow-bg { position: relative; overflow: hidden; }
.glow-bg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%);
}
.glow-bg::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%);
}
.glow-bg > * { position: relative; z-index: 1; }

/* ---------- HERO DE INICIO ---------- */
.hero {
    min-height: min(92vh, 860px); display: flex; align-items: center;
    padding: calc(var(--nav-h) + 4rem) 0 6rem;
    border-bottom: 1px solid var(--line-soft);
}
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.05; margin: 1.75rem 0; }
.text-accent {
    background: linear-gradient(90deg, #93c5fd, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 3rem; }
.hero .btn-row { justify-content: center; }

/* ---------- ENCABEZADO DE PÁGINAS INTERIORES ---------- */
.page-hero {
    padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 1.5rem 0 1.5rem; max-width: 860px; }
.page-hero p { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 680px; margin: 0; }
.page-hero .btn-row { margin-top: 2.5rem; }

/* ---------- SECCIONES ---------- */
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; margin-top: 1.25rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 1.25rem 0 0; }

/* ---------- TARJETA BASE ---------- */
.card {
    position: relative; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid var(--line);
}

/* ---------- PILARES (Inicio) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
    display: flex; flex-direction: column; padding: 2.5rem 2.25rem 2.25rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.pillar::before {
    content: ""; position: absolute; top: -1px; left: 2.25rem; right: 2.25rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.55), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(59, 130, 246, 0.35); }
.pillar:hover::before { opacity: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.pillar-index { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; color: var(--dim); }
.icon-tile {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    color: var(--accent-soft); font-size: 1.05rem;
    background: rgba(59, 130, 246, 0.07); border: 1px solid rgba(96, 165, 250, 0.18);
}
.pillar h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 1rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin: 0 0 2.5rem; }
.pillar-link {
    margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    color: var(--white); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.pillar-link i { color: var(--accent-soft); font-size: 0.8rem; transition: transform 0.25s; }
.pillar-link:hover i { transform: translateX(4px); }

/* ---------- FILAS DE CONTENIDO (Nosotros) ---------- */
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.row-card { display: flex; gap: 2rem; align-items: flex-start; padding: clamp(2rem, 4vw, 3rem); }
.row-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0.9rem; }
.row-card p { color: var(--muted); margin: 0; max-width: 760px; font-size: 1.02rem; }
@media (max-width: 640px) { .row-card { flex-direction: column; gap: 1.25rem; } }

/* ---------- PESTAÑAS (Servicios / Soluciones) ---------- */
.tabs-bar { border-bottom: 1px solid var(--line-soft); background: rgba(2, 6, 23, 0.6); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.5rem 0; }
.tab-btn {
    display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted);
    background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.15rem;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.tab-btn i { font-size: 0.85rem; color: var(--dim); transition: color 0.2s; }
.tab-btn:hover { color: var(--white); border-color: var(--line-strong); }
.tab-btn[aria-selected="true"] { color: var(--white); border-color: rgba(96, 165, 250, 0.45); background: rgba(59, 130, 246, 0.08); }
.tab-btn[aria-selected="true"] i { color: var(--accent-soft); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-head { max-width: 760px; margin-bottom: 3rem; }
.panel-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.panel-head p { color: var(--muted); font-size: 1.05rem; margin: 1.1rem 0 0; }
.meta-line {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.25rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.meta-line i { color: var(--accent-soft); }
.block { margin-top: 3rem; }
.block-title { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }

/* Lista con viñetas de verificación */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; }
@media (max-width: 680px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--text); font-size: 0.97rem; }
.check-list li i { color: var(--accent-soft); font-size: 0.75rem; }

/* Rejilla de detalle */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card { padding: 1.9rem; }
.detail-card h3, .detail-card h4 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.65rem; }
.detail-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Pasos / niveles */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .step-grid, .step-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-grid, .step-grid.cols-3 { grid-template-columns: 1fr; } }
.step-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.step-card .step-num { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--dim); }
.step-card strong { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1rem; }
.step-card span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.belt { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08); }
.belt-white { background: #e2e8f0; }
.belt-yellow { background: #facc15; }
.belt-green { background: #22c55e; }
.belt-black { background: #0b0f17; border: 1px solid var(--line-strong); }

.panel-cta { margin-top: 3rem; }

/* ---------- FRANJA DE LLAMADA A LA ACCIÓN ---------- */
.cta-band { padding: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; max-width: 620px; }
.cta-band p { color: var(--muted); margin: 0.75rem 0 0; max-width: 620px; }

/* ---------- CONTACTO / FORMULARIO ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info .section-head { margin-bottom: 2.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
    display: flex; align-items: center; gap: 0.9rem; width: fit-content;
    color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.98rem;
    padding-bottom: 0.3rem; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--accent); }
.contact-link i { color: var(--accent-soft); width: 1rem; text-align: center; }

.contact-form { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: calc(var(--radius) + 4px); }
.form-group { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.form-group label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body); font-size: 0.95rem; color: var(--white);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 0.9rem 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.form-group select option { background: var(--surface-2); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; margin-top: 0.5rem; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.form-success {
    display: none; text-align: center; padding: 1rem; margin-top: 1rem; border-radius: var(--radius-sm);
    color: var(--success); background: rgba(16, 185, 129, 0.07); border: 1px solid rgba(16, 185, 129, 0.25); font-weight: 500;
}

/* ---------- PÁGINA DE CONFIRMACIÓN ---------- */
.confirm { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: calc(var(--nav-h) + 5rem) 0 6rem; }
.confirm-card { max-width: 560px; margin: 0 auto; padding: clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.confirm-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 2rem; display: grid; place-items: center;
    color: var(--success); font-size: 1.5rem; background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25);
}
.confirm-card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.confirm-card p { color: var(--muted); margin: 0 0 2.25rem; }
.confirm-card .btn-row { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 4rem 0 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 3rem; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin: 0; }
.footer-brand span { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { margin: 0; font-size: 0.82rem; color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
