/* ═══════════════════════════════════════════════════════════════════
   PSEO Engine — Professional Theme CSS
   Para negocios de servicios locales (electricistas, plomeros, abogados…)
   Organización: Variables → Reset → Layout → Header → Hero → Stats →
   Trust → Proceso → Cards → Forms → Artículos → Sidebar → ToC →
   Testimonials → FAQ → Footer → Floating CTA → Animaciones → Responsive
═══════════════════════════════════════════════════════════════════ */

/* ─── 1. VARIABLES ──────────────────────────────────────────────── */
:root {
    /* Paleta principal */
    --primary:        #1a4fdb;
    --primary-dark:   #1239a8;
    --primary-light:  #3b6ef5;
    --primary-xlight: #e8effe;
    --accent:         #f97316;
    --accent-dark:    #ea580c;
    --accent-light:   #fed7aa;
    --success:        #059669;
    --success-light:  #d1fae5;
    --danger:         #dc2626;
    --danger-light:   #fee2e2;
    --warning:        #d97706;
    --warning-light:  #fef3c7;

    /* Neutros */
    --text:           #111827;
    --text-secondary: #374151;
    --text-light:     #6b7280;
    --text-xlight:    #9ca3af;
    --bg:             #ffffff;
    --bg-soft:        #f8fafc;
    --bg-light:       #f1f5f9;
    --bg-dark:        #0f172a;
    --bg-darker:      #080e1a;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;

    /* Tipografía */
    --font-base:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size:  16px;
    --line-height: 1.65;

    /* Espaciado */
    --section-y:  80px;
    --section-sm: 56px;
    --gap:        24px;
    --gap-sm:     16px;
    --gap-lg:     40px;

    /* Bordes */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Sombras */
    --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm:  0 2px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
    --shadow:     0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
    --shadow-lg:  0 16px 40px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.07);
    --shadow-xl:  0 28px 60px rgba(0,0,0,0.15), 0 10px 24px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 0 3px rgba(26,79,219,0.18);

    /* Transiciones */
    --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.14s ease;

    /* Header height (para offset de anclas) */
    --header-h: 68px;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-base);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: var(--transition-fast); }

/* ─── 3. LAYOUT ─────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ─── 4. HEADER ─────────────────────────────────────────────────── */
/* Checkbox hack para hamburger menu en CSS puro */
#nav-toggle { display: none; }

.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--header-h);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    gap: 16px;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo:hover { color: var(--primary-dark); }

/* Navegación escritorio */
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    position: relative;
}

.site-nav a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.22s ease;
}

.site-nav a:not(.btn-cta):hover { color: var(--primary); }
.site-nav a:not(.btn-cta):hover::after { width: 100%; }

/* Hamburger label — solo visible en móvil */
.hamburger-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
    flex-shrink: 0;
}

.hamburger-label:hover { background: var(--bg-light); }

.hamburger-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Animación hamburger a X */
#nav-toggle:checked + .site-header .hamburger-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked + .site-header .hamburger-label span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#nav-toggle:checked + .site-header .hamburger-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil abierto */
#nav-toggle:checked + .site-header .site-nav {
    display: flex;
}

/* ─── 5. BOTONES ─────────────────────────────────────────────────── */
.btn-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
    padding: 11px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(249,115,22,0.35);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249,115,22,0.45);
    background: linear-gradient(135deg, #fb923c 0%, var(--accent) 100%);
}

.btn-cta:active { transform: translateY(0); }

.btn-cta.btn-hero {
    padding: 17px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}

.btn-cta.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(26,79,219,0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,79,219,0.4);
}

.btn-secondary {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 11px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ─── 6. HERO ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 50%, #2563eb 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

/* Decoración de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 5px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: rgba(249,115,22,0.7);
    text-underline-offset: 5px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    opacity: 0.88;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Trust badges debajo del CTA */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}

.trust-badge .badge-icon {
    width: 20px;
    height: 20px;
    background: rgba(5,150,105,0.25);
    border: 1.5px solid rgba(52,211,153,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ─── 7. SOCIAL PROOF BAR ────────────────────────────────────────── */
.social-proof-bar {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-proof-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.spb-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.spb-item .spb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74,222,128,0.6);
}

/* ─── 8. STATS SECTION ───────────────────────────────────────────── */
.stats-section {
    padding: 48px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap);
    text-align: center;
}

.stat-item {
    padding: 20px 16px;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.35;
}

/* ─── 9. VALUE PROPS ─────────────────────────────────────────────── */
.value-props {
    padding: var(--section-y) 0;
    background: var(--bg);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
}

.prop-card {
    background: var(--bg);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-xlight);
}

.prop-card:hover::before { transform: scaleX(1); }

.prop-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.prop-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.prop-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ─── 10. PROCESO / PASOS ────────────────────────────────────────── */
.proceso-section {
    padding: var(--section-y) 0;
    background: var(--primary-xlight);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    position: relative;
}

.step-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(26,79,219,0.35);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* ─── 11. LEAD FORM ──────────────────────────────────────────────── */
.lead-section {
    padding: var(--section-y) 0;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #1a2d50 100%);
    position: relative;
    overflow: hidden;
}

.lead-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.lead-section > .container { position: relative; z-index: 1; }

.lead-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lead-form-container h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.3;
}

.lead-form-description {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ─── 12. FORMULARIOS (UX mejorada) ──────────────────────────────── */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.4;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: #fff;
}

.form-group input.is-error,
.form-group select.is-error,
.form-group textarea.is-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.form-group input.is-success,
.form-group select.is-success,
.form-group textarea.is-success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

.field-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-xlight);
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: none;
    padding: 15px 24px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249,115,22,0.45);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-disclaimer {
    font-size: 0.74rem;
    color: var(--text-xlight);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.form-success {
    text-align: center;
    padding: 24px 16px;
    animation: fadeInUp 0.4s ease;
}

.form-success .success-icon { font-size: 3rem; margin-bottom: 12px; }

.form-success h4 {
    font-size: 1.25rem;
    color: var(--success);
    font-weight: 800;
    margin-bottom: 8px;
}

.form-success p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.form-success a { color: var(--primary); font-weight: 600; }

/* ─── 13. QUOTE FORM ─────────────────────────────────────────────── */
.quote-section {
    padding: var(--section-y) 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.quote-section-inner { max-width: 540px; margin: 0 auto; }

.quote-form-container {
    background: linear-gradient(160deg, #1e293b 0%, #0f2540 100%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    color: #fff;
    position: sticky;
    top: 80px;
    margin-bottom: 24px;
}

.quote-form-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.quote-form-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 26px;
    line-height: 1.5;
}

.quote-form-container .form-group label {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #64748b;
    font-size: 0.73rem;
}

.quote-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: #fff;
    transition: var(--transition);
    font-family: inherit;
}

.quote-input::placeholder { color: #475569; }

.quote-input:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(255,255,255,0.11);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}

.btn-quote-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: none;
    padding: 15px 24px;
    border-radius: var(--radius);
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
    font-family: inherit;
}

.btn-quote-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.5);
}

.btn-quote-submit:active:not(:disabled) { transform: translateY(0); }
.btn-quote-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.quote-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: quote-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes quote-spin { to { transform: rotate(360deg); } }

.quote-disclaimer {
    font-size: 0.71rem;
    color: #475569;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.quote-success {
    text-align: center;
    padding: 10px 0;
}

.quote-success-icon { font-size: 2.8rem; margin-bottom: 12px; }

.quote-success h4 {
    font-size: 1.15rem;
    color: #4ade80;
    font-weight: 800;
    margin-bottom: 8px;
}

.quote-success p { color: #94a3b8; font-size: 0.9rem; line-height: 1.5; }

.quote-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius);
    padding: 11px 14px;
    margin-top: 12px;
}

.quote-error p { color: #fca5a5; font-size: 0.875rem; margin: 0; }

/* ─── 14. ARTÍCULOS / CARDS ──────────────────────────────────────── */
.articles-preview {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-card:hover::after { transform: scaleX(1); }

.article-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.45;
    font-weight: 700;
}

.article-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-card h3 a:hover { color: var(--primary); }

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}

.article-card-meta {
    font-size: 0.8rem;
    color: var(--text-xlight);
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: auto;
}

.articles-cta { text-align: center; margin-top: 36px; }

/* ─── 15. ARTÍCULO SINGLE (PAGE) ──────────────────────────────────── */
.article-page { padding: 40px 0 60px; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-xlight);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb-sep {
    color: var(--border);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cabecera artículo */
.article-header { margin-bottom: 36px; }

.article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.tag {
    background: var(--primary-xlight);
    color: var(--primary);
    border: 1px solid rgba(26,79,219,0.18);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.79rem;
    font-weight: 600;
}

.article-title {
    font-size: clamp(1.55rem, 3.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.article-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

/* Layout two-column */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 48px;
    margin-top: 32px;
    align-items: start;
}

/* Contenido artículo */
.article-content { min-width: 0; }

.article-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 36px 0 14px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.article-content h3 {
    font-size: 1.22rem;
    font-weight: 700;
    margin: 26px 0 10px;
    color: var(--primary-dark);
}

.article-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--text);
}

.article-content p { margin-bottom: 18px; line-height: 1.75; }

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-content li { margin-bottom: 8px; line-height: 1.65; }

.article-content strong { color: var(--primary-dark); font-weight: 700; }

.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-dark); }

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--primary-xlight);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.article-content pre {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.article-content pre code {
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 0;
}

/* ─── 16. SIDEBAR & TOC ──────────────────────────────────────────── */
.article-sidebar { min-width: 0; }

/* Tabla de contenidos */
.toc-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
}

.toc-box h4 {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-xlight);
    margin-bottom: 14px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li { margin-bottom: 2px; }

.toc-list a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: var(--transition-fast);
    line-height: 1.4;
}

.toc-list a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.toc-list .toc-h3 { padding-left: 22px; font-size: 0.84rem; }

/* Sidebar lead magnet */
.sidebar-lead-magnet {
    background: linear-gradient(160deg, var(--bg-dark) 0%, #1a2d50 100%);
    color: #fff;
    padding: 28px 24px;
    border-radius: var(--radius-md);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.sidebar-lead-magnet h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-lead-magnet p {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Article CTA section */
.article-cta-section {
    margin-top: 56px;
    padding: 48px 40px;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #1a2d50 100%);
    border-radius: var(--radius-xl);
}

.article-cta-section .lead-form-container {
    margin: 0 auto;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

/* ─── 17. TESTIMONIALES ──────────────────────────────────────────── */
.testimonials {
    padding: var(--section-y) 0;
    background: var(--bg-soft);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}

.testimonial-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-xlight);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-xlight);
}

/* ─── 18. FAQ ─────────────────────────────────────────────────────── */
.faq-section {
    padding: var(--section-y) 0;
    background: var(--bg);
}

.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--primary-xlight); }

.faq-item summary {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text);
    background: var(--bg);
    transition: background 0.15s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: var(--bg-soft); }

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 400;
    transition: background 0.15s;
}

.faq-item summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 300;
    transition: background 0.15s, transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
    background: var(--primary-xlight);
    transform: rotate(0deg);
}

.faq-item[open] summary { color: var(--primary); }

.faq-item p {
    padding: 4px 22px 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.96rem;
    background: var(--bg);
}

/* ─── 19. FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
}

.footer-brand .site-logo {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.6;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.45;
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    max-width: 600px;
    margin: 0 auto !important;
    opacity: 0.35 !important;
    line-height: 1.5;
}

/* ─── 20. FLOATING CTA BAR (solo móvil) ──────────────────────────── */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
}

.mobile-cta-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-cta-call,
.mobile-cta-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.mobile-cta-call {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(26,79,219,0.4);
}

.mobile-cta-call:hover { background: var(--primary-dark); }

.mobile-cta-wa {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(37,211,102,0.4);
}

.mobile-cta-wa:hover { background: #1da851; }

/* Compensar el floating bar en el body cuando está visible */
@media (max-width: 767px) {
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 76px; }
}

/* ─── 21. CONTENT SECTION ────────────────────────────────────────── */
.content-section {
    padding: var(--section-y) 0;
}

.content-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.content-section p { color: var(--text-light); margin-bottom: 16px; line-height: 1.7; }

/* ─── 22. ANIMACIONES CSS PURO ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

/* Animación de entrada al llegar al viewport via CSS scroll */
.animate-on-scroll {
    animation: fadeInUp 0.55s ease both;
}

.hero-inner        { animation: fadeInUp 0.6s ease both; }
.trust-badges      { animation: fadeInUp 0.6s 0.15s ease both; }
.stats-grid .stat-item:nth-child(1) { animation: fadeInUp 0.5s 0.05s ease both; }
.stats-grid .stat-item:nth-child(2) { animation: fadeInUp 0.5s 0.12s ease both; }
.stats-grid .stat-item:nth-child(3) { animation: fadeInUp 0.5s 0.19s ease both; }
.stats-grid .stat-item:nth-child(4) { animation: fadeInUp 0.5s 0.26s ease both; }

/* ─── 23. RESPONSIVE ─────────────────────────────────────────────── */

/* ── Tablet (≤1024px) ─────── */
@media (max-width: 1024px) {
    :root { --section-y: 68px; }

    .article-layout { grid-template-columns: 1fr 260px; gap: 32px; }
    .quote-form-container { padding: 32px 28px; }
}

/* ── Tablet pequeña / móvil grande (≤768px) ─── */
@media (max-width: 768px) {
    :root { --section-y: 56px; }

    /* Mostrar hamburger */
    .hamburger-label { display: flex; }

    /* Menú colapsado por defecto en móvil */
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 4px;
        z-index: 499;
    }

    .site-header { position: sticky; overflow: visible; }

    .site-nav a {
        padding: 12px 14px;
        border-radius: var(--radius);
        font-size: 1rem;
    }

    .site-nav a:not(.btn-cta):hover { background: var(--bg-soft); }
    .site-nav a:not(.btn-cta)::after { display: none; }
    .site-nav .btn-cta { margin-top: 8px; justify-content: center; }

    /* Hero */
    .hero { padding: 72px 0 56px; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta-group .btn-hero { width: 100%; max-width: 340px; justify-content: center; }
    .trust-badges { gap: 14px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Social proof bar */
    .social-proof-bar .container { gap: 16px; }

    /* Article layout */
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
    .quote-form-container { position: static; }
    .toc-box { display: none; } /* ToC oculto en móvil (muy largo) */

    /* Lead form */
    .lead-form-container { padding: 32px 24px; }

    /* Article CTA */
    .article-cta-section { padding: 32px 24px; border-radius: var(--radius-lg); }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ── Móvil pequeño (≤480px) ─── */
@media (max-width: 480px) {
    :root { --section-y: 48px; --gap: 16px; }

    .container { padding: 0 16px; }

    .hero { padding: 60px 0 44px; }
    .hero-eyebrow { font-size: 0.75rem; }

    .trust-badges { flex-direction: column; gap: 10px; align-items: flex-start; }
    .trust-badge { font-size: 0.82rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-number { font-size: 2rem; }

    .props-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .lead-form-container { padding: 28px 18px; }

    .prop-card { padding: 24px 20px; }

    .article-title { font-size: 1.5rem; }
    .breadcrumb-current { max-width: 180px; }

    .mobile-cta-call span:not(.cta-icon),
    .mobile-cta-wa span:not(.cta-icon) { display: none; }
    .mobile-cta-call,
    .mobile-cta-wa { font-size: 0.82rem; }
}

/* ─── LEAD FORM MEJORADO ─────────────────── */
.lead-form-pdf-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: white;
}
.pdf-icon { font-size: 2.5rem; flex-shrink: 0; }
.pdf-badge {
    display: inline-block;
    background: #fbbf24;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.pdf-info { display: flex; flex-direction: column; }
.pdf-info strong { font-size: 0.95rem; line-height: 1.3; color: white; }

.lead-form-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.lead-form-benefits li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.lead-form-benefits li:last-child { border-bottom: none; }
