﻿/* ─── RESET & TOKENS ─────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

:root {
  --gold:    #8b6814;
  --gold-lt: #a8862a;
  --dark:    #0A0A0A;
  --dark2:   #111111;
  --dark3:   #1A1A18;
  --mid:     #2A2A25;
  --text:    #D4D0C8;
  --white:   #F5F3EE;
  --red:     #8B1A1A;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ─────────────────────────────────────── */
.cursor {
  position:fixed; top:0; left:0; width:14px; height:14px;
  background:var(--gold); border-radius:50%;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  mix-blend-mode:difference;
}
.cursor-ring {
  position:fixed; top:0; left:0; width:38px; height:38px;
  border:1px solid rgba(139, 104, 20,0.5); border-radius:50%;
  pointer-events:none; z-index:9998;
  transform:translate(-50%,-50%);
  transition:transform 0.12s ease-out;
}

/* ─── NAVBAR ─────────────────────────────────────── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.2rem 3rem;
  background:linear-gradient(180deg,rgba(0,0,0,0.92) 0%,transparent 100%);
  transition:background 0.4s;
}
nav.scrolled { background:rgba(10,10,10,0.97); border-bottom:1px solid rgba(139, 104, 20,0.15); }

.nav-logo { display:flex; flex-direction:column; line-height:1; text-decoration:none; }
.nav-logo span:first-child {
  font-family:'Bebas Neue',sans-serif; font-size:1.6rem;
  letter-spacing:0.12em; color:var(--gold);
}
.nav-logo span:last-child {
  font-family:'Barlow Condensed',sans-serif; font-size:0.65rem;
  letter-spacing:0.35em; color:var(--text); text-transform:uppercase; margin-top:2px;
}
.nav-links { display:flex; gap:2.5rem; list-style:none; }
.nav-links a {
  color:var(--text); text-decoration:none;
  font-family:'Barlow Condensed',sans-serif;
  font-size:0.78rem; letter-spacing:0.25em; text-transform:uppercase;
  position:relative; padding-bottom:3px; transition:color 0.3s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; width:0; height:1px;
  background:var(--gold); transition:width 0.3s;
}
.nav-links a:hover,.nav-links a.active { color:var(--gold); }
.nav-links a:hover::after,.nav-links a.active::after { width:100%; }
.nav-cta {
  font-family:'Barlow Condensed',sans-serif; font-size:0.75rem;
  letter-spacing:0.2em; text-transform:uppercase;
  padding:0.6rem 1.4rem; border:1px solid var(--gold);
  color:var(--gold); background:transparent; cursor:none;
  transition:background 0.3s,color 0.3s;
}
.nav-cta:hover { background:var(--gold); color:var(--dark); }

/* ─── PAGE HERO ──────────────────────────────────── */
#page-hero {
  position:relative; height:70vh; min-height:520px;
  display:flex; align-items:flex-end;
  overflow:hidden;
}
.page-hero-bg {
  position:absolute; inset:0;
  background:
    linear-gradient(130deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.7) 100%),
    var(--r2-nosotros-hero) center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{transform:scale(1)} to{transform:scale(1.05)} }
.page-hero-bg::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(10,10,10,1) 100%);
}

.page-hero-content {
  position:relative; z-index:2;
  padding:0 4rem 5rem;
}
.breadcrumb {
  display:flex; align-items:center; gap:0.6rem; margin-bottom:1.5rem;
  opacity:0; animation:fadeUp 0.7s 0.2s forwards;
}
.breadcrumb a,.breadcrumb span {
  font-family:'Barlow Condensed',sans-serif; font-size:0.68rem;
  letter-spacing:0.3em; text-transform:uppercase; color:rgba(212,208,200,0.45);
  text-decoration:none; transition:color 0.3s;
}
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb .sep { color:rgba(139, 104, 20,0.4); font-size:0.55rem; }
.breadcrumb .current { color:var(--gold); }

.page-hero-eyebrow {
  display:flex; align-items:center; gap:1rem; margin-bottom:1rem;
  opacity:0; animation:fadeUp 0.7s 0.35s forwards;
}
.page-hero-eyebrow .line { width:36px; height:1px; background:var(--gold); }
.page-hero-eyebrow span {
  font-family:'Barlow Condensed',sans-serif; font-size:0.68rem;
  letter-spacing:0.4em; text-transform:uppercase; color:var(--gold);
}
.page-hero-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(4rem,9vw,8.5rem);
  line-height:0.92; letter-spacing:0.02em; color:var(--white);
  opacity:0; animation:fadeUp 0.8s 0.5s forwards;
}
.page-hero-title .outline {
  -webkit-text-stroke:1px var(--white); color:transparent;
}
.page-hero-sub {
  max-width:500px; margin-top:1.2rem;
  font-size:1rem; color:rgba(212,208,200,0.7); line-height:1.7;
  opacity:0; animation:fadeUp 0.8s 0.7s forwards;
}

/* ─── FUNDACION STRIP ────────────────────────────── */
#fundacion-strip {
  background:var(--gold);
  display:grid; grid-template-columns:repeat(4,1fr);
}
.strip-item {
  padding:2rem; text-align:center;
  border-right:1px solid rgba(0,0,0,0.15);
}
.strip-item:last-child { border-right:none; }
.strip-num {
  font-family:'Bebas Neue',sans-serif; font-size:2.6rem;
  color:var(--dark); line-height:1;
}
.strip-label {
  font-family:'Barlow Condensed',sans-serif; font-size:0.62rem;
  letter-spacing:0.25em; text-transform:uppercase; color:rgba(10,10,10,0.6);
  margin-top:0.25rem;
}

/* ─── SHARED HELPERS ─────────────────────────────── */
.section-tag {
  font-family:'Barlow Condensed',sans-serif; font-size:0.65rem;
  letter-spacing:0.4em; text-transform:uppercase; color:var(--gold);
  display:flex; align-items:center; gap:0.8rem; margin-bottom:1rem;
}
.section-tag::before { content:''; width:28px; height:1px; background:var(--gold); }
.section-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.8rem,5vw,5rem);
  line-height:0.95; color:var(--white); letter-spacing:0.02em;
}
.section-body {
  font-size:0.95rem; line-height:1.85; color:rgba(212,208,200,0.75);
}
.reveal {
  opacity:0; transform:translateY(28px);
  transition:opacity 0.7s ease,transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }
.rd1{transition-delay:0.1s} .rd2{transition-delay:0.2s}
.rd3{transition-delay:0.3s} .rd4{transition-delay:0.4s}

/* ─── HISTORIA SECTION ───────────────────────────── */
#historia {
  display:grid; grid-template-columns:1fr 1fr;
  min-height:90vh;
}
.historia-text {
  background:var(--dark2); padding:7rem 5rem;
  display:flex; flex-direction:column; justify-content:center;
}
.historia-text .section-body { margin-top:1.5rem; max-width:480px; }
.historia-text .section-body + .section-body { margin-top:1rem; }

.historia-visual {
  position:relative; overflow:hidden;
}
.historia-img {
  position:absolute; inset:-10%;
  background:
    linear-gradient(135deg,rgba(139,26,26,0.25) 0%,rgba(0,0,0,0.4) 100%),
    var(--r2-nosotros-historia) center/cover no-repeat;
  will-change:transform;
}
.historia-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg,var(--dark2) 0%,transparent 30%);
}
.historia-date-badge {
  position:absolute; bottom:4rem; right:3rem; z-index:2;
  border:1px solid rgba(139, 104, 20,0.4); padding:2rem 2.5rem; text-align:center;
  background:rgba(10,10,10,0.7); backdrop-filter:blur(6px);
}
.historia-date-badge .big {
  font-family:'Bebas Neue',sans-serif; font-size:3.5rem; color:var(--gold); line-height:1;
}
.historia-date-badge .small {
  font-family:'Barlow Condensed',sans-serif; font-size:0.6rem;
  letter-spacing:0.3em; text-transform:uppercase; color:var(--text); margin-top:0.3rem;
}

/* ─── ORGANIZACIÓN PARALLAX ──────────────────────── */
#organizacion {
  position:relative; min-height:65vh; padding:0;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.org-parallax {
  position:absolute; inset:-15%;
  background:
    linear-gradient(rgba(0,0,0,0.72),rgba(0,0,0,0.72)),
    var(--r2-nosotros-organizacion-parallax) center/cover no-repeat;
  will-change:transform;
}
.org-content {
  position:relative; z-index:2; padding:6rem 4rem;
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; max-width:1100px; width:100%;
}
.org-block {}
.org-block .section-title { font-size:clamp(2.4rem,4vw,4rem); margin-bottom:1.2rem; }

.sucursales-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:0.5rem; margin-top:1.5rem;
}
.sucursal-tag {
  font-family:'Barlow Condensed',sans-serif; font-size:0.68rem;
  letter-spacing:0.15em; text-transform:uppercase;
  color:rgba(212,208,200,0.6); padding:0.4rem 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
  transition:color 0.3s;
}
.sucursal-tag:hover { color:var(--gold); }

/* ─── MISIÓN/VISIÓN ──────────────────────────────── */
#mision-vision {
  background:var(--dark3);
  display:grid; grid-template-columns:1fr 1fr;
}
.mv-block {
  padding:6rem 5rem;
  border-right:1px solid rgba(255,255,255,0.05);
  position:relative; overflow:hidden;
}
.mv-block:last-child { border-right:none; }
.mv-block::before {
  content:attr(data-letter);
  position:absolute; top:-1rem; right:-0.5rem;
  font-family:'Bebas Neue',sans-serif; font-size:14rem;
  color:rgba(139, 104, 20,0.04); line-height:1; pointer-events:none;
}
.mv-block .section-title { font-size:clamp(2.5rem,4vw,4.2rem); margin-bottom:1.5rem; }
.mv-quote {
  font-family:'Barlow',sans-serif; font-style:italic; font-weight:300;
  font-size:1rem; line-height:1.85; color:rgba(212,208,200,0.72);
  border-left:3px solid var(--gold); padding-left:1.4rem; margin-top:1.5rem;
}

/* ─── VALORES ────────────────────────────────────── */
#valores { background:var(--dark2); padding:7rem 4rem; }
.valores-header { margin-bottom:4rem; }
.valores-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:2px;
  background:rgba(255,255,255,0.04);
}
.valor-card {
  background:var(--dark2); padding:3.5rem 2.8rem;
  border-bottom:3px solid transparent;
  transition:border-color 0.35s,background 0.35s;
  cursor:none; position:relative; overflow:hidden;
}
.valor-card::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(139, 104, 20,0.04) 0%,transparent 60%);
  opacity:0; transition:opacity 0.4s;
}
.valor-card:hover { background:var(--dark3); border-color:var(--gold); }
.valor-card:hover::after { opacity:1; }

.valor-icon {
  font-size:1.8rem; margin-bottom:1.8rem;
  width:52px; height:52px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(139, 104, 20,0.25);
  transition:border-color 0.35s;
}
.valor-card:hover .valor-icon { border-color:var(--gold); }
.valor-num {
  font-family:'Bebas Neue',sans-serif; font-size:0.7rem;
  letter-spacing:0.3em; color:var(--gold); margin-bottom:0.5rem;
}
.valor-name {
  font-family:'Bebas Neue',sans-serif; font-size:1.7rem;
  color:var(--white); line-height:1; letter-spacing:0.03em; margin-bottom:1rem;
}
.valor-desc {
  font-size:0.88rem; line-height:1.75; color:rgba(212,208,200,0.62);
}

/* ─── PRODUCTOS CTA ──────────────────────────────── */
#productos-cta {
  position:relative; min-height:55vh; padding:0;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.productos-cta-bg {
  position:absolute; inset:-15%;
  background:
    linear-gradient(rgba(10,10,10,0.78),rgba(10,10,10,0.78)),
    var(--r2-nosotros-productos-cta) center/cover no-repeat;
  will-change:transform;
}
.productos-cta-content {
  position:relative; z-index:2; text-align:center; padding:6rem 2rem; max-width:720px;
}
.productos-cta-content .section-tag { justify-content:center; }
.productos-cta-content .section-tag::before { display:none; }
.productos-cta-content .section-title { font-size:clamp(3rem,6vw,6rem); margin-bottom:1.2rem; }
.productos-cta-content p {
  font-size:0.98rem; color:rgba(212,208,200,0.68); margin-bottom:2.5rem; line-height:1.75;
}
.btn-row { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

.btn-row a.btn-primary,
.btn-row a.btn-ghost {
  text-decoration:none;
  display:inline-block;
}

.btn-primary,
.btn-row a.btn-primary {
  font-family:'Barlow Condensed',sans-serif; font-size:0.8rem;
  letter-spacing:0.25em; text-transform:uppercase;
  padding:0.85rem 2.2rem; background:var(--gold); color:var(--dark);
  border:none; cursor:none; font-weight:700;
  transition:background 0.3s,transform 0.2s;
}
.btn-primary:hover { background:var(--gold-lt); transform:translateY(-2px); }

.btn-ghost,
.btn-row a.btn-ghost {
  font-family:'Barlow Condensed',sans-serif; font-size:0.8rem;
  letter-spacing:0.25em; text-transform:uppercase;
  padding:0.85rem 2.2rem; background:transparent; color:var(--white);
  border:1px solid rgba(255,255,255,0.3); cursor:none;
  transition:border-color 0.3s,color 0.3s;
}
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }

/* ─── MARCAS STRIP ───────────────────────────────── */
#marcas { background:var(--dark); padding:4.5rem 4rem; overflow:hidden; }
.marcas-track-wrap {
  overflow:hidden; position:relative; margin-top:2.5rem;
}
.marcas-track-wrap::before,
.marcas-track-wrap::after {
  content:''; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none;
}
.marcas-track-wrap::before { left:0; background:linear-gradient(90deg,var(--dark),transparent); }
.marcas-track-wrap::after  { right:0; background:linear-gradient(-90deg,var(--dark),transparent); }
.marcas-track {
  display:flex; gap:2.5rem; width:max-content;
  animation:scrollBrands 28s linear infinite;
}
@keyframes scrollBrands { to{transform:translateX(-50%)} }
.marca-pill {
  font-family:'Bebas Neue',sans-serif; font-size:1.05rem; letter-spacing:0.18em;
  color:rgba(212,208,200,0.22); white-space:nowrap; padding:0.75rem 1.8rem;
  border:1px solid rgba(255,255,255,0.06);
  transition:color 0.3s,border-color 0.3s;
}
.marca-pill:hover { color:var(--gold); border-color:var(--gold); }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background:var(--dark); border-top:1px solid rgba(139, 104, 20,0.15);
  padding:4rem 4rem 3rem;
}
.footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:4rem;
  padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,0.05);
}
.footer-brand {}
.footer-brand-name {
  font-family:'Bebas Neue',sans-serif; font-size:1.6rem;
  color:var(--gold); letter-spacing:0.1em; line-height:1;
}
.footer-brand-sub {
  font-family:'Barlow Condensed',sans-serif; font-size:0.58rem;
  letter-spacing:0.3em; text-transform:uppercase; color:rgba(212,208,200,0.3);
  margin-top:0.3rem; margin-bottom:1.2rem;
}
.footer-brand-desc {
  font-size:0.85rem; line-height:1.7; color:rgba(212,208,200,0.45); max-width:280px;
}
.footer-contact { margin-top:1.5rem; }
.footer-contact-item {
  display:flex; align-items:flex-start; gap:0.6rem; margin-bottom:0.6rem;
}
.footer-contact-item span:first-child { color:var(--gold); font-size:0.85rem; flex-shrink:0; }
.footer-contact-item span:last-child {
  font-family:'Barlow Condensed',sans-serif; font-size:0.75rem;
  letter-spacing:0.1em; color:rgba(212,208,200,0.5);
}

.footer-col-title {
  font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:0.15em;
  color:var(--gold); margin-bottom:1.2rem;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:0.55rem; }
.footer-links a {
  font-family:'Barlow Condensed',sans-serif; font-size:0.75rem;
  letter-spacing:0.15em; text-transform:uppercase;
  color:rgba(212,208,200,0.45); text-decoration:none;
  transition:color 0.3s;
}
.footer-links a:hover { color:var(--gold); }

.footer-sucursales-list {
  display:grid; grid-template-columns:1fr 1fr; gap:0.3rem 0.8rem;
}
.footer-suc {
  font-family:'Barlow Condensed',sans-serif; font-size:0.68rem;
  letter-spacing:0.1em; color:rgba(212,208,200,0.38);
}

.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:2rem; flex-wrap:wrap; gap:1rem;
}
.footer-copy {
  font-family:'Barlow Condensed',sans-serif; font-size:0.62rem;
  letter-spacing:0.2em; text-transform:uppercase; color:rgba(212,208,200,0.28);
}
.footer-ipm {
  font-family:'Barlow Condensed',sans-serif; font-size:0.62rem;
  letter-spacing:0.2em; color:rgba(139, 104, 20,0.4);
}
.footer-social { display:flex; gap:1rem; }
.footer-social a {
  width:34px; height:34px; border:1px solid rgba(139, 104, 20,0.2);
  display:flex; align-items:center; justify-content:center;
  color:rgba(139, 104, 20,0.5); text-decoration:none; font-size:0.75rem;
  transition:border-color 0.3s,color 0.3s;
}
.footer-social a:hover { border-color:var(--gold); color:var(--gold); }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width:900px) {
  .page-hero-content { padding:0 1.25rem 3.5rem; }
  .page-hero-title { font-size:clamp(2.6rem,10vw,4.5rem); }
  #fundacion-strip { grid-template-columns:1fr 1fr; }
  .fundacion-item { padding:2rem 1rem; }
  #historia { grid-template-columns:1fr; }
  .historia-visual { min-height:280px; position:relative; top:0; }
  .historia-text { padding:3.5rem 1.25rem; }
  .org-content { grid-template-columns:1fr; gap:2.5rem; padding:4rem 1.25rem; }
  #mision-vision { grid-template-columns:1fr; }
  .mv-block { padding:3.5rem 1.25rem; }
  .valores-grid { grid-template-columns:1fr; }
  #productos-cta .section-title { font-size:clamp(2.4rem,10vw,4rem); }
  .btn-row { flex-direction:column; align-items:stretch; }
  .btn-row a.btn-primary,
  .btn-row a.btn-ghost { text-align:center; width:100%; }
  #marcas { padding:3.5rem 1.25rem; }
  .footer-top { grid-template-columns:1fr; gap:2rem; }
}

@media (max-width:560px) {
  #fundacion-strip { grid-template-columns:1fr; }
  .historia-text, .mv-block { padding:3rem 1rem; }
  .valor-card { padding:2rem 1.25rem; }
}
