/* ─────────────────────────────────────────────────────────────────────────────
   English Driving School — Global CSS
   Shared by all public pages. Page-specific styles stay in each PHP file.
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --primary:       #355c7d;
    --primary-light: #5b84a0;
    --primary-dark:  #1e3d57;
    --primary-50:    #eef3f7;
    --bg-white:      #FFFFFF;
    --bg-gray:       #F8FAFC;
    --bg-dark:       #0F172A;
    --text-primary:  #1E293B;
    --text-secondary:#64748B;
    --text-light:    #94A3B8;
    --border:        #E2E8F0;
    --success:       #22C55E;
    --warning:       #F59E0B;
    --error:         #EF4444;
    --shadow-sm:     0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow:        0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl:     0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius:        12px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8FAFC;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Page header (used on all internal pages) ─────────────────────────────── */
.page-header {
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ── CTA section (blog, faq, information, testimonials) ───────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 1.5rem;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Page hero (info / NIF / atestado / exchange / cookies / privacy) ─────── */
/* (NB: la home usa `.hero` con layout en 2 columnas en index.css; aquí
 * usamos `.page-hero` para no pisarlo.) */
.page-hero {
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
    text-align: center;
}
.page-hero .container { max-width: 820px; }
.page-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: .35rem 0 .75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.page-hero__kicker, .hero__kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--primary-100);
    padding: .35rem .9rem;
    border-radius: 99px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.page-hero .lead, .page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* ── Prose article (long-form copy) ───────────────────────────────────────── */
.prose {
    max-width: 760px;
    margin: 2.5rem auto 4rem;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
    border: 1px solid var(--border, #E2E8F0);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 .8rem; color: var(--text-primary); letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .6rem; color: var(--text-primary); }
.prose p  { margin: 0 0 .9rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; padding: 0; }
.prose li { margin-bottom: .35rem; }
.prose a:not([class*="btn"]) { color: var(--primary); }
.prose a:not([class*="btn"]):hover { color: var(--primary-dark); text-decoration: underline; }
.prose strong { font-weight: 700; color: var(--text-primary); }
.prose em { font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--border, #E2E8F0); margin: 1.6rem 0; }
.prose blockquote {
    border-left: 3px solid var(--primary);
    padding: .25rem 0 .25rem 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
}
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; }
.prose th, .prose td { padding: .55rem .75rem; border: 1px solid var(--border, #E2E8F0); text-align: left; }
.prose th { background: var(--primary-50); font-weight: 700; color: var(--text-primary); }

/* ── Buttons (BEM variants used across info pages) ───────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition, all .2s ease);
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(53,92,125,.25); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.btn--ghost:hover { background: var(--primary-50); }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ── Alerts / call-out boxes ─────────────────────────────────────────────── */
.alert {
    padding: .9rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    margin: 1rem 0;
    font-size: .93rem;
    line-height: 1.55;
}
.alert--info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.alert--success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert--warn    { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert--error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* ── Card / generic surface ───────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border, #E2E8F0);
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
    padding: 1.5rem;
}
.card .text-center, .text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

/* ── Section spacer used on cookies/privacy/blog ──────────────────────────── */
.section { padding: 3.5rem 0; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Aliases para landings BEM ─────────────────────────────────────────────── */
:root {
    --color-primary:       #355c7d;
    --color-primary-light: #eef3f7;
    --color-primary-dark:  #1e3d57;
    --color-accent:        #ff8a3d;
    --color-accent-dark:   #e06d1f;
    --color-ink:           #1E293B;
    --color-ink-soft:      #64748B;
    --color-muted:         #94A3B8;
    --color-bg:            #F8FAFC;
}

/* ── Buttons (extra variantes para landings) ──────────────────────────────── */
.btn--lg     { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 12px; }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 4px 14px rgba(255,138,61,.30); }
.btn--accent:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

/* ── Hero CTA / meta ──────────────────────────────────────────────────────── */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1.4rem;
}
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.6rem;
    font-size: .85rem;
    color: var(--text-secondary);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Grid genérico ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* ── Cards (BEM) ──────────────────────────────────────────────────────────── */
.card__icon  { font-size: 2rem; margin-bottom: .65rem; }
.card__title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0 0 .5rem; }
.card__body  { color: var(--text-secondary); font-size: .95rem; line-height: 1.55; margin: 0; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features { padding: 4rem 0; }
.features h2 { margin: 0 auto 1rem; max-width: 760px; }
.features__sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}

/* ── Plans (mini-pricing en landings IMT) ─────────────────────────────────── */
.plans { padding: 4rem 0; background: var(--primary-50); }
.plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (max-width: 800px) {
    .plans__grid { grid-template-columns: 1fr; }
}
.plan {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.plan:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.plan--featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(53,92,125,.18);
}
.plan--featured:hover { transform: scale(1.02) translateY(-2px); }
.plan__name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.plan__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.plan__price small {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: .25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

