/* ============================================
   DINDIN - Complete Stylesheet v2
   Professional Financial Comparator - Spain
   ============================================ */

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

:root {
    --primary: #008A5E;
    --primary-dark: #006D4A;
    --primary-light: #E8F9F0;
    --primary-lighter: #F0FDF7;
    --accent: #0EA5E9;
    --accent-light: #E0F2FE;
    --text: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-warm: #FAFAF9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
.page-content { overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 15px; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1.4; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,138,94,0.25); }
.btn-white { background: white; color: var(--primary-dark); font-weight: 700; }
.btn-white:hover { background: #f0f0f0; color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-header { background: var(--primary); color: white; padding: 10px 20px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-header:hover { background: var(--primary-dark); color: white; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--text-secondary); font-size: 14px; cursor: pointer; text-decoration: underline; font-family: inherit; padding: 8px; display: block; width: 100%; text-align: center; transition: color var(--transition); }
.btn-link:hover { color: var(--text); }

/* --- Text Utilities --- */
.text-green { color: var(--primary) !important; font-weight: 600; }
.highlight { color: var(--primary); }

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; color: var(--text); }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.section-links { text-align: center; margin-top: 32px; font-size: 15px; color: var(--text-secondary); }
.section-links a { font-weight: 500; }

/* ============================================
   HEADER + MEGA MENU
   ============================================ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition); }
.header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-word { display: flex; align-items: baseline; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; position: relative; }
.logo-d { color: #0F172A; }
.logo-g { color: #008A5E; }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: #008A5E; margin-left: 2px; align-self: flex-start; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: all var(--transition); display: flex; align-items: center; gap: 4px; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-arrow { transition: transform var(--transition); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: white; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px; min-width: 220px; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 100; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 8px 14px; color: var(--text); font-size: 14px; border-radius: 6px; transition: all var(--transition); white-space: nowrap; text-decoration: none; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu:not(.mega-menu) { max-height: calc(100vh - 120px); overflow-y: auto; }

/* Mega Menu */
.mega-menu { display: flex; gap: 0; min-width: 760px; padding: 20px; left: 0; transform: translateY(8px); }
.nav-item:hover .mega-menu { transform: translateY(0); }
.mega-col { flex: 1; padding: 0 14px; border-right: 1px solid var(--border); min-width: 0; }
.mega-col:last-child { border-right: none; }
.mega-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; padding: 0 14px; }
.mega-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; padding: 0 14px; }
.mega-col a { font-size: 13px; padding: 6px 14px; }

.dropdown-divider { display: block; height: 1px; background: var(--border); margin: 8px 14px; }
.dropdown-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 4px 14px 4px; }

.mega-cta { display: flex; align-items: center; flex: 0 0 180px; }
.mega-cta-card { background: var(--primary-light); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; }
.mega-cta-card strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--primary-dark); }
.mega-cta-card p { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.4; }
.mega-cta-card .btn { font-size: 13px; padding: 8px 14px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border-light); padding: 12px 0; margin-top: 70px; }
.breadcrumb ol { display: flex; align-items: center; gap: 0; list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 24px; flex-wrap: wrap; }
.breadcrumb li { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--border); }
.breadcrumb li a { color: var(--text-muted); text-decoration: none; }
.breadcrumb li a:hover { color: var(--primary); }
.breadcrumb li.current { color: var(--text-secondary); font-weight: 500; }

/* ============================================
   HERO (Homepage)
   ============================================ */
.hero { padding: 120px 0 80px; background: linear-gradient(170deg, #F0FDF7 0%, #ECFDF5 40%, #F0F9FF 100%); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, white); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: center; }
.hero-badge { display: inline-block; background: white; color: var(--primary-dark); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; box-shadow: var(--shadow-xs); border: 1px solid var(--border-light); }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 16px; color: var(--text); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.65; }
.hero-features { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-feat { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); background: white; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border-light); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hero-feat svg { flex-shrink: 0; }
.hero-trust-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hero-trust-bar svg { flex-shrink: 0; }
.trust-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; }

.hero-visual { position: relative; }

/* Hero Calculator Card */
.hero-calc-card { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 32px; border: 1px solid var(--border-light); }
.hero-calc-card .slider-group { margin-bottom: 24px; }
.hero-calc-card .slider-group:last-of-type { margin-bottom: 20px; }
.hero-calc-summary { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.hero-calc-summary .summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.hero-calc-summary .summary-row span:last-child { font-weight: 700; color: var(--text); }
.hero-calc-card .first-loan-badge { margin-bottom: 16px; }
.hero-calc-card .calc-trust-row { margin-top: 12px; }

/* ============================================
   STATS BAR
   ============================================ */
.stats { padding: 40px 0; background: white; border-bottom: 1px solid var(--border-light); }
.stats-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; flex: 1; min-width: 140px; }
.stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.2; letter-spacing: -0.5px; }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================
   CALCULATOR
   ============================================ */
.calculator { padding: 80px 0; background: var(--bg-alt); }
.calc-card { display: grid; grid-template-columns: 1fr 400px; gap: 40px; background: white; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.slider-group { margin-bottom: 36px; }
.slider-group:last-child { margin-bottom: 0; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.slider-header label { font-size: 15px; font-weight: 600; color: var(--text); }
.slider-value { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, #E5E7EB 50%, #E5E7EB 100%); outline: none; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 4px solid white; box-shadow: 0 2px 8px rgba(0,138,94,0.3); cursor: pointer; transition: transform var(--transition); }
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 4px solid white; box-shadow: 0 2px 8px rgba(0,138,94,0.3); cursor: pointer; }
.slider-range { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

.calc-summary-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border-light); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--text-secondary); }
.summary-total { font-size: 20px; font-weight: 800; color: var(--text); padding-top: 16px; }
.summary-divider { height: 1px; background: var(--border); margin: 8px 0; }
.first-loan-badge { display: flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary-dark); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin: 16px 0; }
.calc-trust-row { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { padding: 80px 0; }
.steps-grid { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.step-card { text-align: center; max-width: 240px; position: relative; padding: 24px 16px; border-radius: var(--radius); transition: all 0.3s; }
.step-card:hover { background: white; box-shadow: var(--shadow-md); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), #009963); color: white; border-radius: 50%; font-size: 15px; font-weight: 700; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,138,94,0.2); }
.step-icon { margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-connector { display: flex; align-items: center; padding-top: 60px; color: var(--primary); opacity: 0.3; }

/* ============================================
   BENEFITS
   ============================================ */
.benefits { padding: 80px 0; background: var(--bg-alt); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: white; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border-light); transition: all 0.3s; position: relative; overflow: hidden; }
.benefit-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #10B981); opacity: 0; transition: opacity 0.3s; }
.benefit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.benefit-card:hover::after { opacity: 1; }
.benefit-icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.benefit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ============================================
   RANKING TABLE / OFFER CARDS
   ============================================ */
.ranking { padding: 80px 0; }

.lender-info { display: flex; align-items: center; gap: 12px; }
.lender-logo { width: 100px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: white; flex-shrink: 0; }
.lender-logo-img { width: 100px; height: 40px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: white; border: 1px solid var(--border); padding: 5px; }
.lender-name { font-weight: 600; font-size: 15px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-orange { background: #FEF3C7; color: #B45309; }
.badge-purple { background: #F3E8FF; color: #7C3AED; }

/* Ranking cards (rk-*) */
.rk-list { display: flex; flex-direction: column; gap: 20px; }
.rk-card { position: relative; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all 0.3s; box-shadow: var(--shadow-xs); }
.rk-card:hover { border-color: rgba(0,138,94,0.3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rk-best { border-color: var(--primary); background: linear-gradient(180deg, #F0FDF4 0%, #fff 40%); box-shadow: 0 4px 20px rgba(0,138,94,0.1); }
.rk-best-label { position: absolute; top: -10px; left: 20px; background: linear-gradient(135deg, #008A5E, #009963); color: white; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 8px; display: flex; align-items: center; gap: 5px; letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(0,138,94,0.25); }
.rk-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.rk-rank { width: 32px; height: 32px; border-radius: 10px; background: var(--bg-alt); color: var(--text); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border); }
.rk-best .rk-rank { background: linear-gradient(135deg, #008A5E, #009963); color: white; border: none; }
.rk-lender { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.rk-lender .lender-logo-img { width: 110px; height: 44px; border-radius: 10px; padding: 6px; }
.rk-lender-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rk-name { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.2; }
.rk-speed { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); padding: 6px 14px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.rk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0; margin-bottom: 12px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.rk-stat { text-align: center; }
.rk-stat-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.rk-stat-value { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.rk-stat-value.rk-green { color: #008A5E; }
.rk-usp { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; border: 1px solid var(--border-light); }
.rk-usp svg { flex-shrink: 0; margin-top: 2px; }
.rk-bottom { display: flex; gap: 12px; align-items: center; }
.rk-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; background: linear-gradient(135deg, #008A5E, #006D4A); color: white; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 14px rgba(0,138,94,0.2); flex: 1; }
.rk-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,138,94,0.3); color: white; background: linear-gradient(135deg, #00c985, #00a569); }
.rk-legal { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 80px 0; background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: white; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border-light); transition: all 0.3s; position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 20px; right: 24px; font-size: 48px; font-weight: 800; color: var(--primary-light); line-height: 1; font-family: Georgia, serif; }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 14px; color: var(--text); }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }
.verified-badge { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 50px; white-space: nowrap; }

/* ============================================
   CATEGORY LINKS
   ============================================ */
.category-links { padding: 80px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { display: block; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s; position: relative; text-decoration: none; overflow: hidden; }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--primary); opacity: 0; transition: opacity 0.3s; }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-card:hover::before { opacity: 1; }
.category-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.category-arrow { position: absolute; top: 20px; right: 20px; font-size: 20px; color: var(--primary); transition: transform 0.3s; }
.category-card:hover .category-arrow { transform: translateX(4px); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 80px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: white; transition: all 0.25s; }
.faq-item:hover { box-shadow: var(--shadow-xs); border-color: #CBD5E1; }
.faq-item.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,138,94,0.06); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); text-align: left; font-family: inherit; gap: 16px; }
.faq-item.active .faq-question { color: var(--primary-dark); }
.faq-arrow { flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { padding: 80px 0; background: var(--bg-alt); }
.cta-card { background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F172A 100%); border-radius: var(--radius-xl); padding: 64px; text-align: center; color: white; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,138,94,0.12) 0%, transparent 70%); border-radius: 50%; }
.cta-card::after { content: ''; position: absolute; bottom: -40%; left: -15%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%); border-radius: 50%; }
.cta-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; letter-spacing: -0.5px; }
.cta-card p { font-size: 17px; opacity: 0.75; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-card .btn { position: relative; z-index: 1; }

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content { padding: 60px 0; }
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; margin-top: 48px; letter-spacing: -0.3px; color: var(--text); padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; margin-top: 36px; color: var(--text); }
.content-block h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; margin-top: 28px; color: var(--text); }
.content-block p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.content-block p strong { color: var(--text); }
.content-block ul, .content-block ol { margin-bottom: 20px; padding-left: 0; list-style: none; }
.content-block ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; padding-left: 24px; position: relative; }
.content-block ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: 0.5; }
.content-block ol { counter-reset: ol-counter; }
.content-block ol li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; padding-left: 36px; position: relative; counter-increment: ol-counter; }
.content-block ol li::before { content: counter(ol-counter); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.toc ol li { padding-left: 0; margin-bottom: 4px; }
.toc ol li::before { content: none; }
.content-block li strong { color: var(--text); }
.content-block a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0,138,94,0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.content-block a:hover { text-decoration-color: var(--primary); }
.content-block table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.content-block table th { padding: 14px 18px; font-size: 13px; font-weight: 700; text-align: left; background: var(--bg-alt); color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.content-block table td { padding: 14px 18px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--border-light); background: white; }
.content-block table tr:last-child td { border-bottom: none; }
.content-block table tr:hover td { background: var(--bg-alt); }
.content-block table td:first-child { font-weight: 600; color: var(--text); }

/* ============================================
   PILLAR PAGE LAYOUT
   ============================================ */
.page-hero { padding: 100px 0 44px; background: linear-gradient(170deg, #F0FDF7 0%, #ECFDF5 40%, #F8FAFC 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -60%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,138,94,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, white); pointer-events: none; }
.page-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 16px; color: var(--text); }
.page-hero .hero-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.65; max-width: 720px; margin-bottom: 24px; }
.page-hero .hero-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.page-hero .hero-meta span { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.8); padding: 5px 14px; border-radius: 8px; font-weight: 500; border: 1px solid rgba(0,0,0,0.04); }
.page-hero .page-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.pillar-content { padding: 60px 0; }
.pillar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.pillar-main { min-width: 0; }
.pillar-sidebar { position: sticky; top: 90px; align-self: start; }

/* Sidebar */
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; transition: box-shadow 0.2s; }
.sidebar-card:hover { box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 2px; }
.sidebar-card li a { color: var(--text-secondary); font-size: 14px; display: flex; align-items: center; padding: 8px 10px; border-radius: 6px; transition: all 0.2s; text-decoration: none; border-bottom: none; }
.sidebar-card li a:hover { background: var(--primary-light); color: var(--primary-dark); padding-left: 14px; }
.sidebar-card li:last-child a { border-bottom: none; }
.sidebar-cta { background: linear-gradient(170deg, #F0FDF4 0%, #ECFDF5 50%, #F8FAFC 100%); border: 1px solid rgba(0,138,94,0.15); border-radius: var(--radius); padding: 28px 24px; text-align: center; position: relative; overflow: hidden; margin-bottom: 20px; }
.sidebar-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #006D4A); }
.sidebar-cta h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--primary-dark); }
.sidebar-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

/* Author box */
.author-box { display: flex; align-items: flex-start; gap: 16px; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px 24px; margin: 40px 0; position: relative; flex-wrap: wrap; }
.author-box::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--primary); border-radius: 0 3px 3px 0; }
.author-box h3 { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 0; width: 100%; }
.author-box > p, .author-box .author-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 4px 0 0; }
.author-box > strong, .author-box .author-info > strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.author-box-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.author-box .author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.author-box .author-name { font-size: 15px; font-weight: 700; color: var(--text); }
.author-box .author-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.author-box .author-role { font-size: 13px; color: var(--text-muted); }
.author-box .author-date, .author-box .author-updated { font-size: 12px; color: var(--text-muted); }
.author-box .author-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 4px 0 0; }
.author-box-info { min-width: 0; flex: 1; }
.author-box-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.author-box-info span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Table of contents */
.toc { background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.toc h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.toc h4::before { content: ''; width: 16px; height: 2px; background: var(--primary); border-radius: 1px; }
.toc ol { padding-left: 0; list-style: none; }
.toc li { font-size: 14px; margin-bottom: 4px; }
.toc li a { color: var(--text-secondary); display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; transition: all 0.2s; text-decoration: none; }
.toc li a::before { width: 22px; height: 22px; border-radius: 50%; background: white; color: var(--text-muted); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; border: 1px solid var(--border); }
.toc li:nth-child(1) a::before { content: '1'; }
.toc li:nth-child(2) a::before { content: '2'; }
.toc li:nth-child(3) a::before { content: '3'; }
.toc li:nth-child(4) a::before { content: '4'; }
.toc li:nth-child(5) a::before { content: '5'; }
.toc li:nth-child(6) a::before { content: '6'; }
.toc li:nth-child(7) a::before { content: '7'; }
.toc li:nth-child(8) a::before { content: '8'; }
.toc li:nth-child(9) a::before { content: '9'; }
.toc li:nth-child(10) a::before { content: '10'; }
.toc li a:hover { background: var(--primary-light); color: var(--primary-dark); }
.toc li a:hover::before { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   REVIEW / OPINIONES PAGE
   ============================================ */
.review-hero-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.review-hero-logo img { width: 160px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; }
.review-score-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px; display: flex; align-items: center; gap: 32px; box-shadow: var(--shadow-xs); }
.review-score-big { font-size: 64px; font-weight: 800; background: linear-gradient(135deg, var(--primary), #009963); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.review-score-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.review-score-bars { flex: 1; }
.score-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.score-bar-label { font-size: 13px; font-weight: 600; width: 100px; color: var(--text); }
.score-bar-track { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #10B981); border-radius: 4px; transition: width 0.6s ease; }
.score-bar-value { font-size: 13px; font-weight: 700; width: 40px; text-align: right; color: var(--primary-dark); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.pros, .cons { padding: 24px; border-radius: var(--radius); position: relative; overflow: hidden; }
.pros::before, .cons::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pros { background: #F0FDF4; border: 1px solid #BBF7D0; }
.pros::before { background: #22C55E; }
.cons { background: #FEF2F2; border: 1px solid #FECACA; }
.cons::before { background: #EF4444; }
.pros h4, .cons h4 { font-size: 14px; margin-bottom: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pros h4 { color: #15803D; }
.pros h4::before { content: '\2713'; width: 22px; height: 22px; border-radius: 50%; background: #22C55E; color: white; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cons h4 { color: #DC2626; }
.cons h4::before { content: '\2717'; width: 22px; height: 22px; border-radius: 50%; background: #EF4444; color: white; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pros ul, .cons ul { list-style: none; padding-left: 0; }
.pros li, .cons li { font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); padding-left: 20px; position: relative; line-height: 1.6; }
.pros li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.cons li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #EF4444; }

/* ============================================
   TOOL / CALCULATOR PAGE
   ============================================ */
.tool-hero { padding: 100px 0 44px; background: linear-gradient(170deg, #F0FDF7 0%, #ECFDF5 40%, #F8FAFC 100%); text-align: center; position: relative; overflow: hidden; }
.tool-hero::before { content: ''; position: absolute; top: -50%; right: -25%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,138,94,0.05) 0%, transparent 70%); border-radius: 50%; }
.tool-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, white); pointer-events: none; }
.tool-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; position: relative; color: var(--text); letter-spacing: -0.5px; }
.tool-hero p { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; position: relative; line-height: 1.6; }

.tool-section { padding: 60px 0; }
.tool-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto; }
.tool-result { background: var(--primary-light); border-radius: var(--radius); padding: 24px; margin-top: 24px; border: 1px solid rgba(0,138,94,0.12); }
.tool-result h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--primary-dark); }
.tool-result-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; border-bottom: 1px solid rgba(0,138,94,0.12); }
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row span:last-child { font-weight: 700; color: var(--text); }

/* TAE Calculator specific */
.tae-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tae-inputs .form-group { margin-bottom: 0; }

/* ============================================
   GUIDE / BLOG PAGES
   ============================================ */
.guide-hero { padding: 100px 0 44px; background: linear-gradient(170deg, #F0FDF7 0%, #ECFDF5 40%, #F8FAFC 100%); position: relative; overflow: hidden; }
.guide-hero::before { content: ''; position: absolute; top: -40%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,138,94,0.04) 0%, transparent 70%); border-radius: 50%; }
.guide-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, white); pointer-events: none; }
.guide-hero .container { max-width: 800px; position: relative; }
.guide-hero h1 { font-size: 34px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text); letter-spacing: -0.3px; }
.guide-hero .hero-meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.guide-hero .hero-meta span { background: rgba(255,255,255,0.8); padding: 5px 14px; border-radius: 8px; font-weight: 500; border: 1px solid rgba(0,0,0,0.04); }

.guide-content { padding: 48px 0; }
.guide-content .container { max-width: 800px; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.blog-card-img { height: 160px; background: linear-gradient(135deg, #F0FDF7 0%, #ECFDF5 50%, #E0F2FE 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.blog-card-img svg { width: 48px; height: 48px; color: var(--primary); opacity: 0.4; }
.blog-card-body { padding: 22px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.blog-tag { display: inline-block; padding: 4px 10px; background: var(--primary-light); color: var(--primary-dark); font-size: 11px; font-weight: 700; border-radius: 4px; margin-bottom: 10px; letter-spacing: 0.3px; }

/* Glosario */
.glosario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glosario-item { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; transition: all var(--transition); }
.glosario-item:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); }
.glosario-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.glosario-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================
   TRUST / ABOUT PAGES
   ============================================ */
.about-hero { padding: 100px 0 44px; background: linear-gradient(170deg, #F0FDF7 0%, #ECFDF5 40%, #F8FAFC 100%); text-align: center; position: relative; overflow: hidden; }
.about-hero::before { content: ''; position: absolute; top: -40%; left: -15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,138,94,0.04) 0%, transparent 70%); border-radius: 50%; }
.about-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, white); pointer-events: none; }
.about-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; position: relative; color: var(--text); letter-spacing: -0.5px; }
.about-hero p { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; position: relative; line-height: 1.6; }

.about-section { padding: 60px 0; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.value-card { text-align: center; padding: 32px 20px; background: white; border: 1px solid var(--border-light); border-radius: var(--radius); transition: all 0.3s; }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-card h3 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.value-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.team-card { text-align: center; padding: 28px; background: white; border: 1px solid var(--border-light); border-radius: var(--radius); transition: all 0.3s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; margin: 0 auto 16px; }
.team-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.team-card span { font-size: 13px; color: var(--text-muted); }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; transition: all var(--transition); outline: none; background: white; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,138,94,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.phone-input { display: flex; }
.phone-prefix { display: flex; align-items: center; padding: 0 14px; background: var(--bg-alt); border: 1.5px solid var(--border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.phone-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.checkbox-group { margin-bottom: 12px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.form-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page { padding: 100px 0 60px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.legal-page h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.legal-page h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.legal-page p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }

/* Legal Example */
.legal-example { padding: 48px 0; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.legal-example h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; text-align: center; color: var(--text-secondary); }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.example-card { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border-light); position: relative; overflow: hidden; }
.example-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.example-card:first-child::before { background: var(--primary); }
.example-card:last-child::before { background: #F59E0B; }
.example-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.example-card:first-child h4 { color: var(--primary-dark); }
.example-card:last-child h4 { color: #B45309; }
.example-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0F172A; color: #94A3B8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo .logo-d { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 16px; color: #94A3B8; }
.footer-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #CBD5E1; background: #1E293B; padding: 6px 12px; border-radius: 6px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.3px; }
.footer-h4-mt { margin-top: 24px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #94A3B8; font-size: 13.5px; transition: color var(--transition); text-decoration: none; }
.footer-col a:hover { color: #008A5E; }
.footer-amounts { display: flex; flex-wrap: wrap; gap: 0; }
.footer-amounts li { margin-bottom: 0; }
.footer-amounts li:not(:last-child)::after { content: '\00B7'; color: #475569; margin: 0 6px; }
.footer-amounts a { font-size: 13px; }
.footer-disclaimer { border-top: 1px solid #1E293B; padding: 24px 0; }
.footer-disclaimer p { font-size: 12px; line-height: 1.7; color: #475569; }
.footer-disclaimer strong { color: #94A3B8; font-weight: 600; }
.footer-bottom { border-top: 1px solid #1E293B; padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: #475569; }

/* ============================================
   MODAL -- Redesigned
   ============================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: all 0.35s cubic-bezier(.4,0,.2,1); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: var(--radius-xl); max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; transform: translateY(24px) scale(0.97); transition: transform 0.35s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04); scrollbar-width: none; -ms-overflow-style: none; }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal::-webkit-scrollbar { display: none; }
.modal-close { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.04); border: none; cursor: pointer; color: #64748B; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all 0.2s; z-index: 10; }
.modal-close:hover { background: rgba(0,0,0,0.08); color: #0F172A; }
.modal-step { padding: 36px 32px; }

/* --- STEP 1: FORM --- */
.m-form-top { text-align: center; margin-bottom: 20px; }
.m-form-icon { margin-bottom: 12px; }
.m-form-top h2 { font-size: 21px; font-weight: 800; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.m-form-top p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.m-loan-pill { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--primary-light); border: 1px solid #BBF7D0; border-radius: 12px; padding: 12px 20px; margin-bottom: 22px; }
.m-loan-pill-item { text-align: center; flex: 1; }
.m-loan-pill-label { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.m-loan-pill-value { font-size: 18px; font-weight: 800; color: var(--text); }
.m-loan-pill-value.m-green { color: #008A5E; }
.m-loan-pill-divider { width: 1px; height: 32px; background: #BBF7D0; margin: 0 4px; flex-shrink: 0; }
.m-field { margin-bottom: 14px; }
.m-field label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.m-field label svg { flex-shrink: 0; }
.m-field input[type="text"],
.m-field input[type="email"] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; transition: all 0.2s; outline: none; background: var(--bg-alt); }
.m-field input:focus { border-color: #008A5E; box-shadow: 0 0 0 3px rgba(0,138,94,0.1); background: #fff; }
.m-phone-wrap { display: flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; transition: all 0.2s; background: var(--bg-alt); }
.m-phone-wrap:focus-within { border-color: #008A5E; box-shadow: 0 0 0 3px rgba(0,138,94,0.1); background: #fff; }
.m-phone-flag { display: flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-right: 1px solid var(--border); background: rgba(0,0,0,0.02); gap: 4px; white-space: nowrap; }
.m-phone-wrap input { border: none; outline: none; flex: 1; padding: 12px 14px; font-size: 15px; font-family: inherit; background: transparent; }
.m-checks { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.m-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.m-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: #008A5E; flex-shrink: 0; border-radius: 4px; }
.m-check a { color: #008A5E; text-decoration: underline; }
.m-btn-submit { width: 100%; padding: 14px 24px; background: linear-gradient(135deg, #008A5E, #006D4A); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.25s; box-shadow: 0 4px 14px rgba(0,138,94,0.25); }
.m-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,138,94,0.35); background: linear-gradient(135deg, #00c985, #00a569); }
.m-btn-submit:active { transform: translateY(0); }
.m-btn-skip { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; font-family: inherit; padding: 10px 0 4px; display: block; width: 100%; text-align: center; transition: color 0.2s; text-decoration: none; }
.m-btn-skip:hover { color: var(--text-secondary); text-decoration: underline; }
.m-trust-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.m-trust-item { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }

/* --- STEP 2: LOADING --- */
.m-loading { text-align: center; padding: 16px 0; }
.m-loading-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 20px; }
.m-ring { width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(#008A5E calc(var(--pct, 0) * 3.6deg), var(--border) 0deg); --pct: 0; transition: none; display: flex; align-items: center; justify-content: center; mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); }
.m-ring-percent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--text); }
.m-loading h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.m-loading > p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.m-loading-steps { text-align: left; max-width: 280px; margin: 0 auto 20px; display: flex; flex-direction: column; gap: 6px; }
.m-ls { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: #CBD5E1; transition: all 0.3s; }
.m-ls.active { color: var(--text); font-weight: 600; background: #F0FDF4; }
.m-ls.done { color: #008A5E; font-weight: 500; }
.m-ls-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: all 0.3s; }
.m-ls.active .m-ls-dot { background: #008A5E; box-shadow: 0 0 0 3px rgba(0,138,94,0.15); animation: m-pulse 1.2s ease infinite; }
.m-ls.done .m-ls-dot { background: #008A5E; }
@keyframes m-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(0,138,94,0.15); } 50% { box-shadow: 0 0 0 6px rgba(0,138,94,0.08); } }
.m-loading-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.m-loading-trust span { opacity: 0.8; }

/* --- STEP 3: OFFERS --- */
.m-offers-header { text-align: center; margin-bottom: 16px; }
.m-offers-icon { margin-bottom: 12px; }
.m-offers-header h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.m-offers-header p { font-size: 15px; color: var(--text-muted); }
.m-offers-summary { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 20px; padding: 10px 20px; background: var(--bg-alt); border-radius: 10px; border: 1px solid var(--border-light); }
.m-offers-sep { color: #CBD5E1; }
.m-green { color: #008A5E !important; }
.m-offers-list { display: flex; flex-direction: column; gap: 16px; }
.m-offer-card { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: all 0.25s; position: relative; background: #fff; animation: m-card-in 0.4s ease both; }
.m-offer-card:nth-child(2) { animation-delay: 0.1s; }
.m-offer-card:nth-child(3) { animation-delay: 0.2s; }
.m-offer-card:nth-child(4) { animation-delay: 0.3s; }
.m-offer-card:nth-child(5) { animation-delay: 0.4s; }
@keyframes m-card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.m-offer-card:hover { border-color: #008A5E; box-shadow: 0 6px 20px rgba(0,138,94,0.1); }
.m-offer-best { border-color: var(--primary); border-width: 2px; background: linear-gradient(180deg, #F0FDF4 0%, #fff 40%); }
.m-offer-badge { position: absolute; top: -10px; left: 20px; background: linear-gradient(135deg, #008A5E, #006D4A); color: white; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 8px; display: flex; align-items: center; gap: 5px; letter-spacing: 0.3px; }
.m-offer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.m-offer-lender { display: flex; align-items: center; gap: 12px; }
.m-offer-logo-img { width: 110px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 5px; }
.m-offer-logo-placeholder { width: 110px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #008A5E, #006D4A); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: white; }
.m-offer-lender-info { display: flex; flex-direction: column; gap: 3px; }
.m-offer-name { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.2; }
.m-offer-tae { font-size: 13px; font-weight: 600; color: #008A5E; }
.m-offer-speed { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; background: var(--bg-alt); padding: 5px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; border: 1px solid var(--border-light); }
.m-offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; padding: 12px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.m-offer-stat { text-align: center; }
.m-offer-stat-val { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.m-offer-stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.m-offer-tag { font-size: 11px; padding: 2px 8px; }
.m-offer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border-light); }
.m-offer-detail { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.m-offer-detail:nth-child(odd) { border-right: 1px solid var(--border-light); }
.m-offer-detail:nth-last-child(-n+2) { border-bottom: none; }
.m-offer-detail-label { color: var(--text-muted); font-weight: 500; }
.m-offer-detail-value { font-weight: 700; color: var(--text); }
.m-offer-usp-text { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; padding: 10px 14px; background: #F0FDF4; border-radius: 10px; border: 1px solid #BBF7D0; }
.m-offer-usp-text svg { flex-shrink: 0; margin-top: 2px; }
.m-offer-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; background: linear-gradient(135deg, #008A5E, #006D4A); color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; transition: all 0.25s; box-shadow: 0 3px 12px rgba(0,138,94,0.2); text-align: center; }
.m-offer-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,138,94,0.3); color: white; }
.m-offer-cta:active { transform: translateY(0); }
.m-offer-legal { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.m-offers-footer { text-align: center; margin-top: 18px; }
.m-offers-footer p { font-size: 12px; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .hero h1 { font-size: 40px; }
    .calc-card { grid-template-columns: 1fr; }
    .pillar-layout { grid-template-columns: 1fr; }
    .pillar-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    /* Base */
    .container { padding: 0 16px; width: 100%; max-width: 100%; }
    body { font-size: 15px; }
    .content-block { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
    .pillar-main, .pillar-layout { min-width: 0; max-width: 100%; }
    .ad-disclosure { max-width: 100%; padding-left: 16px; padding-right: 16px; }

    /* Header / Nav */
    .header .container { height: 56px; }
    .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; height: calc(100vh - 56px); height: calc(100dvh - 56px); background: #fff; flex-direction: column; padding: 16px; gap: 0; overflow-y: auto; z-index: 1001; }
    .nav.open { display: flex; }
    .nav-item { width: 100%; }
    .nav-item.has-dropdown > .nav-link { border-bottom: 1px solid var(--border-light); }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 15px; font-weight: 600; }
    .nav-item:hover .dropdown-menu { opacity: 0; visibility: hidden; }
    .dropdown-menu { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; box-shadow: none; border: none; display: none; padding: 8px 0 8px 12px; min-width: auto !important; max-height: none; background: var(--bg-alt); border-radius: 0 0 8px 8px; }
    .dropdown-menu.open { display: block !important; }
    .dropdown-menu a { font-size: 14px; padding: 10px 14px; }
    .dropdown-divider { margin: 6px 8px; }
    .dropdown-label { padding: 4px 14px; font-size: 10px; }
    .mega-menu { min-width: auto !important; padding: 8px 0; left: auto; }
    .mega-menu.open { display: flex !important; flex-direction: column; }
    .mega-col { border-right: none; border-bottom: 1px solid var(--border-light); padding: 8px 0; flex: none; width: 100%; }
    .mega-col:last-child { border-bottom: none; }
    .mega-col a { padding: 8px 14px; font-size: 14px; }
    .mega-label { padding: 4px 14px; font-size: 10px; }
    .mega-cta { display: none; }
    .btn-header { display: none; }
    .hamburger { display: flex; }

    /* Breadcrumb */
    .breadcrumb { margin-top: 56px; padding: 10px 0; }
    .breadcrumb ol { padding: 0 16px; }
    .breadcrumb li { font-size: 12px; }

    /* === HOMEPAGE HERO === */
    .hero { padding: 72px 0 32px; }
    .hero::after { height: 32px; }
    .hero-visual { max-width: none; margin: 0 -6px; }
    .hero h1 { font-size: 26px; letter-spacing: -0.5px; line-height: 1.2; }
    .hero-subtitle { font-size: 14px; margin-bottom: 16px; line-height: 1.55; }
    .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 12px; }
    .hero-features { gap: 6px; margin-bottom: 16px; }
    .hero-feat { font-size: 12px; padding: 6px 12px; gap: 5px; }
    .hero-feat svg { width: 16px; height: 16px; }
    .hero-trust-bar { justify-content: center; gap: 8px; font-size: 11px; flex-wrap: wrap; padding: 4px 0; }
    .hero-calc-card { padding: 20px; border-radius: 12px; }
    .hero-calc-card .slider-group { margin-bottom: 16px; }
    .hero-calc-card .slider-group:last-of-type { margin-bottom: 14px; }
    .hero-calc-summary { padding: 12px 14px; margin-bottom: 12px; }
    .hero-calc-summary .summary-row { padding: 4px 0; font-size: 13px; }
    .hero-calc-card .first-loan-badge { margin-bottom: 12px; padding: 8px 12px; font-size: 12px; }
    .hero-calc-card .calc-trust-row { margin-top: 8px; }

    /* === STATS BAR === */
    .stats { padding: 20px 0; border-bottom: none; }
    .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-divider { display: none; }
    .stat-item { min-width: auto; background: var(--bg-alt); border-radius: 10px; padding: 12px 8px; border: 1px solid var(--border-light); }
    .stat-number { font-size: 20px; letter-spacing: -0.3px; }
    .stat-label { font-size: 10px; margin-top: 2px; line-height: 1.3; }

    /* === PAGE HEROES === */
    .page-hero { padding: 64px 0 20px; }
    .page-hero::after { height: 12px; }
    .page-hero h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 10px; }
    .page-hero .hero-subtitle { font-size: 14px; margin-bottom: 10px; line-height: 1.55; }
    .page-hero .hero-meta { gap: 6px; font-size: 11px; margin-bottom: 8px; }
    .page-hero .hero-meta span { padding: 4px 10px; font-size: 11px; }
    .page-hero .page-badges { gap: 6px; }
    .page-hero .page-badges .badge { font-size: 11px; padding: 3px 10px; }

    .tool-hero { padding: 72px 0 24px; }
    .tool-hero h1 { font-size: 24px; }
    .tool-hero p { font-size: 14px; }

    .guide-hero { padding: 72px 0 24px; }
    .guide-hero h1 { font-size: 23px; }
    .guide-hero .hero-meta { gap: 6px; }
    .guide-hero .hero-meta span { font-size: 11px; }

    .about-hero { padding: 72px 0 24px; }
    .about-hero h1 { font-size: 24px; }
    .about-hero p { font-size: 14px; }

    /* === SECTIONS === */
    .section-header { margin-bottom: 24px; }
    .section-header h2 { font-size: 22px; letter-spacing: -0.3px; }
    .section-header p { font-size: 14px; }

    /* === CALCULATOR === */
    .calculator { padding: 40px 0; }
    .calc-card { padding: 18px; gap: 20px; border-radius: 14px; }
    .slider-header { margin-bottom: 10px; }
    .slider-header label { font-size: 13px; }
    .slider-value { font-size: 20px; }
    .slider-range { margin-top: 6px; font-size: 11px; }
    .slider { height: 10px; border-radius: 5px; }
    .slider::-webkit-slider-thumb { width: 26px; height: 26px; border-width: 3px; box-shadow: 0 1px 4px rgba(0,138,94,0.25); }
    .slider::-moz-range-thumb { width: 26px; height: 26px; border-width: 3px; box-shadow: 0 1px 4px rgba(0,138,94,0.25); }
    .calc-summary-card { padding: 16px; }
    .summary-row { font-size: 14px; padding: 6px 0; }

    /* === HOW IT WORKS === */
    .how-it-works { padding: 40px 0; }
    .steps-grid { flex-direction: column; align-items: stretch; gap: 0; }
    .step-card { max-width: none; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; gap: 0 12px; text-align: left; padding: 16px 0; }
    .step-card:hover { box-shadow: none; background: none; }
    .step-icon { display: none; }
    .step-number { grid-row: 1 / 3; grid-column: 1; margin-bottom: 0; width: 36px; height: 36px; font-size: 14px; align-self: start; }
    .step-card h3 { grid-column: 2; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
    .step-card p { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
    .step-connector { display: none; }

    /* === BENEFITS === */
    .benefits { padding: 40px 0; }
    .benefits-grid { grid-template-columns: 1fr; gap: 10px; }
    .benefit-card { padding: 16px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 0 12px; align-items: start; border-radius: 10px; }
    .benefit-card:hover { transform: none; }
    .benefit-card::after { display: none; }
    .benefit-icon { grid-row: 1 / 3; grid-column: 1; width: 40px; height: 40px; flex-shrink: 0; margin-bottom: 0; border-radius: 8px; }
    .benefit-icon svg { width: 22px; height: 22px; }
    .benefit-card h3 { grid-column: 2; font-size: 14px; margin-bottom: 2px; font-weight: 700; }
    .benefit-card p { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

    /* === RANKING / OFFER CARDS === */
    .ranking { padding: 40px 0; }
    .rk-card { padding: 16px; border-radius: 14px; }
    .rk-best { padding-top: 22px; }
    .rk-list { gap: 14px; }
    .rk-best-label { font-size: 11px; padding: 2px 12px; top: -9px; left: 14px; }
    .rk-top { gap: 8px; flex-wrap: nowrap; align-items: center; }
    .rk-rank { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; flex-shrink: 0; }
    .rk-lender { gap: 8px; min-width: 0; flex: 1; }
    .lender-logo, .lender-logo-img { flex-shrink: 0; }
    .rk-lender .lender-logo-img { width: 72px; height: 30px; border-radius: 6px; padding: 3px; }
    .rk-lender-info { gap: 2px; min-width: 0; }
    .rk-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rk-lender-info .badge { font-size: 9px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; }
    .rk-speed { font-size: 10px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
    .rk-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 0; margin-bottom: 10px; }
    .rk-stat-label { font-size: 10px; margin-bottom: 2px; }
    .rk-stat-value { font-size: 13px; }
    .rk-usp { font-size: 12px; padding: 8px 12px; margin-bottom: 12px; }
    .rk-usp svg { width: 12px; height: 12px; }
    .rk-cta { padding: 12px 16px; font-size: 14px; border-radius: 10px; }
    .rk-legal { font-size: 10px; margin-top: 10px; padding-top: 10px; }

    /* === CATEGORY CARDS === */
    .category-links { padding: 40px 0; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .category-card { padding: 16px; border-radius: 10px; }
    .category-card h3 { font-size: 14px; margin-bottom: 4px; padding-right: 20px; }
    .category-card p { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
    .category-arrow { top: 14px; right: 14px; font-size: 16px; }

    /* === TESTIMONIALS === */
    .testimonials { padding: 40px 0; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
    .testimonial-card { padding: 18px; }
    .testimonial-card::before { font-size: 36px; top: 14px; right: 18px; }
    .testimonial-text { font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
    .testimonial-author strong { font-size: 13px; }
    .testimonial-author span { font-size: 11px; }
    .verified-badge { font-size: 10px; padding: 2px 8px; }

    /* === FAQ === */
    .faq { padding: 40px 0; }
    .faq-question { padding: 14px 16px; font-size: 14px; gap: 12px; }
    .faq-answer p { padding: 0 16px 16px; font-size: 14px; }

    /* === CTA === */
    .cta-section { padding: 40px 0; }
    .cta-card { padding: 32px 20px; border-radius: var(--radius); }
    .cta-card h2 { font-size: 21px; margin-bottom: 8px; }
    .cta-card p { font-size: 14px; margin-bottom: 18px; }
    .cta-card .btn { padding: 12px 24px; font-size: 14px; width: 100%; }

    /* === CONTENT BLOCK === */
    .pillar-content { padding: 24px 0; }
    .content-block h2 { font-size: 20px; margin-top: 28px; padding-bottom: 10px; }
    .content-block h3 { font-size: 18px; margin-top: 24px; }
    .content-block h4 { font-size: 16px; margin-top: 20px; }
    .content-block p { font-size: 15px; line-height: 1.7; }
    .content-block ul li, .content-block ol li { font-size: 14px; }
    .content-block table { margin: 16px 0; font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .content-block table thead, .content-block table tbody, .content-block table tr { display: table; width: 100%; table-layout: fixed; }
    .content-block table th { padding: 10px 12px; font-size: 11px; white-space: normal; }
    .content-block table td { padding: 10px 12px; font-size: 13px; word-break: break-word; }

    /* === SEO CONTENT === */
    .seo-content { padding: 36px 0; }
    .section-links { margin-top: 20px; font-size: 13px; }
    .section-links p { line-height: 1.8; }

    /* === PROS / CONS === */
    .pros-cons { grid-template-columns: 1fr; gap: 10px; margin: 24px 0; }
    .pros, .cons { padding: 16px; }
    .pros h4, .cons h4 { font-size: 14px; margin-bottom: 10px; }
    .pros li, .cons li { font-size: 13px; }

    /* TOC */
    .toc { padding: 18px 20px; margin-bottom: 24px; }
    .toc li { font-size: 13px; }
    .toc li a { padding: 5px 6px; gap: 8px; }
    .toc li a::before { width: 20px; height: 20px; font-size: 10px; }

    /* Author box */
    .author-box { padding: 16px 18px; gap: 12px; margin: 28px 0; }
    .author-box-avatar { width: 44px; height: 44px; font-size: 16px; }
    .author-box-info strong { font-size: 14px; }
    .author-box-info span { font-size: 12px; }

    /* Sidebar (stacked below content on mobile) */
    .pillar-sidebar { margin-top: 16px; }
    .sidebar-cta { padding: 20px 18px; }
    .sidebar-cta h4 { font-size: 16px; }
    .sidebar-card { padding: 18px; }

    /* Review */
    .review-hero-logo img { width: 130px; height: 48px; padding: 6px 12px; }
    .review-score-card { flex-direction: row; flex-wrap: wrap; padding: 16px; gap: 0; }
    .review-score-card > div:first-child { width: 100%; display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border-light); }
    .review-score-big { font-size: 36px; }
    .review-score-label { font-size: 13px; }
    .review-score-bars { width: 100%; }
    .score-bar { gap: 8px; margin-bottom: 8px; }
    .score-bar:last-child { margin-bottom: 0; }
    .score-bar-label { width: 90px; font-size: 12px; white-space: nowrap; }
    .score-bar-track { min-width: 0; }
    .score-bar-value { width: 28px; font-size: 12px; font-weight: 800; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-card-img { height: 140px; }
    .blog-card-body { padding: 16px; }
    .blog-card-body h3 { font-size: 15px; }
    .blog-card-body p { font-size: 13px; }

    /* Glosario */
    .glosario-grid { grid-template-columns: 1fr; gap: 10px; }
    .glosario-item { padding: 16px; }
    .glosario-item h3 { font-size: 15px; }
    .glosario-item p { font-size: 13px; }

    /* About / Team */
    .about-section { padding: 40px 0; }
    .about-values { grid-template-columns: 1fr; gap: 16px; }
    .value-card { padding: 24px 16px; }
    .team-grid { grid-template-columns: 1fr; gap: 12px; }
    .team-card { padding: 20px; display: flex; align-items: center; gap: 16px; text-align: left; }
    .team-avatar { width: 56px; height: 56px; font-size: 22px; margin: 0; flex-shrink: 0; }
    .team-card h3 { font-size: 15px; margin-bottom: 2px; }

    /* Legal */
    .legal-page { padding: 80px 0 40px; }
    .legal-page h1 { font-size: 26px; }
    .legal-page h2 { font-size: 19px; }
    .legal-page p, .legal-page li { font-size: 14px; }

    .legal-example { padding: 32px 0; }
    .example-grid { grid-template-columns: 1fr; gap: 10px; }
    .example-card { padding: 18px; }
    .example-card h4 { font-size: 13px; }
    .example-card p { font-size: 12px; }

    /* Tool / Calculator page */
    .tool-section { padding: 24px 0; }
    .tool-card { padding: 20px 16px; }
    .tool-result { padding: 16px; }
    .tool-result-row { font-size: 14px; }
    .form-group { margin-bottom: 14px; }
    .tae-inputs { grid-template-columns: 1fr; gap: 14px; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-desc { font-size: 13px; margin-top: 12px; }
    .footer-badges { gap: 8px; margin-top: 14px; }
    .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-h4-mt { margin-top: 20px; }
    .footer-col a { font-size: 13px; }
    .footer-col li { margin-bottom: 5px; }
    .footer-amounts { gap: 0; }
    .footer-amounts a { font-size: 12px; }
    .footer-disclaimer { padding: 18px 0; }
    .footer-disclaimer p { font-size: 11px; }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom p { font-size: 12px; }

    /* Modal */
    .modal-overlay { padding: 8px; align-items: center; }
    .modal { max-width: 100%; border-radius: 16px; max-height: 92vh; }
    .modal-step { padding: 24px 20px; }
    .modal-close { top: 10px; right: 10px; width: 32px; height: 32px; }
    .m-form-top { margin-bottom: 14px; }
    .m-form-top h2 { font-size: 18px; }
    .m-form-top p { font-size: 13px; }
    .m-form-icon svg { width: 28px; height: 28px; }
    .m-loan-pill { padding: 10px 12px; margin-bottom: 16px; border-radius: 10px; }
    .m-loan-pill-value { font-size: 15px; }
    .m-loan-pill-label { font-size: 10px; }
    .m-loan-pill-divider { height: 28px; }
    .m-field { margin-bottom: 12px; }
    .m-field label { font-size: 12px; margin-bottom: 4px; }
    .m-field input[type="text"],
    .m-field input[type="email"] { padding: 11px 12px; font-size: 15px; border-radius: 8px; }
    .m-phone-wrap { border-radius: 8px; }
    .m-phone-wrap input { padding: 11px 12px; font-size: 15px; }
    .m-phone-flag { padding: 0 10px; font-size: 13px; }
    .m-checks { margin-bottom: 14px; gap: 6px; }
    .m-check { font-size: 12px; }
    .m-btn-submit { padding: 13px 20px; font-size: 15px; border-radius: 10px; }
    .m-btn-skip { font-size: 12px; padding: 8px 0 2px; }
    .m-trust-bar { gap: 10px; margin-top: 12px; padding-top: 12px; }
    .m-trust-item { font-size: 10px; }

    /* Modal loading */
    .m-loading { padding: 8px 0; }
    .m-loading-ring { width: 80px; height: 80px; margin-bottom: 16px; }
    .m-ring { width: 80px; height: 80px; }
    .m-ring-percent { font-size: 18px; }
    .m-loading h2 { font-size: 17px; }
    .m-loading > p { font-size: 13px; margin-bottom: 20px; }
    .m-loading-steps { gap: 4px; }
    .m-ls { padding: 6px 10px; font-size: 12px; }

    /* Modal offers */
    .m-offers-header h2 { font-size: 19px; }
    .m-offers-header p { font-size: 13px; }
    .m-offers-summary { font-size: 13px; padding: 8px 14px; margin-bottom: 14px; }
    .m-offers-list { gap: 14px; }
    .m-offer-card { padding: 18px; border-radius: 14px; }
    .m-offer-best { padding-top: 24px; }
    .m-offer-badge { font-size: 11px; padding: 3px 10px; top: -9px; left: 16px; }
    .m-offer-top { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
    .m-offer-logo-img { width: 90px; height: 36px; border-radius: 8px; padding: 4px; }
    .m-offer-logo-placeholder { width: 90px; height: 36px; border-radius: 8px; font-size: 13px; }
    .m-offer-lender { gap: 10px; flex: 1; min-width: 0; }
    .m-offer-name { font-size: 15px; }
    .m-offer-tag { font-size: 10px; padding: 2px 7px; }
    .m-offer-speed { font-size: 12px; padding: 4px 10px; }
    .m-offer-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 0; margin-bottom: 12px; }
    .m-offer-stat-val { font-size: 15px; }
    .m-offer-stat-lbl { font-size: 10px; }
    .m-offer-details { grid-template-columns: 1fr; border-radius: 10px; margin-bottom: 12px; }
    .m-offer-detail { padding: 9px 14px; font-size: 13px; }
    .m-offer-detail:nth-child(odd) { border-right: none; }
    .m-offer-detail:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); }
    .m-offer-detail:last-child { border-bottom: none; }
    .m-offer-usp-text { font-size: 12px; padding: 8px 12px; margin-bottom: 12px; }
    .m-offer-usp-text svg { width: 14px; height: 14px; }
    .m-offer-cta { padding: 13px 18px; font-size: 14px; border-radius: 10px; }
    .m-offer-legal { font-size: 10px; margin-top: 10px; padding-top: 8px; }
    .m-offers-footer { margin-top: 14px; }
    .m-offers-footer p { font-size: 11px; }

    /* Ad disclosure */
    .ad-disclosure { padding: 6px 16px; font-size: 11px; margin-bottom: 0; line-height: 1.4; }
}

/* --- Small mobile (max 420px) --- */
@media (max-width: 420px) {
    .container { padding: 0 14px; }
    .hero h1 { font-size: 23px; }
    .hero-subtitle { font-size: 13px; }
    .hero-checks { gap: 6px; }
    .check-item { font-size: 11px; padding: 7px 8px; }
    .page-hero h1 { font-size: 21px; }
    .guide-hero h1 { font-size: 21px; }
    .tool-hero h1 { font-size: 21px; }
    .about-hero h1 { font-size: 21px; }
    .section-header h2 { font-size: 20px; }
    .slider-value { font-size: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .cta-card h2 { font-size: 19px; }
    .rk-top { gap: 8px; }
    .rk-speed { padding: 3px 8px; font-size: 10px; }
    .rk-stats { gap: 6px; padding: 10px 0; }
    .rk-stat-value { font-size: 12px; }
    .rk-usp { font-size: 11px; padding: 6px 10px; }
    .m-offer-grid { gap: 2px; }
    .m-offer-stat-val { font-size: 13px; }
    .content-block h2 { font-size: 19px; }
    .content-block h3 { font-size: 17px; }
    .faq-question { font-size: 13px; padding: 12px 14px; }
    .faq-answer p { font-size: 13px; padding: 0 14px 14px; }
    .benefit-card { padding: 14px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card p { display: none; }
    .category-card { padding: 14px 16px; }
    .category-card h3 { margin-bottom: 0; font-size: 14px; }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    .nav-item:hover .dropdown-menu { opacity: 0 !important; visibility: hidden !important; display: none !important; }
    .nav-item:hover .dropdown-menu.open { opacity: 1 !important; visibility: visible !important; display: block !important; }
    .nav-item:hover .mega-menu.open { display: flex !important; }
    .rk-card:hover { transform: none; }
    .benefit-card:hover { transform: none; }
    .category-card:hover { transform: none; }
    .testimonial-card:hover { transform: none; }
    .blog-card:hover { transform: none; }
    .team-card:hover { transform: none; }
    .m-offer-card:hover { border-color: var(--border); box-shadow: none; }
    .m-offer-best:hover { border-color: var(--primary); }
    .rk-cta:hover { transform: none; }
    .m-offer-cta:hover { transform: none; }
    .m-btn-submit:hover { transform: none; }
    .slider::-webkit-slider-thumb { width: 28px; height: 28px; }
    .slider::-moz-range-thumb { width: 28px; height: 28px; }
}

/* Cookie Consent Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000; background: #1a1a2e; color: #fff; padding: 16px 0; transform: translateY(100%); transition: transform 0.3s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.cookie-content p { flex: 1; font-size: 13px; line-height: 1.5; margin: 0; color: #ccc; }
.cookie-content a { color: #008A5E; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.btn-outline { background: transparent; border: 1px solid #666; color: #fff; }
.btn-outline:hover { border-color: #fff; }
@media (max-width: 768px) {
    .cookie-banner { padding: 12px 0; }
    .cookie-content { flex-direction: column; text-align: center; padding: 0 16px; gap: 12px; }
    .cookie-content p { font-size: 12px; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .cookie-buttons .btn { flex: 1; padding: 10px 12px; font-size: 13px; }
}

/* Advertising Disclosure */
.ad-disclosure { max-width: 1200px; margin: 0 auto 8px; padding: 10px 24px; font-size: 12px; color: #666; display: flex; align-items: flex-start; gap: 6px; line-height: 1.5; }
.ad-disclosure svg { flex-shrink: 0; margin-top: 2px; }
.ad-disclosure a { color: #008A5E; }
