/*
Theme Name: MADELUM
Theme URI: https://madelumsrl.com
Author: MADELUM S.R.L.
Description: Tema a medida para MADELUM S.R.L. — Distribución de Alimentos y Bebidas.
Version: 1.0
Text Domain: madelum
*/

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

:root {
  --navy:    #0D1B2A;
  --steel:   #1B2D3E;
  --slate:   #263B50;
  --gold:    #B8963E;
  --gold-lt: #D4AF5A;
  --grey:    #8A9BB0;
  --off-white: #F5F5F0;
  --white:   #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px;
  height: 72px;
  border-bottom: 1px solid rgba(184,150,62,0.15);
}

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-name {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--off-white);
}
.nav-brand-sub {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.nav-links {
  display: flex; gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.6);
  text-decoration: none;
  transition: color 0.3s;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--off-white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 11px 26px;
  text-decoration: none;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold-lt); }

/* ── HERO ───────────────────────────────────────────────────── */
#inicio {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 150px;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,150,62,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,150,62,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-accent {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, var(--steel) 0%, var(--slate) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-accent-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 14.8%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.hero-dots {
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  opacity: 0.07;
}
.hero-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--off-white);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 64px;
  max-width: 780px;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--off-white);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-title strong {
  font-weight: 400;
  display: block;
  color: var(--white);
}

.hero-desc {
  font-size: 15px;
  font-weight: 200;
  line-height: 1.85;
  color: rgba(245,245,240,0.6);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.btn-primary {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  border: 1px solid rgba(245,245,240,0.25);
  padding: 15px 36px;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex;
  border-top: 1px solid rgba(184,150,62,0.15);
  opacity: 0; animation: fadeUp 1s 0.7s forwards;
}
.stat-item {
  flex: 1;
  padding: 32px 64px;
  border-right: 1px solid rgba(184,150,62,0.1);
  display: flex; align-items: center; gap: 20px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.4);
  line-height: 1.5;
}

/* ── SHARED ─────────────────────────────────────────────────── */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NOSOTROS ────────────────────────────────────────────────── */
#nosotros {
  padding: 120px 64px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.nosotros-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 28px;
}
.nosotros-text h2 em { font-style: italic; color: var(--gold); }

.nosotros-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #4A5A6B;
  margin-bottom: 20px;
}

.nosotros-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 40px;
}

.pillar {
  background: var(--off-white);
  padding: 28px 24px;
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.pillar:hover { border-color: var(--gold); background: #EEEEE8; }
.pillar h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}
.pillar p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.7;
  margin: 0;
}

.nosotros-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #E8E8E2;
  align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.6;
  min-width: 70px;
  line-height: 1;
  padding-top: 2px;
}
.timeline-body h5 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-body p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  margin: 0;
}

/* ── CATEGORIAS ──────────────────────────────────────────────── */
#categorias {
  background: var(--navy);
  padding: 120px 64px;
}

.categorias-header {
  max-width: 1300px;
  margin: 0 auto 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.categorias-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 300;
  color: var(--off-white);
}
.categorias-header h2 em { font-style: italic; color: var(--gold); }
.categorias-header p {
  max-width: 340px;
  font-size: 13px;
  color: rgba(245,245,240,0.5);
  line-height: 1.8;
}

.cat-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.cat-card {
  background: var(--steel);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
  cursor: default;
}
.cat-card:hover { background: var(--slate); }

.cat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}
.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  font-size: 32px;
  margin-bottom: 24px;
  display: block;
  opacity: 0.85;
}
.cat-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.cat-card p {
  font-size: 12.5px;
  color: rgba(245,245,240,0.45);
  line-height: 1.8;
  margin-bottom: 24px;
}
.cat-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-tag {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,150,62,0.3);
  padding: 4px 10px;
}

/* ── MARCAS ──────────────────────────────────────────────────── */
#marcas {
  padding: 120px 64px;
  background: var(--off-white);
}

.marcas-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.marcas-header { margin-bottom: 72px; }
.marcas-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 12px;
}
.marcas-header h2 em { font-style: italic; color: var(--gold); }
.marcas-header p {
  font-size: 14px;
  color: var(--grey);
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (min-width: 1100px) {
  .marcas-grid { grid-template-columns: repeat(5, 1fr); }
}

.marca-card {
  background: var(--white);
  padding: 52px 44px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.marca-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(13,27,42,0.08);
}

.marca-category {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.marca-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.marca-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 24px;
}
.marca-detail {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}
.marca-detail::after {
  content: '→';
  transition: transform 0.3s;
}
.marca-detail:hover { opacity: 1; color: var(--gold); }
.marca-detail:hover::after { transform: translateX(4px); }

/* ── CLIENTES ─────────────────────────────────────────────────── */
#clientes {
  padding: 100px 64px;
  background: var(--navy);
}

.clientes-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.clientes-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 300;
  color: var(--off-white);
  margin-bottom: 12px;
}
.clientes-inner h2 em { font-style: italic; color: var(--gold); }
.clientes-inner > p {
  font-size: 13px;
  color: rgba(245,245,240,0.45);
  margin-bottom: 64px;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 72px;
}

.cliente-card {
  background: var(--steel);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.3s;
}
.cliente-card:hover { background: var(--slate); }
.cliente-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(245,245,240,0.65);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.cliente-card span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-top: 6px;
  font-family: 'Jost', sans-serif;
}

.clientes-note {
  font-size: 12px;
  color: rgba(245,245,240,0.3);
  letter-spacing: 0.1em;
}

/* ── CONTACTO ────────────────────────────────────────────────── */
#contacto {
  padding: 120px 64px;
  background: var(--white);
}

.contacto-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.contacto-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}
.contacto-info h2 em { font-style: italic; color: var(--gold); }
.contacto-info > p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.9;
  margin-bottom: 48px;
}

.contact-items {
  display: flex; flex-direction: column; gap: 0;
}
.contact-item {
  padding: 24px 0;
  border-bottom: 1px solid #E8E8E2;
  display: flex; align-items: flex-start; gap: 20px;
}
.contact-item:first-child { border-top: 1px solid #E8E8E2; }
.ci-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 80px;
  padding-top: 3px;
}
.ci-value {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.7;
}
.ci-value a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s;
}
.ci-value a:hover { color: var(--gold); }

.contact-form-wrap { }
.contact-form-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 32px;
}

.contact-form {
  display: grid; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid #D8D8D2;
  border-radius: 0;
  padding: 16px 20px;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); background: var(--white); }
.contact-form textarea { height: 130px; resize: none; }

.contact-form button {
  background: var(--navy);
  color: var(--off-white);
  border: none;
  padding: 18px 40px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}
.contact-form button:hover { background: var(--gold); transform: translateY(-1px); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 56px 64px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(184,150,62,0.12);
}

.footer-brand .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-brand .logo-sub {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.35);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 12.5px;
  color: rgba(245,245,240,0.4);
  line-height: 1.9;
}

.footer-col h6 {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(245,245,240,0.45);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245,245,240,0.2);
}
.footer-bottom a {
  color: rgba(245,245,240,0.2);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--gold); }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 0 24px; height: 64px; }
  .nav-links, .nav-cta { display: none; }

  #inicio { min-height: 100svh; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero-content { padding: 0 24px; padding-top: 80px; padding-bottom: 40px; }
  .hero-accent { display: none; }
  .hero-stats { position: static; flex-direction: column; }
  .stat-item { padding: 20px 24px; border-right: none; border-bottom: 1px solid rgba(184,150,62,0.1); }

  #nosotros { grid-template-columns: 1fr; gap: 48px; padding: 80px 24px; }
  #categorias { padding: 80px 24px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .categorias-header { flex-direction: column; }
  #marcas { padding: 80px 24px; }
  .marcas-grid { grid-template-columns: 1fr; }
  #clientes { padding: 80px 24px; }
  .clientes-grid { grid-template-columns: 1fr 1fr; }
  #contacto { padding: 80px 24px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 48px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nosotros-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
