@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --cream: #fbf6ee;
  --paper: #fffbf5;
  --tint: #f2e8df;
  --ink: #2e1c2e;
  --muted: #62555e;
  --accent: #764b61;
  --line: #e6d9d1;
  --gold: #e9bc77;
  --dark: #261828;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --header: 73px;
}
[data-brand="moda"] { --accent: #6a495f; --tint: #efe6ec; --cream: #fbf6f7; }
[data-brand="gustitos"] { --accent: #914b51; --tint: #f7e7df; --cream: #fdf6ef; }
[data-brand="licores"] { --accent: #7c354e; --tint: #f2e6e8; --cream: #fbf5f2; }
[data-brand="recc"] { --accent: #614b83; --tint: #eee8f6; --cream: #faf6fc; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 14px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.13; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 3.7rem); letter-spacing: -.048em; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.wrap { width: min(calc(100% - 3rem), 1200px); margin-inline: auto; }
.section { padding-block: clamp(4.2rem, 7vw, 6.5rem); }
.section-heading { text-align: center; margin: 0 auto 2.55rem; max-width: 680px; }
.section-heading > p:not(.eyebrow), .story-copy > p:not(.eyebrow), .location-grid p:not(.eyebrow) { color: var(--muted); margin-top: .95rem; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .17em; line-height: 1.5; }
.section-eyebrow { color: var(--accent); margin-bottom: .65rem; }
:focus-visible { outline: 3px solid #a56438; outline-offset: 4px; }
.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .6rem .9rem; border-radius: .4rem; background: white; }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--dark); color: #fff6ef; border-bottom: 1px solid #ffffff20; }
.nav-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .66rem; color: #fff7ed; font-family: var(--serif); font-size: 1.64rem; line-height: .98; font-weight: 700; letter-spacing: .075em; }
.wordmark small { display: block; margin-top: 6px; color: #e1bd8b; font: 700 .65rem/1 var(--sans); letter-spacing: .17em; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #b88e61; color: var(--gold); border-radius: 50%; flex: none; }
.monogram svg { width: 1.95rem; height: 1.95rem; }
.wordmark img { max-width: 165px; max-height: 50px; width: auto; height: auto; }
.nav-inner nav { display: flex; align-items: center; gap: clamp(.85rem, 2.1vw, 2.05rem); }
.nav-inner nav a { position: relative; padding: .5rem 0; color: #f6edf1; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav-inner nav a:hover, .nav-inner nav a[aria-current="page"] { color: var(--gold); }
.nav-inner nav a[aria-current="page"]::after { position: absolute; content: ""; left: 0; right: 0; bottom: .17rem; height: 1px; background: var(--gold); }
.mobile-toggle { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 48px; padding: .68rem 1.2rem; border: 1px solid transparent; border-radius: .42rem; font-weight: 700; font-size: .94rem; line-height: 1.35; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button:disabled { cursor: default; opacity: .55; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-gold, .nav-cta { color: #291b24; background: var(--gold); }
.button-gold:hover, .nav-cta:hover { background: #f7d497; }
.nav-cta { min-height: 42px; padding: .52rem .9rem; font-size: .88rem; white-space: nowrap; }
.button-on-dark { color: #fff7ef; border-color: #ffead687; background: #291b3260; }
.button-on-dark:hover { background: #fff6e9; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff8f2; }
.button-dark:hover { background: var(--accent); }
.button-outline { color: var(--ink); border-color: #a58b91; }
.button-outline:hover { background: var(--tint); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(555px, 68vh, 735px); background: #534052; color: #fff8f0; text-align: center; }
.hero-media, .hero-frame { position: absolute; inset: 0; }
.hero-media { z-index: -2; will-change: transform; }
.hero-frame { opacity: 0; transition: opacity .95s ease; }
.hero-frame.is-active { opacity: 1; }
.hero-frame img { height: 100%; object-fit: cover; }
.group-hero .hero-frame:first-child img { object-position: center 47%; }
.brand-hero { min-height: clamp(520px, 66vh, 690px); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #20152272 0%, #25142699 46%, #241725dc 100%); }
.brand-hero::after { background: linear-gradient(90deg, #28192cbb, #221629a4 53%, #21152386), linear-gradient(0deg,#24172572,transparent 70%); }
.hero-content { position: relative; max-width: 990px; padding-block: 3.4rem 5.25rem; animation: hero-in .68s ease both; }
.hero-eyebrow { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; margin-bottom: 1rem; color: #f5cb8c; }
.hero-eyebrow svg { width: 1.05rem; height: 1.05rem; }
.hero-separator { opacity: .75; margin-inline: .12rem; }
.hero h1 { font-size: clamp(3.4rem, 7.1vw, 6.65rem); letter-spacing: -.053em; line-height: .985; text-shadow: 0 4px 30px #17101a55; }
.hero h1 em { color: #f1c987; font-weight: 500; }
.brand-hero h1 { font-size: clamp(3.3rem, 7.9vw, 6.5rem); }
.hero-lead { margin: 1.5rem auto 1.7rem; max-width: 590px; color: #fff4ea; font-size: clamp(1.05rem, 1.9vw, 1.25rem); text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.hero-controls { position: absolute; bottom: 1.35rem; left: 0; right: 0; }
.dot, .pause { display: grid; place-items: center; background: transparent; border: 0; color: inherit; min-height: 30px; min-width: 27px; padding: 0; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .6; transition: width .22s, opacity .22s; }
.dot[aria-current="true"]::before { width: 23px; opacity: 1; }
.hero .dot[aria-current="true"] { color: var(--gold); }
.pause { font-weight: 700; font-size: .87rem; border-radius: .35rem; }
.pause > span { width: 9px; height: 11px; border-inline: 3px solid currentColor; }
.pause.is-paused > span { width: 0; height: 0; border: 0; border-block: 5.5px solid transparent; border-left: 8px solid currentColor; }
.pause:hover, .dot:hover { background: #9993; }

.brands-section { background: var(--cream); padding-top: clamp(3.4rem, 5.5vw, 5rem); }
.brand-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brand-card { position: relative; display: flex; align-items: end; min-height: 340px; isolation: isolate; overflow: hidden; border-radius: .68rem; color: white; background: #583944; box-shadow: 0 8px 20px #3c25331c; }
.brand-card::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, transparent 15%, #26172455 42%, #241526f8 100%); }
.brand-card > img { position: absolute; z-index: -2; inset: 0; height: 100%; object-fit: cover; transition: transform .65s ease; }
.brand-card:hover img, .brand-card:focus-visible img, .gallery-tile:hover img, .product-card:hover > img { transform: scale(1.065); }
.brand-card-content { padding: 1.1rem 1.14rem 1.2rem; width: 100%; }
.card-icon { display: inline-grid; place-items: center; width: 2.44rem; height: 2.44rem; margin-bottom: .6rem; border-radius: 50%; color: #ffdc9e; border: 1px solid #ffd69b70; background: #302034bd; }
.brand-card h3 { color: #fff8ef; font-size: clamp(1.25rem, 2vw, 1.73rem); text-wrap: pretty; }
.brand-card p { color: #f4e5e9; margin-top: .36rem; min-height: 2.9em; line-height: 1.45; font-size: .94rem; }
.card-link, .text-link { display: inline-flex; align-items: center; gap: .34rem; font-weight: 700; font-size: .9rem; }
.card-link { display: flex; justify-content: space-between; color: #f2cc90; border-top: 1px solid #ffffff32; margin-top: .8rem; padding-top: .69rem; }
.card-link svg, .text-link svg { width: .95rem; height: .95rem; }
.card-moda img { object-position: center 65%; }
.card-licores img { object-position: center 55%; }
.story-section { background: var(--paper); }
.story-grid, .location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.story-picture { border-radius: .7rem; overflow: hidden; aspect-ratio: 1.3; background: var(--tint); }
.story-picture img { height: 100%; object-fit: cover; }
.story-copy p { max-width: 53ch; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.55rem; }
.stats dt { color: var(--accent); font-family: var(--serif); font-size: 2.2rem; line-height: 1.16; }
.stats dd { color: var(--muted); font-size: .89rem; font-weight: 600; margin-top: .3rem; }
.values-section { background: var(--tint); }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.values-grid article { padding: 1.45rem 1.25rem; border: 1px solid var(--line); border-radius: .62rem; background: var(--paper); }
.value-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .75rem; background: var(--tint); color: var(--accent); border-radius: 50%; }
.values-grid p, .product-card p { margin-top: .53rem; color: var(--muted); }
.testimonials { background: var(--dark); color: #fff4e9; text-align: center; }
.testimonials .section-eyebrow { color: var(--gold); }
.testimonial-slider { max-width: 750px; margin-inline: auto; }
.testimonials .section-heading { margin-bottom: 1.55rem; }
.testimonial-empty { color: #e4d3df; }
.testimonial-slider .carousel-controls { margin-top: 1rem; color: var(--gold); flex-wrap: wrap; }
.testimonial-slides { display: grid; }
.testimonial-slides > figure { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .36s; padding: 0 1rem; }
.testimonial-slides > .is-active { visibility: visible; opacity: 1; }
.testimonial-slides blockquote { font-family: var(--serif); font-size: clamp(1.22rem, 3vw, 1.8rem); }
.testimonial-slides figcaption { color: var(--gold); margin-top: .8rem; }
.location-section { background: var(--cream); }
.location-grid { grid-template-columns: .75fr 1.25fr; }
.location-grid .button { margin-top: 1.1rem; }
.location-grid iframe { display: block; width: 100%; aspect-ratio: 1.75; min-height: 235px; border: 1px solid var(--line); border-radius: .65rem; background: var(--tint); }
.offer-section, .gallery-section { background: var(--cream); }
.product-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { display: grid; grid-template-rows: auto 1fr; border-radius: .7rem; border: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.product-card > img { height: auto; aspect-ratio: 1.48; object-fit: cover; transition: transform .55s ease; }
.product-copy { position: relative; min-width: 0; padding: 1.25rem 1.4rem 1.5rem; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding-top: .8rem; margin-top: auto; }
.catalog-note { margin-top: 1.3rem; color: var(--muted); }
.gallery-section { background: var(--tint); }
.gallery-tile { position: relative; display: block; overflow: hidden; border-radius: .65rem; }
.gallery-tile img { aspect-ratio: 1.18; object-fit: cover; transition: transform .55s ease; }
.gallery-tile span { position: absolute; display: grid; place-items: center; right: .7rem; bottom: .7rem; width: 2.55rem; height: 2.55rem; border-radius: 50%; color: white; background: #291e2cda; }
.lightbox { border: 0; border-radius: .6rem; color: white; background: var(--dark); width: min(94vw, 900px); padding: .8rem; }
.lightbox::backdrop { background: #1b1320ec; }
.lightbox-image { max-height: 74vh; object-fit: contain; }
.lightbox .icon-button { background: #ffffff15; color: white; }
.lightbox-top { display: flex; justify-content: flex-end; margin-bottom: .4rem; }
.lightbox-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: center; gap: .5rem; margin-top: .5rem; }
.lightbox .previous svg { transform: rotate(180deg); }
.icon-button { width: 2.6rem; height: 2.6rem; place-items: center; padding: 0; border: 1px solid #ffffff44; border-radius: .35rem; background: transparent; color: inherit; }
.lightbox .icon-button { display: grid; }
.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; max-width: 36ch; }
.contact-location, .contact-links a { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.contact-location { margin-top: 1.25rem; }
.contact-location svg, .contact-links svg { color: var(--accent); }
.contact-links { display: grid; gap: .4rem; margin-top: .5rem; }
.contact-links a { overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1.15rem, 3vw, 2rem); }
.form-row { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-form label { display: grid; min-width: 0; gap: .35rem; font-weight: 700; font-size: .93rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; border: 1px solid #bdaeb2; border-radius: .33rem; padding: .62rem .7rem; color: var(--ink); background: #fffdf9; font-size: 1rem; font-weight: 400; }
.contact-form select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23422d44' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .5rem center; background-size: 1rem; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-note { color: var(--muted); font-size: .9rem; }
.form-status { color: #753244; font-weight: 600; }
.site-footer { background: var(--dark); color: #f2e8ee; padding-top: 2.35rem; }
.footer-main { display: grid; grid-template-columns: 1fr 1.3fr .7fr; gap: 1.5rem; padding-bottom: 1.55rem; }
.footer-main p { margin-top: .7rem; color: #dfccd8; }
.footer-main nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; align-content: center; }
.footer-main nav a:hover, .footer-contact a:hover, .socials a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: .4rem; align-content: center; justify-content: end; }
.footer-contact a { display: flex; gap: .46rem; align-items: center; }
.footer-contact svg { color: var(--gold); }
.footer-bottom { color: #dfccd8; padding-block: 1rem; border-top: 1px solid #ffffff28; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.footer-bottom small { font-size: .85rem; }
.socials { display: flex; gap: 1rem; }
.floating-wa { color: white; background: #127b50; position: fixed; z-index: 9; right: max(1.35rem, env(safe-area-inset-right)); bottom: max(1.35rem, env(safe-area-inset-bottom)); width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 24px #19241b4d; }
.floating-wa::before { position: absolute; inset: 0; border: 2px solid #238952; border-radius: inherit; content: ""; animation: pulse 2.8s ease-out infinite; pointer-events: none; }
.floating-wa svg { width: 2rem; height: 2rem; }
.floating-wa:hover { background: #0b6741; }
@keyframes pulse { 10%, 85%, 100% { opacity: 0; } 20% { opacity: .7; transform: scale(1); } 70% { opacity: 0; transform: scale(1.38); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .22s; }
::view-transition-new(root) { animation-duration: .3s; }

/* AOS gestiona la detección. El contenido sigue visible si JavaScript no carga. */
.aos-enabled [data-aos] { transition: opacity .62s ease, transform .62s cubic-bezier(.2,.68,.25,1); }
.aos-enabled [data-aos]:not(.aos-animate):not(:focus-within) { opacity: 0; }
.aos-enabled [data-aos="fade-up"]:not(.aos-animate):not(:focus-within) { transform: translateY(22px); }
.aos-enabled [data-aos="zoom-in"]:not(.aos-animate):not(:focus-within) { transform: scale(.955); }

@media (max-width: 920px) {
  .wrap { width: min(calc(100% - 2.2rem), 1200px); }
  .nav-inner { gap: .7rem; }
  .nav-inner nav { gap: .73rem; }
  .nav-inner nav a { font-size: .84rem; }
  .brand-grid, .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-card { min-height: 320px; }
}
@media (max-width: 760px) {
  :root { --header: 65px; }
  .mobile-toggle { display: none; margin-left: auto; }
  .menu-enabled .mobile-toggle { display: grid; }
  .nav-inner { flex-wrap: wrap; }
  .nav-inner nav { order: 5; width: 100%; flex-wrap: wrap; padding-bottom: .75rem; gap: .4rem 1rem; }
  .menu-enabled .nav-inner nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--dark); padding: .55rem 1.1rem 1rem; box-shadow: 0 12px 16px #22152840; }
  .menu-enabled .nav-inner nav.is-open { display: grid; }
  .nav-inner nav a { font-size: .95rem; width: max-content; }
  .hero { min-height: clamp(525px, 71svh, 680px); }
  .story-grid, .location-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .story-picture { max-height: 420px; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-content: start; }
}
@media (max-width: 470px) {
  .wrap { width: calc(100% - 2rem); }
  .nav-cta { padding-inline: .52rem; }
  .nav-cta svg { display: none; }
  .wordmark { font-size: 1.42rem; }
  .monogram { width: 2.25rem; height: 2.25rem; }
  .wordmark small { font-size: .56rem; }
  .hero-eyebrow { font-size: .73rem; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(2.95rem, 13vw, 4.35rem); }
  .hero-lead { margin-block: 1.17rem 1.45rem; }
  .hero-actions .button { font-size: .87rem; padding-inline: .72rem; }
  .brand-grid { gap: .76rem; }
  .brand-card { min-height: 270px; }
  .brand-card-content { padding: .82rem; }
  .brand-card h3 { font-size: 1.21rem; }
  .brand-card p { font-size: .84rem; }
  .card-link { font-size: .79rem; }
  .values-grid { gap: .65rem; }
  .values-grid article { padding: 1rem .79rem; }
  .values-grid h3 { font-size: 1.25rem; }
  .values-grid p { font-size: .91rem; }
  .product-grid, .form-row, .footer-main { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
