/* Enso Renting — hoja de estilos de la web pública.
   Colores y tipografías del sistema de diseño de la marca. */

@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("../fonts/ShipporiMincho-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --surface: #f4f0e8;
  --surface-raised: #fbf9f5;
  --surface-sunken: #e4ded2;
  --line: #d6d0c6;
  --ink: #141210;
  --ink-muted: #4a4540;
  --ink-muted-dark: #b5ada2;
  --shu: #d52b1e;
  --shu-strong: #b8251a;
  --shu-text: #b8251a;
  --shu-text-dark: #f26b5e;
  --shu-soft: #f8e3df;
  --washi: #f4f0e8;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --shadow-paper: 0 1px 2px rgba(20,18,16,.06), 0 8px 24px rgba(20,18,16,.06);
  --radius-sm: 3px; --radius-md: 6px; --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.625; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--shu-text); }
a:hover { color: #8f1d14; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 40px; line-height: 48px; font-weight: 900; }
h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--washi); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 880px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-lg { padding-top: 112px; padding-bottom: 112px; }
.section-xl { padding-top: 128px; padding-bottom: 128px; gap: 32px; }
.center { align-items: center; text-align: center; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.lead { font-size: 18px; line-height: 30px; font-weight: 500; color: var(--ink-muted); max-width: 560px; }

.kicker { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .4em; margin-bottom: 16px; }
.kicker.accent { color: var(--shu-text); }
.kicker-line { display: flex; align-items: center; gap: 16px; }
.kicker-line::before { content: ""; width: 48px; height: 1px; background: var(--ink); }
.kicker-dark { color: var(--shu-text-dark); margin-bottom: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: var(--radius-md); font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-strong); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--washi); }
.btn-light { background: var(--washi); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.center-actions { justify-content: center; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.main-nav a:hover { color: var(--shu-text); }

/* Portada */
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 112px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-text .kicker { margin-bottom: 0; }
.display { font-size: 64px; line-height: 68px; font-weight: 900; letter-spacing: -.01em; max-width: 640px; }
.hero-art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.enso-box { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; }
.enso { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card { position: absolute; left: 45.5%; top: 50%; transform: translate(-50%, -50%); width: 52%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.card-kicker { font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .3em; color: var(--ink-muted); }
.card-big { font-size: 32px; line-height: 38px; font-weight: 900; }
.hero-card .small { font-size: 13px; line-height: 20px; }
.seal { position: absolute; right: 6%; bottom: 8%; width: 64px; height: 64px; background: var(--ink); color: var(--washi); border-radius: var(--radius-sm); transform: rotate(-3deg); display: flex; align-items: center; justify-content: center; font: 800 40px/1 var(--mincho); }

/* Bandas y secciones */
.band { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-sunken { background: var(--surface-sunken); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head > div { max-width: 640px; }
.head-note { max-width: 420px; }

.grid-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.feature { background: var(--surface-raised); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature p, .tile p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.steps p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.kanji { font: 800 40px/44px var(--mincho); color: var(--shu); }
.kanji-dark { font-size: 32px; line-height: 32px; color: var(--shu-text-dark); }

/* Formulario */
.split { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 64px; }
.split-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.split-text .kicker { margin-bottom: 0; }
.card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-paper); }
.form { flex: 1 1 480px; min-width: 0; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 22px; font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { font: 400 16px/1.4 var(--sans); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
[aria-invalid=true] { border-color: var(--shu-strong) !important; }
.err { font-size: 13px; line-height: 20px; color: var(--shu-text); }
.form-alert { grid-column: 1 / -1; background: var(--shu-soft); color: var(--shu-text); border-radius: var(--radius-md); padding: 12px 16px; font-weight: 700; font-size: 15px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; color: var(--ink-muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.btn { width: 100%; }

/* Equipos */
.grid-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile svg { width: 28px; height: 28px; }
.tile h3 { font-size: 18px; line-height: 26px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: -16px; }
.chips-label { font-size: 14px; font-weight: 700; padding-right: 8px; }
.chip { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dark-panel { background: var(--ink); color: var(--washi); border-radius: var(--radius-lg); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.dark-panel > div { max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.dark-panel p { color: var(--ink-muted-dark); }
.dark-panel .kicker { color: var(--shu-text-dark); }
.h3-lg { font-size: 28px; line-height: 36px; }

/* Filosofía */
.philosophy { background: var(--ink); color: var(--washi); position: relative; overflow: hidden; }
.phil-enso { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 620px; opacity: .12; }
.philosophy .section { position: relative; }
.quote { font-size: 36px; line-height: 50px; font-weight: 700; max-width: 820px; }
.phil-note { color: var(--ink-muted-dark); max-width: 560px; }

/* Preguntas */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; line-height: 26px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 22px; font-size: 24px; font-weight: 400; color: var(--shu-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-muted); }

.cta { border-top: 1px solid var(--line); }
.cta img { width: 88px; }
.h2-lg { font-size: 44px; line-height: 52px; max-width: 720px; }

/* Páginas de texto (legales, gracias…) */
.page { max-width: 820px; margin: 0 auto; padding: 72px 24px 112px; }
.page h1 { font-size: 44px; line-height: 52px; font-weight: 900; margin-bottom: 12px; }
.page h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-muted); margin-bottom: 12px; }
.page ul { padding-left: 20px; }
.page table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { width: 34%; color: var(--ink); }
.updated { font-size: 14px; color: var(--ink-muted); }
.pending { background: var(--shu-soft); color: var(--shu-text); padding: 0 4px; border-radius: var(--radius-sm); }
.message { max-width: 640px; margin: 0 auto; padding: 120px 24px 140px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.message img { width: 96px; }
.message h1 { font-size: 40px; line-height: 48px; font-weight: 900; }

/* Pie */
.site-footer { background: var(--ink); color: var(--ink-muted-dark); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.footer-brand img { width: 200px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--washi); }
.site-footer a { color: var(--ink-muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--washi); }
.footer-bottom { border-top: 1px solid #34302b; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 24px; }
.legal-links a { text-decoration: underline; }

/* Móvil */
@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .grid-features, .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-text { position: static; }
}
@media (max-width: 640px) {
  .grid-features, .grid-cards { grid-template-columns: 1fr; }
  h2 { font-size: 30px; line-height: 38px; }
  .display { font-size: 40px; line-height: 46px; }
  .card-big { font-size: 24px; line-height: 30px; }
  .card-kicker { letter-spacing: .2em; }
  .hero-card { width: 44%; }
  .hero-card .small { font-size: 12px; line-height: 18px; }
  .hero-row { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .section, .section-lg { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .section-xl { padding-top: 80px; padding-bottom: 80px; }
  .quote { font-size: 26px; line-height: 38px; }
  .h2-lg { font-size: 32px; line-height: 40px; }
  .form, .dark-panel { padding: 24px; }
  .brand img { height: 32px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .page h1 { font-size: 32px; line-height: 40px; }
  .page th { width: auto; }
}
