:root {
  --green: #1d6b3a;
  --green-dark: #134a28;
  --green-light: #e9f3ec;
  --ink: #2b2f2c;
  --muted: #5d655f;
  --line: #d8e4dc;
  --bg: #ffffff;
  --red: #e3262d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 74, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
.svg-sprite { position: absolute; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--green-dark); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font: 600 .95rem/1 inherit;
  font-family: inherit;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green-light); color: var(--green-dark); }
.btn--small { padding: 10px 18px; font-size: .88rem; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { font-weight: 500; letter-spacing: .12em; font-size: 1.05rem; }
.brand-text span { color: var(--green); font-weight: 700; }
.globe { color: var(--green); }
.globe--sm { width: 46px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  background: radial-gradient(ellipse at top, var(--green-light), #fff 70%);
}
.globe--lg { width: 180px; height: 135px; margin: 0 auto 26px; }
.hero h1 {
  font-weight: 400;
  letter-spacing: .08em;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  color: #4a4f4c;
}
.hero h1 span { color: var(--green); font-weight: 600; }
.tagline {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-size: clamp(.72rem, 1.6vw, .95rem);
  margin: 0 0 24px;
}
.tagline i { font-style: normal; color: var(--green); margin: 0 .35em; }
.lead { max-width: 620px; margin: 0 auto 34px; font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Pilares */
.pillars { border-block: 1px solid var(--line); padding: 44px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.pillar svg {
  width: 40px; height: 40px; padding: 8px;
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
  background: var(--green-light); border-radius: 10px; margin-bottom: 12px;
}
.pillar h3 { font-size: 1.05rem; color: var(--green-dark); }
.pillar p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: #f6faf7; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700;
  color: var(--green); margin: 0 0 10px;
}
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split p { color: var(--muted); }

.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats li {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff;
}
.stats strong { display: block; font-size: 2.6rem; color: var(--green); line-height: 1; margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Centro logístico */
.section--dark { background: var(--green-dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: #9fd3b0; }
.section--dark .split p { color: #d3e6da; }
.logistics-list { list-style: none; padding: 0; margin: 22px 0 0; }
.logistics-list li { padding: 10px 0 10px 30px; position: relative; color: #d3e6da; border-top: 1px solid rgba(255, 255, 255, .12); }
.logistics-list li::before { content: "✓"; position: absolute; left: 0; color: #9fd3b0; font-weight: 700; }
.logistics-list strong { color: #fff; }
.address-card {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 28px;
  background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px;
}
.address-card svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: #9fd3b0; stroke-width: 1.6; stroke-linejoin: round; }
.address-label { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; margin: 0 0 6px; }
.section--dark .address { color: #fff; font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin: 0 0 16px; }
.logistics-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logistics-media figure { margin: 0; }
.logistics-media img, .logistics-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  background: #0d3a1f; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.logistics-media figcaption { margin-top: 10px; font-size: .82rem; color: #9fd3b0; text-align: center; }
.btn--light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--light:hover { background: var(--green-light); border-color: var(--green-light); }

/* Marcas */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.brand-card {
  flex: 1 1 200px;
  max-width: 280px;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-logo { height: 140px; display: grid; place-items: center; margin-bottom: 18px; }
.brand-logo img { max-height: 140px; width: auto; object-fit: contain; }
.brand-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.brand-cat { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--green); margin: 0 0 10px; }
.brand-card p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.brand-info { font-size: .85rem !important; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto !important; }
.brand-link { font-weight: 600; font-size: .9rem; text-decoration: none; margin-top: 4px; }

/* Marcas sin archivo de logo: emblemas en CSS */
.mark { font-weight: 800; text-align: center; }
.mark--carrefour { color: var(--green); font-size: 1.9rem; line-height: 1; letter-spacing: -.01em; font-family: Georgia, serif; }
.mark--carrefour em { display: block; font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 1.35rem; color: #2f9147; }
.mark--round {
  width: 130px; height: 130px; border-radius: 50%;
  border: 4px solid #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #111; position: relative; overflow: hidden;
}
.mark--round b { position: relative; font-size: 1.7rem; transform: rotate(-14deg); background: #fff; padding: 0 8px; border-radius: 6px; }
.mark--round small { position: relative; font-size: .62rem; color: #fff; font-weight: 700; margin-top: 6px; letter-spacing: .04em; }
.mark--bellini { background: linear-gradient(160deg, #2bb24c 0 46%, var(--red) 46%); }
.mark--bellini b { font-style: italic; font-family: Georgia, serif; }
.mark--indio { background: linear-gradient(160deg, var(--red) 0 46%, #1f9a45 46%); }
.mark--indio .num { margin: -6px 0 4px; font-size: 1rem; color: #111; font-weight: 800; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 32px; border-radius: var(--radius); background: var(--green-light); }
.service-num { font-size: .85rem; font-weight: 800; color: var(--green); letter-spacing: .1em; }
.service h3 { margin-top: 10px; color: var(--green-dark); }
.service p { color: var(--muted); margin: 0; }

/* Socios */
.partners {
  list-style: none; padding: 0; margin: 0;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
}
.partners li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 40px;
  color: #555; letter-spacing: .08em; font-size: 1.05rem;
}
.partners li + li { border-left: 1.5px solid var(--line); }
.partners svg { width: 46px; height: 40px; fill: none; stroke: var(--green); stroke-width: 2; }
.partners svg.filled { fill: #444; stroke: none; }
.partners b { display: block; font-size: 1.4rem; letter-spacing: 0; color: #222; font-weight: 600; line-height: 1; }
.partners small { font-size: .72rem; font-weight: 700; color: #222; }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--ink); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: #fff; padding: 30px; border-radius: var(--radius);
  border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.contact-form :focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form .full { grid-column: 1 / -1; }
.form-note { margin: 0; font-size: .88rem; min-height: 1.2em; }
.form-note.error { color: #b3261e; }

.contact-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.contact-form .check input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--green); flex-shrink: 0; }
.form-legal { margin: 0; font-size: .74rem; line-height: 1.5; color: var(--muted); }

/* Aviso de cookies */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15); padding: 16px 20px;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: .88rem; color: var(--muted); }
.cookie-notice .btn { flex-shrink: 0; }

/* Páginas legales */
.legal-page .site-header .header-inner { justify-content: space-between; }
.legal { width: min(820px, 100% - 32px); margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--green-dark); }
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }
.legal .lead { font-size: 1.05rem; background: var(--green-light); padding: 16px 20px; border-radius: 10px; color: var(--ink); }
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0; }
.legal-data dt { font-weight: 700; }
.legal-data dd { margin: 0; color: var(--muted); }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--green-light); }
.not-found { text-align: center; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.not-found img { margin-bottom: 20px; }
.pendiente { background: #fff3c4; color: #6b4d00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Pie */
.site-footer { background: var(--green-dark); color: #cfe3d6; padding: 44px 0; text-align: center; }
.site-footer p { margin: 4px 0; font-size: .88rem; }
.foot-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px !important; }
.foot-legal a { color: #fff; }
@media (max-width: 600px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; }
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd { margin-bottom: 10px; }
}
.motto { color: #fff; font-weight: 700; letter-spacing: .1em; font-size: 1.25rem !important; margin-bottom: 10px !important; }

/* Responsive */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .split, .services { grid-template-columns: 1fr; }
  .partners li { padding: 14px 24px; }
  .partners li + li { border-left: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 440px; }
  .nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .nav .btn { width: auto; margin: 10px 0 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 480px) {
  .pillars-grid, .stats { grid-template-columns: 1fr; }
  .brand-text { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
