/* Estilos compartidos para páginas de caso de estudio.
   Cada case study define su --case-accent (ej: #e74c3c SHIWAN, #d4868c DCA)
   en un <style> inline antes de cargar este archivo, y esta hoja usa esa variable. */

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

:root {
    --black: #0f0f1e;
    --white: #f0ece4;
    --gray-300: #b0b0b8;
    --gray-400: #8a8078;
    --gray-500: #6e6e73;
    --accent: #c8a04e;
    --accent-light: #dbb96a;
    --accent-glow: rgba(200,160,78,.12);
    --case-accent: #c8a04e; /* fallback, cada página lo sobreescribe */
    --case-accent-soft: rgba(200,160,78,.15);
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Clash Display', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-primary); background: var(--black); color: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 clamp(20px, 5vw, 60px); height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(15,15,30,.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,160,78,.08);
}
.nav-back { font-size: .85rem; color: var(--gray-300); }
.nav-back:hover { color: var(--white); }
.logo-xmax {
    display: inline-flex; font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 24px;
    background: linear-gradient(135deg, #dbb96a 0%, #c8a04e 50%, #9a7a2e 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero { padding: 140px 20px 60px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, var(--case-accent) 0%, transparent 60%); }
.case-tag {
    display: inline-block; padding: 6px 16px;
    background: var(--case-accent-soft); color: var(--case-accent);
    border-radius: 100px; font-size: .75rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.hero-sub { color: var(--gray-300); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 640px; margin: 0 auto; }

section { padding: 50px 0; }
.section-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 24px; color: var(--accent); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.metric { background: rgba(255,255,255,.03); border: 1px solid rgba(200,160,78,.15); border-radius: 16px; padding: 24px; text-align: center; }
.metric-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; }
.metric-label { color: var(--gray-400); font-size: .85rem; margin-top: 8px; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }
.before, .after { padding: 24px; border-radius: 16px; }
.before { background: color-mix(in srgb, var(--case-accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--case-accent) 25%, transparent); }
.after { background: rgba(200,160,78,.08); border: 1px solid rgba(200,160,78,.25); }
.before h3 { color: var(--case-accent); margin-bottom: 12px; font-size: 1rem; font-weight: 600; }
.after h3 { color: var(--accent); margin-bottom: 12px; font-size: 1rem; font-weight: 600; }
.before ul, .after ul { list-style: none; padding: 0; }
.before li, .after li { padding: 6px 0; color: var(--gray-300); font-size: .95rem; padding-left: 20px; position: relative; }
.before li::before { content: '\2717'; color: var(--case-accent); position: absolute; left: 0; }
.after li::before { content: '\2713'; color: var(--accent); position: absolute; left: 0; }

.quote { background: rgba(200,160,78,.05); border-left: 4px solid var(--accent); padding: 28px 32px; border-radius: 0 16px 16px 0;
    font-size: 1.2rem; font-style: italic; color: var(--white); margin: 32px 0; line-height: 1.5; }
.quote-author { display: block; margin-top: 16px; font-size: .9rem; font-style: normal; color: var(--gray-400); }

.steps-list { list-style: none; padding: 0; }
.steps-list li { display: flex; gap: 16px; margin-bottom: 18px; }
.step-num { background: var(--accent); color: var(--black); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.step-title { color: var(--accent); font-weight: 600; }
.step-body { color: var(--gray-300); }

.cta-section { text-align: center; padding: 60px 20px; background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 70%); }
.cta-section h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 16px; }
.cta-section .cta-sub { color: var(--gray-300); margin-bottom: 24px; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--accent); color: var(--black); border-radius: 100px; font-weight: 600; transition: transform .2s; }
.cta-btn:hover { transform: translateY(-2px); }

footer { padding: 40px 20px; border-top: 1px solid rgba(200,160,78,.08); text-align: center; color: var(--gray-500); font-size: .85rem; }
footer a { color: var(--accent); }
