/* Selviva S.A.S. - rojo y dorado (casa cervecera que distribuimos) + azul marino del logo */
:root {
  --red: #C8102E;
  --red-dark: #8E0B20;
  --red-deep: #5E0715;
  --gold: #F2B230;
  --gold-dark: #C98C12;
  --cream: #FFF7EA;
  --ink: #1F1A17;
  --navy: #10284D;
  --navy-deep: #0A1A33;
  --blue: #1F6FD1;
  --sky: #3BA3E6;
  --blue-soft: #E8F1FC;
  --muted: #6B625C;
  --line: #EDE3D6;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 26, 23, .08);
  --shadow-lg: 0 24px 60px rgba(94, 7, 21, .25);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .8em;
}
.section h2 { color: var(--navy); }
.section-dark h2, .section-blue h2 { color: #fff; }
.eyebrow-gold { color: var(--gold); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-sm { padding: .55em 1.15em; font-size: .9rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(242, 178, 48, .35); }
.btn-gold:hover { background: #ffc24a; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #185bb0; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-whatsapp { background: #25D366; color: #fff; width: 100%; justify-content: center; }
.btn-whatsapp:hover { background: #1ebe5b; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-size: .56rem; font-weight: 600; letter-spacing: .26em; color: var(--red); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--blue); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.header-actions { display: flex; gap: 8px; margin-left: 22px; }
.header-actions .btn { box-shadow: none; }
.nav { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* Portada */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(242,178,48,.25), transparent 40%),
    linear-gradient(125deg, var(--red) 0%, var(--red-dark) 45%, var(--navy) 100%);
}
.hero-road { position: absolute; inset: 0; }
.hero-road svg { width: 100%; height: 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 140px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .35em; }
.hero h1 span { display: block; color: var(--gold); }
.lead { font-size: 1.15rem; max-width: 560px; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 580 / 455; object-fit: cover;
  border-radius: 28px; border: 6px solid rgba(255,255,255,.15); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow-lg);
}
.hero-truck { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: var(--red-deep); display: grid; place-items: center; flex: none; }
.hero-truck svg { width: 28px; height: 28px; }
.hero-badge small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hero-badge strong { font-family: var(--font-head); font-size: .95rem; }

/* Pedidos y pagos */
.quick { position: relative; z-index: 3; margin-top: -84px; }
.quick-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 18px; }
.quick-card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg);
  transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-5px); }
.quick-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.quick-logo { height: 64px; display: flex; align-items: center; }
.quick-logo img { max-height: 64px; width: auto; border-radius: 12px; }
.quick-logo-white img { background: #fff; padding: 8px 12px; }
.quick-icon { width: 64px; justify-content: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.quick-body { display: grid; gap: 2px; flex: 1; }
.quick-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.quick-body strong { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; line-height: 1.15; }
.quick-body span:last-child { font-size: .95rem; opacity: .85; }
.quick-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: stretch;
  font-family: var(--font-head); font-weight: 700; padding: 12px 18px; border-radius: 999px;
}
.quick-go svg { transition: transform .2s; }
.quick-card:hover .quick-go svg { transform: translateX(4px); }
.quick-bees { background: #FFE500; color: var(--ink); }
.quick-bees .quick-go { background: var(--ink); color: #FFE500; }
.quick-pay { background: var(--blue); color: #fff; }
.quick-pay .quick-go { background: #fff; color: var(--blue); }
.quick-socios { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.quick-socios .quick-go { background: var(--navy); color: #fff; }

/* Cifras */
.stats { position: relative; padding-top: 36px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0; overflow: hidden; border: 1px solid var(--line);
}
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }

/* Secciones */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--navy); color: #fff; }
.section-red { background: linear-gradient(135deg, var(--red-dark), var(--red-deep)); color: #fff; }
.section-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 70%); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p strong { color: var(--ink); }
.about-side { display: grid; gap: 18px; }
.about-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strengths li {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  font-weight: 600; font-size: .95rem;
}
.strengths li:last-child { grid-column: 1 / -1; }
.strengths svg { width: 28px; height: 28px; flex: none; color: var(--blue); }

/* Portafolio */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
  border-top: 4px solid var(--blue); transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.product-icon svg { width: 30px; height: 30px; }
.product p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Flota */
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fleet p { opacity: .8; font-size: 1.05rem; }
.fleet p strong { color: var(--gold); opacity: 1; }
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fleet-item {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  transition: border-color .25s, background .25s;
}
.fleet-item:hover { border-color: var(--gold); background: rgba(242,178,48,.08); }
.fleet-item svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 12px; }
.fleet-item h3 { margin: 0; }

/* Cobertura */
.coverage { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 20px; }
.region { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; }
.region p { color: var(--muted); font-size: .95rem; margin: 0; }
.region-main { background: var(--navy); color: #fff; border-color: var(--navy); }
.region-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.region-main .region-tag { background: var(--gold); color: var(--ink); }
.region ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.region li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.region li svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.region-main li { align-items: flex-start; line-height: 1.35; }
.region-main li span { font-weight: 400; opacity: .9; }
.region-main li strong { opacity: 1; }
.towns { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.towns li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }

/* Equipo */
.team-photo { margin: 0 0 28px; }
.team-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.team:empty { display: none; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #FDE8EB, var(--cream)); display: grid; place-items: center; color: var(--red); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo svg { width: 64px; height: 64px; opacity: .5; }
.member-info { padding: 16px 18px; }
.member-info h3 { font-size: 1.02rem; margin: 0 0 2px; }
.member-info p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Cita */
.quote { background: var(--gold); padding: 72px 0; }
.quote blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.35; color: var(--red-deep); }
.quote cite { font-style: normal; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--ink); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact > div > p { opacity: .85; font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.contact-form { background: #fff; color: var(--ink); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.contact-form h3 { margin: 0 0 4px; font-size: 1.3rem; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FFFCF7;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.form-error { color: var(--red); font-size: .88rem; margin: 0; }

/* Pie */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 64px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block !important; background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px !important; }
.footer-logo img { width: 140px; height: auto; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.social { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .8rem; opacity: .7; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

.mobile-bar { display: none; }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .hero-inner, .about, .fleet, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 560px; }
  .hero-badge { left: 16px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .coverage { grid-template-columns: 1fr 1fr; }
  .region-main { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-socios { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .quick-socios .quick-go { align-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: 4px; }
  .header-actions { margin-left: auto; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--navy-deep); box-shadow: 0 -6px 20px rgba(0,0,0,.2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 4px; color: #fff; text-decoration: none; font-weight: 600; font-size: .8rem;
  }
  .mobile-bar a:nth-child(1) { background: #FFE500; color: var(--ink); }
  .mobile-bar a:nth-child(2) { background: var(--blue); }
  .mobile-bar a:nth-child(3) { background: #25D366; }
  .wa-float { display: none; }
  body { padding-bottom: 64px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}
@media (max-width: 420px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: .6em; }
  .brand-text { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .hero-inner { padding-top: 64px; padding-bottom: 96px; }
  .hero-badge { left: 12px; bottom: 12px; padding: 8px 12px 8px 8px; }
  .hero-badge strong { font-size: .82rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:last-child { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; }
  .strengths, .cards-4, .coverage, .fleet-grid, .footer-grid, .quick-grid { grid-template-columns: 1fr; }
  .quick { margin-top: -64px; }
  .quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px; gap: 12px 14px; }
  .quick-logo { height: 48px; }
  .quick-logo img { max-height: 48px; }
  .quick-icon { width: 48px; }
  .quick-body { flex: 1 1 160px; }
  .quick-body strong { font-size: 1.3rem; }
  .quick-go { flex: 1 1 100%; padding: 10px 16px; }
  .quick-socios { flex-direction: row; }
  .contact-form { padding: 24px; }
}

/* Páginas legales */
.legal { max-width: 820px; padding: 56px 20px 96px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; color: var(--navy); scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--blue); }
.legal-meta { font-size: .9rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.legal-toc a { font-size: .85rem; text-decoration: none; background: var(--blue-soft); color: var(--navy); padding: 6px 12px; border-radius: 999px; }
.legal-toc a:hover { background: var(--blue); color: #fff; }
