/* ============================================================
   EL FILETE DE ORO — Estilos propios
   Paleta: rojo carnicero / negro cálido / dorado antiguo
   ============================================================ */

:root {
  --ink:        #241712;
  --ink-soft:   #3a2620;
  --paper:      #F7F1E6;
  --paper-alt:  #EFE4D2;
  --red:        #7A1F1D;
  --red-dark:   #4E1210;
  --red-bright: #9C2A24;
  --gold:       #B9862F;
  --gold-light: #D9AE63;
  --line:       rgba(36, 23, 18, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, Segoe UI, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }
p.no-measure { max-width: none; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); }

::selection { background: var(--gold-light); color: var(--ink); }

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

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
}

.section-eyebrow {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.bg-ink { background-color: var(--ink); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--paper); }
.bg-paper-alt { background-color: var(--paper-alt); }

/* ---------- Botones ---------- */
.btn-brand-red {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--paper);
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 3px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-brand-red:hover {
  background-color: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn-brand-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: .55rem 1.25rem;
  border-radius: 3px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-brand-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-brand-outline {
  background: transparent;
  border: 1.5px solid var(--paper);
  color: var(--paper);
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 3px;
}
.btn-brand-outline:hover { background: rgba(247,241,230,.1); color: var(--paper); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper-alt);
  font-size: .82rem;
  padding: .45rem 0;
  letter-spacing: .01em;
}
.topbar a { color: var(--gold-light); }
.topbar .bi { color: var(--gold); margin-right: .3rem; }
.topbar-sep { display: inline-block; width: 1px; height: .9em; background: rgba(247,241,230,.25); margin: 0 .9rem; vertical-align: middle; }

/* ---------- Navegación ---------- */
.main-nav {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  transition: padding .25s ease, box-shadow .25s ease;
}
.main-nav.scrolled {
  padding: .4rem 0;
  box-shadow: 0 4px 18px rgba(36,23,18,.08);
}

.navbar-brand { display: flex; align-items: center; gap: .65rem; }
.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-tagline { font-size: .68rem; letter-spacing: .12em; color: var(--red); }

.main-nav .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--red); }
.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .1rem;
  height: 2px;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.hero::before {
  /* textura sutil tipo papel/veta, sin depender de una imagen externa */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(185,134,47,.05) 0px, rgba(185,134,47,.05) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.hero-kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: var(--paper);
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1.15rem;
  color: #E4D9C6;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.8rem; border-top: 1px solid rgba(247,241,230,.15); padding-top: 1.6rem; }
.hero-fact { display: flex; align-items: baseline; gap: .5rem; }
.hero-fact strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }
.hero-fact span { font-size: .85rem; color: #C9BBA4; }

/* Sello / medallón de calidad — elemento gráfico distintivo, sin imagen */
.seal-wrap { display: flex; align-items: center; justify-content: center; }
.quality-seal {
  width: min(320px, 80%);
  aspect-ratio: 1/1;
  position: relative;
}
.quality-seal svg { width: 100%; height: 100%; }
.seal-spin { animation: spin 26s linear infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .seal-spin { animation: none; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Rasgos / por qué elegirnos ---------- */
.feature-row { border-top: 1px solid var(--line); }
.feature-item {
  border-left: 2px solid var(--gold);
  padding: .2rem 0 .2rem 1.3rem;
  height: 100%;
}
.feature-item .bi { font-size: 1.6rem; color: var(--red); margin-bottom: .7rem; display: block; }
.feature-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature-item p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }

/* ---------- Tarjetas de categoría (catálogo) ---------- */
.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.category-card .cat-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}
.category-card .cat-body { padding: 1.4rem 1.5rem 1.6rem; flex-grow: 1; display: flex; flex-direction: column; }
.category-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.category-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.category-card .cat-tag {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: .15rem .6rem;
  border-radius: 2px;
  margin-bottom: .8rem;
}
.category-card .cat-note { margin-top: auto; font-size: .82rem; color: #8a7a68; }

/* Franja de categorías destacadas en Home */
.mini-cat {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mini-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mini-cat:hover img { transform: scale(1.06); }
.mini-cat .mini-cat-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(36,23,18,.88), transparent);
  color: var(--paper);
  padding: 1.1rem .9rem .8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Proceso (Nosotros) ---------- */
.process-step { position: relative; padding-top: .2rem; }
.process-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .6rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.process-step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- CTA franja ---------- */
.cta-strip {
  background: var(--red);
  color: var(--paper);
  padding: 2.6rem 0;
}
.cta-strip-title { font-size: 1.6rem; color: var(--paper); }
.cta-strip p { color: #F0DFCB; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9BBA4; padding: 4rem 0 2rem; }
.footer-brand .brand-name, .footer-brand .brand-tagline { color: var(--paper); }
.footer-brand .brand-tagline { color: var(--gold-light); }
.footer-about { font-size: .92rem; max-width: 32ch; color: #B7A992; }
.footer-heading { font-family: var(--font-display); color: var(--paper); font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: #C9BBA4; font-size: .92rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-address { font-style: normal; font-size: .92rem; color: #C9BBA4; line-height: 1.9; }
.footer-address a { color: #C9BBA4; }
.footer-address a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(247,241,230,.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-divider { border-color: rgba(247,241,230,.15); margin: 2.2rem 0 1.4rem; }
.footer-copy { font-size: .82rem; color: #8f8168; }

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-bright); color: var(--paper); }

/* ---------- Página interior: encabezado de página ---------- */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 3.2rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(185,134,47,.05) 0px, rgba(185,134,47,.05) 1px, transparent 1px, transparent 14px);
}
.page-header .breadcrumb { --bs-breadcrumb-divider: '/'; margin-bottom: .8rem; }
.page-header .breadcrumb a { color: var(--gold-light); }
.page-header .breadcrumb-item.active { color: #C9BBA4; }
.page-header h1 { color: var(--paper); margin-bottom: .6rem; }
.page-header p { color: #E4D9C6; max-width: 60ch; }

/* ---------- Formulario de contacto ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.2rem;
}
.form-label { font-weight: 600; font-size: .92rem; }
.form-control, .form-select {
  border-radius: 2px;
  border-color: var(--line);
  padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 .2rem rgba(122,31,29,.12);
}
.form-note { font-size: .8rem; color: #8a7a68; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .bi { color: var(--red); font-size: 1.25rem; margin-top: .1rem; }
.info-list h3 { font-size: 1rem; margin-bottom: .15rem; }
.info-list p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.map-frame { border: 1px solid var(--line); width: 100%; height: 320px; }

.alert-brand-success { background: #EFE9D9; border: 1px solid var(--gold); color: var(--ink); }
.alert-brand-error { background: #F3E1DF; border: 1px solid var(--red); color: var(--ink); }

/* ---------- Utilidades ---------- */
.rule { border: 0; border-top: 1px solid var(--line); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.img-frame { border: 1px solid var(--line); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
