/* Sitio estático para Pedro - sin dependencias externas */
:root {
  --bg: #f5f7f6;
  --paper: #ffffff;
  --ink: #172639;
  --muted: #5d6b79;
  --line: #dce2e5;
  --navy: #122438;
  --navy-2: #1d3447;
  --accent: #bb8b63;
  --accent-soft: #f6eee6;
  --mint: #e6f2ed;
  --green: #1e7354;
  --radius: 16px;
  --shadow: 0 14px 42px rgba(24, 43, 56, .07);
  --header-height: 70px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
::selection { background: #e4d0bb; color: var(--navy); }
:focus-visible { outline: 3px solid #d49c61; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: -65px; left: 20px; background: #fff; color: var(--ink); padding: 10px 15px; border-radius: 9px; }
.skip-link:focus { top: 10px; }

/* Cabecera y portada */
.site-header { z-index: 40; position: relative; min-height: var(--header-height); background: var(--navy); color: #f9fbfd; border-bottom: 1px solid rgba(255,255,255,.13); }
.header-inner { max-width: 1380px; margin: auto; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; gap: 22px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 760; line-height: 1.1; letter-spacing: -.03em; }
.site-brand small { display: block; font-size: 9px; font-weight: 750; letter-spacing: .15em; color: #a8bbc8; margin-top: 6px; }
.brand-mark { display: grid; place-items: center; height: 37px; width: 37px; background: #c09672; border-radius: 10px; color: #102338; font-size: 24px; font-weight: 700; }
.top-links { display: flex; align-items: center; gap: 24px; }
.top-links a { text-decoration: none; color: #ccd8df; font-size: 13px; font-weight: 650; transition: color .2s; }
.top-links a:hover { color: white; }
.hero { overflow: hidden; color: white; background: radial-gradient(circle at 92% 20%, #2b4459 0, transparent 31%), linear-gradient(135deg, #14283d, #0c1b2a); }
.hero-inner { max-width: 1380px; margin: 0 auto; padding: 70px 40px 82px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .67fr); gap: 40px; position: relative; }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow, .eyebrow { font-weight: 750; color: #a8bbc8; letter-spacing: .15em; font-size: 10px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 30px; height: 2px; background: #d3a77f; display: inline-block; }
.hero h1 { margin: 22px 0 26px; font-size: clamp(3.15rem, 5.7vw, 5.7rem); letter-spacing: -.064em; line-height: .99; font-weight: 760; }
.hero h1 em { font-weight: 460; color: #e5c7a4; font-family: Georgia, "Times New Roman", serif; letter-spacing: -.062em; }
.hero-copy { max-width: 650px; color: #d7e0e6; font-size: 16.5px; line-height: 1.78; }
.hero-copy .prose, .hero-copy .prose p { color: #d7e0e6; }
.hero-copy p { margin: 0 0 11px; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.primary-btn, .subtle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 18px; border-radius: 10px; font-size: 13px; text-decoration: none; font-weight: 750; transition: transform .15s, background .15s; }
.primary-btn { background: #e3bd96; color: var(--navy); }
.primary-btn:hover { background: #f4d4ae; transform: translateY(-2px); }
.subtle-btn { border: 1px solid #688095; color: #e5eaf0; }
.subtle-btn:hover { background: rgba(255,255,255,.09); }
.hero-decor { position: relative; min-height: 330px; display: grid; align-items: center; justify-items: center; }
.hero-number { font-size: clamp(190px, 23vw, 365px); font-weight: 800; line-height: 1; letter-spacing: -.13em; color: rgba(255,255,255,.065); transform: translateX(-.06em); user-select: none; }
.hero-grid { position: absolute; inset: 4% 0; background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent, black 40%, black 80%, transparent); opacity: .65; }
.hero-decor-caption { position: absolute; bottom: 9px; right: 4px; font-size: 11px; line-height: 1.8; letter-spacing: .13em; font-weight: 700; text-align: right; color: #bbcedd; }
.hero-decor-caption span { color: #deb78e; }

/* Índice */
.mobile-nav { display: none; }
.page-layout { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 54px; padding: 52px 40px 96px; }
.sidebar { align-self: stretch; }
.sidebar-inner { position: sticky; top: 28px; padding-top: 8px; }
.sidebar-heading { color: #758492; letter-spacing: .17em; font-weight: 780; font-size: 10px; margin: 0 0 17px 17px; }
.toc { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid #d6dee3; }
.toc-link { display: flex; align-items: center; gap: 15px; padding: 10px 15px; text-decoration: none; border-left: 3px solid transparent; margin-left: -2px; border-radius: 0 9px 9px 0; color: #586b7a; font-size: 13px; font-weight: 670; transition: .17s ease; }
.toc-link:hover { color: var(--ink); background: #e9eeef; }
.toc-link.is-current { background: #e6ebec; color: var(--navy); border-left-color: #a97e5b; }
.toc-number { color: #9aa6b1; font-variant-numeric: tabular-nums; font-size: 11px; }
.sidebar-bottom { display: flex; gap: 8px; align-items: center; padding-left: 16px; margin-top: 30px; color: #8a98a4; font-size: 11px; }
.sidebar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.main-content { min-width: 0; max-width: 100%; }

/* Tipografía, secciones y prosa */
.content-section { min-width: 0; margin-bottom: 86px; scroll-margin-top: 35px; }
.section-head { display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 28px; }
.section-number { width: 32px; flex: 0 0 32px; margin-top: 9px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #a67e5a; }
h2 { margin: 0; font-size: clamp(24px, 2.5vw, 33px); line-height: 1.22; letter-spacing: -.045em; font-weight: 740; }
h3 { letter-spacing: -.035em; line-height: 1.24; }
.prose { color: #3b4c59; line-height: 1.76; }
.prose p { margin: 0 0 15px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #172a3c; font-weight: 750; }
.prose em { color: #71808d; }
.prose ul, .prose ol { padding-left: 23px; margin: 12px 0 22px; }
.prose li { margin-bottom: 11px; padding-left: 4px; }
.text-prose { max-width: 825px; }
.criterion { padding: 13px 17px; background: #fff; border-left: 3px solid #d1aa81; border-radius: 0 10px 10px 0; box-shadow: 0 2px 12px rgba(38,54,66,.022); }
#motorizaciones .prose > ul { padding: 18px 22px 18px 36px; background: #eff2f1; border: 1px solid #e0e6e4; border-radius: var(--radius); }
#motorizaciones .prose > ul li:last-child { margin-bottom: 0; }
.section-lead { max-width: 820px; margin-bottom: 26px; }

/* Vista general de los modelos */
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; margin: 28px 0 55px; }
.model-card { background: var(--paper); border: 1px solid #e4e8e9; border-radius: 15px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 17px rgba(31,49,60,.035); display: flex; flex-direction: column; min-width: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d5d7; }
.card-photo { height: 193px; background: #e8edec; display: block; position: relative; overflow: hidden; }
.card-photo .photo-slot { height: 100%; width: 100%; }
.card-info { display: flex; flex-direction: column; align-items: flex-start; padding: 19px 20px 20px; flex: 1; }
.card-brand { font-size: 10px; letter-spacing: .16em; font-weight: 780; color: #8c9aa4; margin-bottom: 4px; }
.card-title { font-size: 18px; line-height: 1.28; font-weight: 750; letter-spacing: -.036em; color: var(--navy); }
.card-desc { color: #647484; font-size: 12.5px; line-height: 1.6; margin-top: 9px; margin-bottom: 19px; flex: 1; }
.card-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; }
.fuel-chip { display: inline-flex; align-items: center; background: #e9f1ed; color: #24674c; border: 1px solid #d7e7dc; border-radius: 999px; padding: 5px 9px; font-size: 10px; white-space: nowrap; line-height: 1.3; font-weight: 770; letter-spacing: .01em; }
.fuel-chip.fuel-phev { background: #eaf0f8; border-color: #d7e2ef; color: #315c89; }
.card-price { font-weight: 720; font-size: 12px; color: var(--ink); white-space: nowrap; }

/* Galería */
.photo-slot { display: block; position: relative; background: #e6ecec; isolation: isolate; overflow: hidden; }
.photo-slot img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .24s ease, transform .4s ease; }
.photo-slot.is-loaded img { opacity: 1; }
.model-card:hover .photo-slot.is-loaded img { transform: scale(1.035); }
.photo-placeholder { display: flex; position: absolute; inset: 0; z-index: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; background: linear-gradient(135deg,#eaf0f0,#dce6e7); color: #6e8694; padding: 15px; }
.photo-slot.is-loaded .photo-placeholder { display: none; }
.placeholder-symbol { opacity: .42; width: 76px; height: 76px; }
.placeholder-symbol svg { width: 100%; height: 100%; }
.placeholder-title { font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.placeholder-subtitle { font-size: 10px; color: #81939f; }
.vehicle-detail { scroll-margin-top: 30px; border-top: 1px solid var(--line); padding: 39px 0 38px; }
.vehicle-detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.vehicle-detail-heading h3 { color: var(--navy); margin: 7px 0 0; font-size: clamp(23px, 2.1vw, 30px); }
.vehicle-detail-heading .eyebrow { color: #a7805f; }
.vehicle-grid { display: grid; grid-template-columns: minmax(0,.98fr) minmax(0,1.02fr); gap: 30px; align-items: start; }
.gallery { position: sticky; top: 22px; min-width: 0; }
.gallery-main { padding: 0; margin: 0; width: 100%; display: block; border: none; overflow: hidden; position: relative; background: #e6ecec; border-radius: 14px; aspect-ratio: 5/4; }
.gallery-main > .photo-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-zoom { display: block; position: absolute; z-index: 2; bottom: 12px; right: 12px; padding: 7px 11px; border-radius: 7px; color: var(--navy); background: rgba(255,255,255,.9); backdrop-filter: blur(6px); font-size: 11px; font-weight: 750; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumb { min-width: 0; text-align: left; position: relative; display: flex; flex-direction: column; padding: 0 0 5px; border: 2px solid transparent; border-radius: 10px; background: transparent; overflow: hidden; }
.gallery-thumb .photo-slot { width: 100%; aspect-ratio: 4/3; border-radius: 7px; }
.gallery-thumb .placeholder-symbol { width: 30px; height: 30px; }
.gallery-thumb .placeholder-title, .gallery-thumb .placeholder-subtitle { display: none; }
.gallery-thumb.is-selected { border-color: #bf8f67; background: #f2e7dd; }
.thumb-label { display: block; font-size: 10px; font-weight: 710; color: #526473; margin: 5px 6px 0; }
.gallery-note { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #82919a; }
.vehicle-copy { padding-top: 2px; font-size: 14.3px; }
.vehicle-copy p { margin: 0 0 15px; }
.vehicle-copy p:first-child { font-size: 15.5px; line-height: 1.6; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vehicle-copy p:first-child em { font-style: normal; color: #586e7c; font-weight: 690; }
.vehicle-copy strong { color: var(--navy); }
.vehicle-copy p:last-child { margin-bottom: 0; }
.vehicle-bottom { border-top: 1px dashed #dbe2e5; margin-top: 21px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 11px; font-weight: 720; }
.vehicle-bottom a { color: #4f6979; text-decoration: none; }
.vehicle-bottom a:hover { text-decoration: underline; }

/* Tablas */
.table-section { margin: 34px 0 53px; scroll-margin-top: 110px; }
.subhead h3 { font-size: clamp(18px,1.7vw,23px); margin: 0 0 14px; }
.table-section .prose { font-size: 14px; }
.table-section .prose p { margin: 14px 0; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); scrollbar-width: thin; }
.comparison-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 690px; line-height: 1.45; font-size: 12.5px; }
.comparison-table th, .comparison-table td { text-align: left !important; padding: 13px 12px; white-space: normal; vertical-align: middle; border-bottom: 1px solid #e9edf0; }
.comparison-table thead th { background: #203448; color: #f4f7fa; font-weight: 720; font-size: 11px; letter-spacing: .02em; }
.comparison-table tbody tr:nth-child(even) td { background: #f8faf9; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child { font-weight: 750; color: var(--navy); min-width: 150px; }
.table-dimensions { min-width: 800px; }
.table-dimensions th:not(:first-child), .table-dimensions td:not(:first-child) { font-variant-numeric: tabular-nums; }
.table-battery { min-width: 720px; }
.table-battery th:first-child { width: 22%; }
.table-battery th:nth-child(2) { width: 27%; }
.table-scores { min-width: 710px; }
.table-scores th:not(:first-child), .table-scores td:not(:first-child) { text-align: center !important; }
.table-scores td.score-cell { font-weight: 830; font-variant-numeric: tabular-nums; }
.table-scores td.score-5 { color: #176646; background: #e6f2ea !important; }
.table-scores td.score-4 { color: #2e6b6e; }
.table-scores td.score-3 { color: #a36f36; }
.table-scores td.score-2 { color: #a35547; }
.table-scores td.score-pending { color: #7d8a93; font-weight: 550; font-size: 11px; }

/* Preguntas, pruebas y pie */
.prompt-item { background: #fff; border: 1px solid #e4e9eb; margin-bottom: 8px !important; padding: 13px 17px; border-radius: 9px; font-weight: 600; }
.checklist .try-item { display: flex; gap: 13px; align-items: flex-start; padding: 12px 15px; border: 1px solid var(--line); background: #fff; margin: 10px 0; border-radius: 10px; cursor: pointer; }
.checklist .try-item input { flex: 0 0 auto; appearance: auto; accent-color: #2c755c; width: 19px; height: 19px; margin: 3px 0 0; }
.checklist .try-item:has(input:checked) { background: #eaf4ef; border-color: #c8e1d3; }
.checklist .try-item input:checked + span { color: #557565; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-top: 23px; font-size: 12px; color: #87949c; }
.site-footer a { text-decoration: none; font-weight: 730; color: #476273; }

/* Imagen a pantalla completa */
.lightbox { border: 0; padding: 0; width: min(1050px, calc(100vw - 30px)); max-width: none; max-height: calc(100dvh - 30px); color: white; border-radius: 17px; background: #0f1e2e; box-shadow: 0 26px 75px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(5,12,21,.82); backdrop-filter: blur(4px); }
.lightbox-inner { padding: 13px; }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 5px 13px; font-size: 13px; }
.lightbox-top { font-weight: 750; }
.lightbox-bottom { padding: 13px 5px 3px; color: #bac8d3; font-size: 12px; }
.lightbox-close { color: white; background: rgba(255,255,255,.12); border: 0; border-radius: 8px; width: 36px; height: 36px; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #172b3d; border-radius: 9px; min-height: 230px; }
.lightbox-image-wrap { width: 100%; height: min(70dvh, 730px); display: flex; justify-content: center; align-items: center; }
.lightbox-image-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-missing { color: #b9c6d0; }
.lightbox-prev, .lightbox-next { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); height: 47px; width: 39px; color: #fff; border: none; border-radius: 9px; background: rgba(20,30,42,.65); font-size: 30px; line-height: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: #51687a; }

@media (max-width: 1180px) {
  .page-layout { gap: 32px; grid-template-columns: 200px minmax(0,1fr); padding-inline: 28px; }
  .header-inner, .hero-inner { padding-left: 28px; padding-right: 28px; }
  .vehicle-grid { gap: 22px; }
  .card-foot { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 950px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 57px; padding-bottom: 66px; }
  .hero-decor { display: none; }
  .page-layout { display: block; max-width: 860px; padding: 42px 25px 80px; }
  .sidebar { display: none; }
  .mobile-nav { display: block; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 38; }
  .mobile-nav-track { display: flex; white-space: nowrap; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 9px 16px; }
  .mobile-nav-track::-webkit-scrollbar { display: none; }
  .mobile-nav a { display: inline-flex; align-items: center; color: #476071; text-decoration: none; padding: 7px 13px; font-size: 12px; font-weight: 720; border-radius: 999px; }
  .mobile-nav a.is-current { background: #e7eced; color: #182b3c; }
  .content-section { scroll-margin-top: 85px; }
  .gallery { position: static; }
}
@media (max-width: 650px) {
  :root { --header-height: 62px; }
  body { font-size: 15.5px; }
  .header-inner { padding: 0 19px; }
  .top-links { gap: 14px; }
  .top-links a { font-size: 11px; }
  .top-links a:last-child { display: none; }
  .site-brand { font-size: 15px; }
  .brand-mark { height: 32px; width: 32px; font-size: 21px; }
  .hero-inner { padding: 40px 23px 49px; }
  .hero h1 { font-size: clamp(2.9rem, 10.9vw, 4rem); margin: 15px 0 23px; }
  .hero-copy { font-size: 14.6px; }
  .hero-actions { gap: 8px; }
  .primary-btn, .subtle-btn { padding: 11px 13px; font-size: 11.5px; gap: 7px; }
  .page-layout { padding: 35px 18px 60px; }
  .section-head { gap: 7px; margin-bottom: 22px; padding-bottom: 17px; }
  .section-number { margin-top: 5px; width: 26px; flex-basis: 26px; }
  h2 { font-size: 24px; }
  .content-section { margin-bottom: 64px; }
  .model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 28px; }
  .card-photo { height: 123px; }
  .card-info { padding: 12px 11px 13px; }
  .card-brand { font-size: 8px; }
  .card-title { font-size: 13.5px; }
  .card-desc { font-size: 11.5px; margin-top: 7px; margin-bottom: 11px; }
  .card-foot { gap: 6px; }
  .fuel-chip { font-size: 9px; padding: 4px 7px; }
  .card-price { font-size: 11px; }
  .vehicle-detail { padding-top: 31px; padding-bottom: 31px; }
  .vehicle-detail-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .vehicle-detail-heading h3 { font-size: 24px; }
  .vehicle-grid { grid-template-columns: 1fr; gap: 17px; }
  .gallery-main { aspect-ratio: 4/3; }
  .vehicle-copy { font-size: 14px; }
  .gallery-thumb .placeholder-symbol { width: 24px; height: 24px; }
  .thumb-label { font-size: 9.5px; }
  .table-section .prose { font-size: 13px; }
  .table-scroll { border-radius: 10px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 12px 11px; }
  .lightbox { width: calc(100vw - 10px); max-height: calc(100dvh - 10px); }
  .lightbox-image-wrap { height: min(70dvh, 550px); }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}
@media (max-width: 370px) {
  .model-grid { grid-template-columns: 1fr; }
  .card-photo { height: 190px; }
  .card-title { font-size: 17px; }
  .top-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  @page { margin: 17mm; }
  :root { --bg: #fff; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .hero-actions, .mobile-nav, .sidebar, .gallery-thumbnails, .gallery-note, .gallery-zoom, .vehicle-bottom, .lightbox, .site-footer { display: none !important; }
  .hero { color: #182739; background: #fff; }
  .hero-inner { display: block; padding: 0 0 18px; }
  .hero h1 { font-size: 27pt; }
  .hero h1 em { color: #444; }
  .hero-copy { color: #333; }
  .page-layout { display: block; padding: 0; }
  .content-section { margin-bottom: 20px; }
  .vehicle-grid { grid-template-columns: 32% 68%; gap: 10px; }
  .gallery-main { width: 100%; aspect-ratio: 4/3; }
  .model-grid { display: none; }
  .comparison-table { min-width: 0 !important; font-size: 8pt; }
  .table-scroll { overflow: visible; }
  .comparison-table th, .comparison-table td { padding: 5px; }
  .vehicle-detail, .table-section { break-inside: avoid; }
}
