/* HISTORIA */

.historia-hero{
  position:relative;
  min-height:100vh;
  margin-top:82px;
  overflow:hidden;
  background:#1a120f;
}

.historia-hero-media,
.historia-hero-media img,
.historia-hero-overlay{
  position:absolute;
  inset:0;
}

.historia-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.04);
  filter:saturate(.92) contrast(1.04);
}

.historia-hero-overlay{
  background:
    linear-gradient(105deg, rgba(24,16,13,.84) 0%, rgba(24,16,13,.46) 42%, rgba(24,16,13,.12) 72%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.28) 100%);
  z-index:1;
}

.historia-hero::after{
  content:"";
  position:absolute;
  inset:auto auto -120px -120px;
  width:360px;
  height:360px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(200,164,107,.22) 0%, rgba(200,164,107,0) 70%);
  z-index:2;
  pointer-events:none;
}

.historia-hero-content{
  position:relative;
  z-index:3;
  min-height:calc(100vh - 82px);
  max-width:1380px;
  margin:0 auto;
  padding:72px 8% 86px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  font-size:13px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#e79830;
}

.hero-kicker::before{
  content:"";
  width:34px;
  height:1px;
  background:currentColor;
}

.historia-hero-content h1{
  width:min(780px, 100%);
  margin-bottom:18px;
  color:#fff;
  font-size:clamp(2.8rem, 5.2vw, 5.4rem);
  line-height:1.01;
  letter-spacing:-1.7px;
  font-weight:600;
  text-transform:none;
}

.historia-hero-content p{
  width:min(620px, 100%);
  margin-bottom:30px;
  color:rgba(255,255,255,.88);
  font-size:18px;
  line-height:1.8;
}

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

.hero-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:14px 24px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.hero-button:hover{
  transform:translateY(-3px);
}

.hero-button-primary{
  background:#88247B;
  color:#fff;
  box-shadow:0 14px 30px rgba(0,0,0,.2);
}

.hero-button-primary:hover{
  background:#9e2a8f;
}

.hero-button-secondary{
  border:1px solid rgba(255,255,255,.4);
  background:rgba(255,255,255,.08);
  color:#fff;
}

.hero-button-secondary:hover{
  border-color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.16);
}

.historia-intro,
.timeline-section,
.legacy-section,
.marca-section{
  padding-left:8%;
  padding-right:8%;
}

.historia-intro{
  padding-top:110px;
  padding-bottom:46px;
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(320px, .9fr);
  gap:34px;
  align-items:end;
  background:
    radial-gradient(circle at top right, rgba(200,164,107,.18), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #f6ecda 100%);
}

.historia-intro-copy h2,
.section-heading h2,
.legacy-copy h2{
  margin-bottom:18px;
  color:#2b201d;
  font-size:clamp(2.1rem, 3.6vw, 3.3rem);
  line-height:1.1;
  font-weight:600;
  letter-spacing:-.8px;
  text-transform:none;
}

.section-kicker{
  display:inline-block;
  margin-bottom:14px;
  color:#88247B;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
}

.historia-intro-copy p,
.section-heading p,
.legacy-copy p,
.timeline-copy p,
.marca-story p{
  color:#6c605a;
  font-size:18px;
  line-height:1.82;
}

.historia-stats{
  display:grid;
  gap:16px;
}

.stat-card{
  padding:24px 24px 22px;
  border:1px solid rgba(114,47,55,.08);
  border-radius:26px;
  background:rgba(255,255,255,.82);
  box-shadow:0 18px 40px rgba(72,50,33,.08);
}

.stat-card strong{
  display:block;
  margin-bottom:8px;
  color:#2b201d;
  font-size:36px;
  font-weight:600;
  letter-spacing:-1px;
}

.stat-card span{
  color:#726560;
  font-size:15px;
  line-height:1.6;
}

.timeline-section{
  padding-top:72px;
  padding-bottom:110px;
  background:
    radial-gradient(circle at bottom left, rgba(200,164,107,.16), transparent 22%),
    linear-gradient(180deg, #f6ecda 0%, #fffdf8 100%);
}

.section-heading{
  max-width:760px;
  margin-bottom:42px;
}

.timeline-list{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:34px;
}

.timeline-list::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
  transform:translateX(-50%);
  background:linear-gradient(180deg, rgba(114,47,55,.16) 0%, rgba(114,47,55,.35) 25%, rgba(200,164,107,.45) 100%);
}

.timeline-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items:center;
}

.timeline-row::before{
  content:"";
  position:absolute;
  top:50%;
  left:calc(50% - 10px);
  width:20px;
  height:20px;
  border:4px solid #f6ecda;
  border-radius:50%;
  background:#88247B;
  transform:translate(-50%, -50%);
  box-shadow:0 0 0 6px rgba(114,47,55,.14);
  z-index:3;
}

.timeline-row::after{
  content:"";
  position:absolute;
  top:130px;
  right:calc(50% - 1px);
  width:42px;
  height:2px;
  background:linear-gradient(90deg, rgba(200,164,107,.5), rgba(114,47,55,.55));
  transform:translateY(-50%);
  z-index:2;
}

.timeline-row-right::after{
  right:auto;
  left:calc(50% - 1px);
  background:linear-gradient(90deg, rgba(114,47,55,.55), rgba(200,164,107,.5));
}

.timeline-row::before{
  top:130px;
}

.timeline-card{
  grid-column:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(114,47,55,.08);
  border-radius:30px;
  background:rgba(255,255,255,.9);
  box-shadow:0 18px 40px rgba(72,50,33,.08);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.timeline-row-right .timeline-card{
  grid-column:3;
}

.timeline-card:hover,
.legacy-feature:hover,
.marca-quote:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 52px rgba(72,50,33,.14);
  border-color:rgba(114,47,55,.18);
}

.timeline-image{
  overflow:hidden;
  background:#efe4cf;
}

.timeline-image img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
  transition:transform .55s ease, filter .45s ease;
}

.timeline-card:hover .timeline-image img,
.legacy-feature:hover .legacy-media img,
.marca-quote:hover .marca-quote-image img{
  transform:scale(1.04);
  filter:contrast(1.04) saturate(1.02);
}

.timeline-copy{
  padding:28px 28px 32px;
}

.timeline-year{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:#88247B;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
}

.timeline-year::before{
  content:"";
  width:24px;
  height:1px;
  background:currentColor;
}

.timeline-copy h3,
.marca-story h3{
  margin-bottom:16px;
  color:#2b201d;
  font-size:29px;
  font-weight:600;
  letter-spacing:-.5px;
  text-transform:none;
}

.timeline-copy p + p,
.legacy-copy p + p,
.marca-story p + p{
  margin-top:14px;
}

.legacy-section{
  padding-top:0;
  padding-bottom:110px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f2e7d2 100%);
}

.legacy-feature{
  max-width:1240px;
  margin:0 auto;
  padding:24px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:44px;
  align-items:center;
  border:1px solid rgba(114,47,55,.08);
  border-radius:34px;
  background:rgba(255,255,255,.72);
  box-shadow:0 18px 40px rgba(72,50,33,.08);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.legacy-media{
  overflow:hidden;
  border-radius:26px;
  background:#eadcc4;
}

.legacy-media img{
  width:100%;
  height:440px;
  object-fit:cover;
  transition:transform .55s ease, filter .45s ease;
}

.marca-section{
  padding-top:110px;
  padding-bottom:120px;
  background:
    radial-gradient(circle at top left, rgba(114,47,55,.08), transparent 18%),
    linear-gradient(180deg, #f2e7d2 0%, #fffdf8 100%);
}

.marca-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
  gap:30px;
  align-items:start;
}

.marca-story{
  padding:34px;
  border:1px solid rgba(114,47,55,.08);
  border-radius:30px;
  background:rgba(255,255,255,.72);
  box-shadow:0 18px 40px rgba(72,50,33,.08);
}

.marca-quote{
  overflow:hidden;
  border:1px solid rgba(114,47,55,.08);
  border-radius:30px;
  background:#5f262c;
  color:#fff;
  box-shadow:0 18px 40px rgba(72,50,33,.08);
  transform:translateY(-38px);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.marca-quote-image{
  overflow:hidden;
}

.marca-quote-image img{
  width:100%;
  height:470px;
  object-fit:cover;
  object-position:center 24%;
  transition:transform .55s ease, filter .45s ease;
}

.marca-quote blockquote{
  padding:28px 28px 34px;
  color:rgba(255,255,255,.9);
  font-size:27px;
  line-height:1.45;
  font-weight:300;
  letter-spacing:-.4px;
}

.marca-quote:hover{
  transform:translateY(-48px);
}

.footer-country{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.footer-flag{
  width:18px;
  height:auto;
  display:block;
  border-radius:2px;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}

/* MENU */

.menu-backdrop{
  position:fixed;
  inset:0;
  z-index:1200;
  background:rgba(32,21,18,.18);
  opacity:0;
  visibility:hidden;
  transition:
    opacity .35s ease,
    visibility .35s ease;
}

body.menu-open .menu-backdrop{
  opacity:1;
  visibility:visible;
}

.menu-toggle{
  width:34px;
  height:26px;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  background:none;
  border:none;
  cursor:pointer;
  z-index:2000;
  padding:0;
  border-radius:999px;
  transition:
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.menu-toggle span{
  width:100%;
  height:2px;
  background:#222;
  transition:.35s ease;
}

.menu-toggle:hover{
  transform:none;
}

@media (max-width:1360px){
  .historia-hero-content{
    padding-left:6%;
    padding-right:6%;
  }

  .historia-intro,
  .timeline-section,
  .legacy-section,
  .marca-section{
    padding-left:6%;
    padding-right:6%;
  }
}

@media (max-width:1200px){
  .historia-intro{
    grid-template-columns:1fr;
  }

  .historia-stats{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .legacy-feature,
  .marca-layout{
    grid-template-columns:1fr;
  }

  .marca-quote{
    transform:none;
  }
}

@media (max-width:1100px){
  .menu-toggle{
    display:flex;
  }

  .main-nav{
    position:fixed;
    top:18px;
    right:18px;
    width:min(360px, calc(100vw - 36px));
    max-height:calc(100vh - 36px);
    padding:86px 26px 32px;
    background:#fffdf8;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:22px;
    border:1px solid rgba(114,47,55,.08);
    border-radius:28px;
    box-shadow:0 24px 60px rgba(33,18,12,.16);
    overflow:auto;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(18px) scale(.98);
    transition:
      opacity .35s ease,
      visibility .35s ease,
      transform .35s ease;
    z-index:1500;
  }

  .main-nav.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0) scale(1);
  }

  .main-nav a{
    width:100%;
    padding:10px 0;
    font-size:20px;
    border-bottom:1px solid rgba(114,47,55,.08);
  }
}

@media (max-width:992px){
  .site-header{
    height:74px;
  }

  .header-inner{
    padding:0 24px;
  }

  .logo img{
    width:115px;
  }

  .historia-hero{
    min-height:88vh;
    margin-top:74px;
  }

  .historia-hero-content{
    min-height:calc(88vh - 74px);
    padding-top:40px;
    padding-bottom:36px;
  }

  .historia-hero-content h1{
    font-size:clamp(2.5rem, 6vw, 4rem);
  }

  .timeline-image img,
  .legacy-media img,
  .marca-quote-image img{
    height:380px;
  }

  .marca-quote blockquote{
    font-size:23px;
  }

  .footer-container{
    grid-template-columns:1fr 1fr;
    gap:50px;
  }
}

@media (max-width:768px){
  .site-header{
    height:68px;
  }

  .header-inner{
    padding:0 18px;
  }

  .logo img{
    width:100px;
  }

  .menu-toggle{
    display:flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin-left:auto;
    margin-right:14px;
    background:#722f37;
    border:1px solid rgba(114,47,55,.18);
    border-radius:50%;
    box-shadow:0 12px 24px rgba(114,47,55,.18);
    z-index:3000;
  }

  .menu-toggle span{
    width:18px;
    height:2px;
    background:#fff;
    border-radius:999px;
  }

  .menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2){
    opacity:0;
    transform:scaleX(.3);
  }

  .menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  .main-nav{
    top:68px;
    right:0;
    width:100%;
    max-height:calc(100vh - 68px);
    gap:14px;
    padding:20px 22px 28px;
    background:#fff;
    border:none;
    border-top:1px solid rgba(114,47,55,.08);
    border-radius:0 0 22px 22px;
    box-shadow:0 20px 35px rgba(33,18,12,.08);
    transform:translateY(-12px);
  }

  .main-nav a{
    position:relative;
    padding:10px 0;
    font-size:17px;
    font-weight:700;
    letter-spacing:.4px;
    color:#2b201d;
  }

  .main-nav a::after{
    left:0;
    bottom:0;
    width:0;
    height:1px;
    background:#722f37;
    transform:none;
  }

  .historia-hero{
    min-height:680px;
    margin-top:68px;
  }

  .historia-hero-content{
    min-height:612px;
    padding:28px 24px 24px;
  }

  .hero-kicker{
    margin-bottom:14px;
    font-size:11px;
  }

  .historia-hero-content h1{
    font-size:34px;
    line-height:1.06;
  }

  .historia-hero-content p{
    margin-bottom:22px;
    font-size:15px;
    line-height:1.7;
  }

  .hero-actions{
    width:100%;
    flex-direction:column;
  }

  .hero-button{
    width:100%;
  }

  .historia-intro,
  .timeline-section,
  .legacy-section,
  .marca-section{
    padding-left:24px;
    padding-right:24px;
  }

  .historia-intro{
    padding-top:84px;
    padding-bottom:38px;
  }

  .historia-stats{
    grid-template-columns:1fr;
  }

  .section-heading{
    margin-bottom:30px;
  }

  .historia-intro-copy p,
  .section-heading p,
  .legacy-copy p,
  .timeline-copy p,
  .marca-story p{
    font-size:16px;
    line-height:1.72;
  }

  .timeline-section,
  .legacy-section{
    padding-bottom:84px;
  }

  .timeline-list{
    gap:24px;
  }

  .timeline-list::before{
    left:18px;
    transform:none;
  }

  .timeline-row{
    grid-template-columns:1fr;
    padding-left:44px;
  }

  .timeline-row::before{
    left:18px;
    width:16px;
    height:16px;
    border-width:3px;
    top:110px;
    transform:translate(-50%, -50%);
  }

  .timeline-row::after,
  .timeline-row-right::after{
    top:110px;
    left:18px;
    right:auto;
    width:24px;
    transform:translateY(-50%);
    background:linear-gradient(90deg, rgba(114,47,55,.55), rgba(200,164,107,.5));
  }

  .timeline-card,
  .timeline-row-right .timeline-card{
    grid-column:auto;
  }

  .timeline-copy,
  .marca-story{
    padding:24px 20px 26px;
  }

  .timeline-copy h3,
  .marca-story h3{
    font-size:25px;
  }

  .legacy-feature{
    padding:18px;
    gap:28px;
    border-radius:28px;
  }

  .timeline-card,
  .marca-story,
  .marca-quote{
    border-radius:26px;
  }

  .timeline-image img,
  .legacy-media img,
  .marca-quote-image img{
    height:300px;
  }

  .legacy-media{
    border-radius:22px;
  }

  .marca-section{
    padding-top:84px;
    padding-bottom:90px;
  }

  .marca-quote blockquote{
    padding:22px 20px 26px;
    font-size:20px;
  }

  .marca-quote{
    transform:none;
  }

  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }

  .footer-logo-link{
    justify-content:center;
  }

  .footer-socials{
    align-items:center;
  }

  .footer-country{
    justify-content:center;
  }

  .age-box{
    width:92%;
    padding:38px 24px;
  }

  .age-box img{
    width:140px;
  }

  .age-box p{
    font-size:17px;
  }

  .age-buttons{
    flex-direction:column;
  }

  .age-buttons button{
    width:100%;
  }
}

@media (max-width:480px){
  .historia-hero{
    min-height:600px;
  }

  .historia-hero-content{
    min-height:532px;
    padding-left:18px;
    padding-right:18px;
  }

  .historia-intro,
  .timeline-section,
  .legacy-section,
  .marca-section{
    padding-left:18px;
    padding-right:18px;
  }

  .historia-hero-content h1{
    font-size:29px;
  }

  .hero-button{
    min-height:48px;
    padding:13px 18px;
    font-size:12px;
  }

  .historia-intro-copy h2,
  .section-heading h2,
  .legacy-copy h2{
    font-size:28px;
  }

  .stat-card strong{
    font-size:30px;
  }

  .timeline-copy h3,
  .marca-story h3{
    font-size:23px;
  }

  .timeline-image img,
  .timeline-image img,
  .legacy-media img,
  .marca-quote-image img{
    height:240px;
  }

  .marca-quote blockquote{
    font-size:18px;
  }

  #backToTop{
    width:48px;
    height:48px;
    right:18px;
    bottom:18px;
  }
}

@media (max-width:390px){
  .header-inner{
    padding:0 14px;
  }

  .logo img{
    width:92px;
  }

  .cart{
    font-size:13px;
  }

  .cart-icon{
    width:30px;
    height:30px;
  }

  .main-nav{
    padding:18px 16px 24px;
  }

  .menu-toggle{
    margin-right:10px;
  }

  .main-nav a{
    font-size:16px;
  }

  .historia-hero{
    min-height:560px;
  }

  .historia-hero-content{
    min-height:492px;
    padding:24px 14px 20px;
  }

  .historia-hero-content h1{
    font-size:26px;
  }

  .hero-kicker{
    font-size:10px;
    letter-spacing:1.6px;
  }

  .section-kicker{
    letter-spacing:1.6px;
  }
}

/* Sincroniza el menú móvil de Historia con el patrón global */
.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(17,17,17,.36);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:950;
  transition:opacity .3s ease, visibility .3s ease;
}

.menu-backdrop.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

@media (max-width:1100px){
  .menu-toggle{
    display:flex;
  }

  .main-nav{
    position:fixed;
    top:18px;
    right:18px;
    width:min(360px, calc(100vw - 36px));
    max-height:calc(100vh - 36px);
    padding:86px 26px 32px;
    background:#fffdf8;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:22px;
    border:1px solid rgba(114,47,55,.08);
    border-radius:28px;
    box-shadow:0 24px 60px rgba(33,18,12,.16);
    overflow:auto;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(18px) scale(.98);
    transition:
      opacity .35s ease,
      visibility .35s ease,
      transform .35s ease;
    z-index:1500;
  }

  .main-nav.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0) scale(1);
  }

  .main-nav a{
    width:100%;
    padding:10px 0;
    font-size:20px;
    border-bottom:1px solid rgba(114,47,55,.08);
  }
}

@media (max-width:768px){
  .menu-toggle{
    display:flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin-left:auto;
    margin-right:14px;
    background:#722f37;
    border:1px solid rgba(114,47,55,.18);
    border-radius:50%;
    box-shadow:0 12px 24px rgba(114,47,55,.18);
    z-index:3000;
  }

  .menu-toggle span{
    width:18px;
    height:2px;
    background:#fff;
    border-radius:999px;
  }

  .menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2){
    opacity:0;
    transform:scaleX(.3);
  }

  .menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  .main-nav{
    top:68px;
    right:0;
    width:100%;
    max-height:calc(100vh - 68px);
    gap:14px;
    padding:20px 22px 28px;
    background:#fff;
    border:none;
    border-top:1px solid rgba(114,47,55,.08);
    border-radius:0 0 22px 22px;
    box-shadow:0 20px 35px rgba(33,18,12,.08);
    transform:translateY(-12px);
  }

  .main-nav.active{
    transform:translateY(0);
  }

  .main-nav a{
    position:relative;
    padding:10px 0;
    font-size:17px;
    font-weight:700;
    letter-spacing:.4px;
    color:#2b201d;
  }
}

@media (max-width:390px){
  .main-nav{
    top:68px;
    right:0;
    width:100%;
    padding:18px 16px 24px;
  }

  .menu-toggle{
    margin-right:10px;
  }

  .main-nav a{
    font-size:16px;
  }
}
