/* ==========================================================================
   VABENPAREI SL — hoja de estilos principal
   ========================================================================== */

:root {
  --color-bg: #fbf8f3;
  --color-bg-alt: #f3ece1;
  --color-surface: #ffffff;
  --color-ink: #23201c;
  --color-ink-soft: #5c554c;
  --color-line: #e2d8c9;
  --color-terracotta: #a8492b;
  --color-terracotta-dark: #8a3a21;
  --color-olive: #5d6b45;
  --color-sand: #d8b981;
  --color-dark: #2a2622;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(35, 32, 28, .06);
  --shadow: 0 6px 24px rgba(35, 32, 28, .08);

  --font-head: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-terracotta); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--color-terracotta-dark); }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--color-terracotta);
  margin: 0 0 .7em;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
}

/* --------------------------------------------------------- Botones ------ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn + .btn { margin-left: 10px; }

.btn-primary {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover,
.btn-outline:focus {
  background: var(--color-ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-ghost:hover,
.btn-ghost:focus { background: rgba(255, 255, 255, .14); color: #fff; }

.btn-block {
  display: block;
  width: 100%;
  margin: 18px 0 0;
}
.btn-block + .btn-block { margin-left: 0; }

/* -------------------------------------------------------- Cabecera ------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 243, .96);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-text small {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-ink-soft);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a:focus { background: var(--color-bg-alt); color: var(--color-ink); }

.site-nav a.is-active {
  color: var(--color-terracotta);
  font-weight: 700;
}

.nav-cta a {
  margin-left: 8px;
  border: 1px solid var(--color-terracotta);
  border-radius: 999px;
  color: var(--color-terracotta);
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta a:hover,
.nav-cta a:focus { background: var(--color-terracotta); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* ------------------------------------------------------ Migas de pan ---- */
.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  font-size: .85rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 11px 0;
}
.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--color-ink-soft);
}
.breadcrumb a { color: var(--color-ink-soft); }
.breadcrumb [aria-current] { color: var(--color-ink); font-weight: 600; }

/* ------------------------------------------------------------ Hero ------ */
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 185, 129, .35), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(168, 73, 43, .18), transparent 46%),
    linear-gradient(170deg, var(--color-bg-alt), var(--color-bg) 70%);
  border-bottom: 1px solid var(--color-line);
}
.hero-inner { padding: clamp(50px, 9vw, 96px) var(--gutter); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-bottom: 30px; }

.hero-actions { margin-bottom: 44px; }

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.hero-facts li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hero-facts span { font-size: .88rem; color: var(--color-ink-soft); }

/* ------------------------------------------------- Cabecera de página --- */
.page-head {
  background: linear-gradient(170deg, var(--color-bg-alt), var(--color-bg));
  border-bottom: 1px solid var(--color-line);
  padding: clamp(40px, 6vw, 70px) 0;
}
.page-head-legal h1 { max-width: 20ch; }
.updated { font-size: .85rem; color: var(--color-ink-soft); margin: 0; }

/* -------------------------------------------------------- Secciones ----- */
.section { padding: clamp(46px, 7vw, 82px) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 70ch; margin-bottom: 38px; }
.section-intro { color: var(--color-ink-soft); margin: 0; }
.section-foot { margin: 32px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--color-ink-soft); font-size: .96rem; }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: .92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-aside { order: 1; }

.check-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-olive);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.value h3 { margin-bottom: .3em; font-size: 1.05rem; }
.value p { font-size: .94rem; color: var(--color-ink-soft); }

.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.info-box + .info-box { margin-top: 20px; }
.info-box h2 { font-size: 1.15rem; }
.info-box-soft { background: var(--color-bg-alt); }

.info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
}
.info-row span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-ink-soft);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  color: #fff;
  box-shadow: var(--shadow);
}
.panel p { margin: 0; font-size: .98rem; }
.panel-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.panel-terracotta { background: linear-gradient(150deg, var(--color-terracotta), var(--color-terracotta-dark)); }
.panel-olive { background: linear-gradient(150deg, var(--color-olive), #3f4a2f); }
.panel-sand { background: linear-gradient(150deg, var(--color-sand), #b7914f); color: var(--color-dark); }

.cta-band { background: var(--color-dark); color: #f5efe6; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(245, 239, 230, .8); margin: 0; max-width: 56ch; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------- Contacto ----- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
}
.req { color: var(--color-terracotta); }
.opt { font-weight: 400; color: var(--color-ink-soft); font-size: .85rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-terracotta);
  background: #fff;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3261e;
  background: #fdf4f3;
}

.field-error {
  margin: 6px 0 0;
  font-size: .84rem;
  color: #b3261e;
  min-height: 0;
}

.field-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 10px;
  align-items: start;
}
.field-check input { margin-top: 5px; width: 18px; height: 18px; }
.field-check label { font-weight: 400; font-size: .9rem; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: .82rem; color: var(--color-ink-soft); margin: 14px 0 0; }

.form-status {
  margin-top: 14px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: .93rem;
}
.form-status.is-ok {
  padding: 13px 16px;
  background: #eef4e8;
  border: 1px solid #c3d6b2;
  color: #33502a;
}
.form-status.is-error {
  padding: 13px 16px;
  background: #fdf0ef;
  border: 1px solid #e6bdba;
  color: #8c241d;
}

/* ------------------------------------------------- Páginas legales ------ */
.legal { max-width: 78ch; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  padding-top: .9em;
  border-top: 1px solid var(--color-line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal ul { padding-left: 20px; color: var(--color-ink-soft); }
.legal li { margin-bottom: 8px; }
.legal p { color: var(--color-ink-soft); }

.table-wrap { overflow-x: auto; margin: 0 0 1.1em; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 620px;
  background: var(--color-surface);
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--color-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--color-bg-alt); font-weight: 700; }

/* ------------------------------------------------------------ Pie ------- */
.site-footer {
  background: var(--color-dark);
  color: #cfc7bb;
  padding-top: 54px;
  margin-top: 0;
  font-size: .93rem;
}
.site-footer a { color: #e9ded0; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 42px;
}
.footer-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1.2em;
}

.company-data { margin: 0; }
.company-data dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9b9287;
  margin-top: 12px;
}
.company-data dt:first-child { margin-top: 0; }
.company-data dd { margin: 2px 0 0; color: #e4dad0; }

.company-data-light dt { color: var(--color-ink-soft); }
.company-data-light dd { color: var(--color-ink); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0 26px;
}
.footer-bottom p { margin: 0 0 6px; font-size: .82rem; color: #9b9287; }
.footer-bottom p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- Aviso de cookies ----- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--color-dark);
  color: #e4dad0;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 22px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.cookie-inner p { margin: 0; font-size: .88rem; max-width: 70ch; }
.cookie-inner a { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: .88rem; }
.cookie-actions .btn + .btn { margin-left: 0; }

/* ------------------------------------------------------- Responsive ----- */
@media (max-width: 900px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-reverse .split-text { order: 0; }
  .split-reverse .split-aside { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
    padding: 10px var(--gutter) 18px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 10px; }
  .nav-cta a { margin: 8px 0 0; text-align: center; }

  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { display: block; width: 100%; }
  .btn + .btn { margin: 10px 0 0; }
  .hero-actions .btn { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie-inner { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .cookie-banner, .breadcrumb, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
