/* ==========================================================
   Franquicias Viajes TDH
   Paleta de marca: amarillo TDH + negro
   ========================================================== */

:root {
  --yellow: #ffcb00;
  --yellow-dark: #e6b600;
  --ink: #141414;
  --ink-2: #1f1f1f;
  --ink-3: #2b2b2b;
  --paper: #ffffff;
  --wall: #f3efe7; /* "Ambience white" de las paredes del local */
  --text: #1c1c1c;
  --muted: #5d5d5d;
  --line: #e9e5d8;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
  --container: 1180px;
  --header-h: 76px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-dark); box-shadow: 0 10px 24px -10px rgba(255, 203, 0, .7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }
.btn .bi-arrow-right { transition: transform .2s ease; }
.btn:hover .bi-arrow-right { transform: translateX(3px); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: var(--yellow); transform: rotate(45deg); flex: none;
}
.eyebrow--yellow { color: var(--yellow); }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 17, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: #fff;
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px;
  background: var(--yellow); border-radius: 2px; transition: right .2s ease;
}
.nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--wall); color: var(--ink);
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
}
.hero__faja {
  position: absolute; right: 0; bottom: 0; width: 2400px; height: 640px; pointer-events: none;
  fill: none; stroke: var(--yellow); stroke-width: 34;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 1.25rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__photo {
  border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55);
  aspect-ratio: 4 / 4.2;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

.sticker { position: absolute; font-weight: 700; color: var(--ink); }
.sticker--diamond {
  left: -34px; bottom: 44px; width: 118px; height: 118px;
  background: var(--yellow); border-radius: 22px; transform: rotate(45deg);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  display: grid; place-items: center;
}
.sticker--diamond span { transform: rotate(-45deg); text-align: center; font-size: .78rem; line-height: 1.1; font-weight: 600; }
.sticker--diamond strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.sticker--pill {
  right: -12px; top: 26px; background: var(--ink); color: var(--yellow); padding: .55em 1.1em; border-radius: 999px;
  font-size: .95rem; transform: rotate(-6deg); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .6);
}

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 4px solid var(--yellow); }
.stat__num { color: var(--yellow); }
.stat__num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat__label { font-size: .92rem; font-weight: 500; color: #d6d6d6; line-height: 1.35; max-width: 16em; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--wall { background: var(--wall); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #c9c9c9; }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.section__lead { font-size: 1.08rem; color: var(--muted); }

/* Cards de beneficios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--yellow);
  display: grid; place-items: center; margin-bottom: 20px; font-size: 1.4rem; color: var(--ink);
  transform: rotate(45deg);
}
.card__icon i { transform: rotate(-45deg); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__copy p { font-size: 1.05rem; }

/* Video (carga liviana: solo trae YouTube al hacer clic) */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease, transform .4s ease; }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 22px;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 2.4rem;
  transform: rotate(45deg); transition: transform .2s ease;
}
.video__play i { transform: rotate(-45deg); margin-left: 4px; }
.video:hover .video__play { transform: rotate(45deg) scale(1.08); }
.video__label {
  position: absolute; left: 20px; bottom: 18px; background: rgba(20, 20, 20, .85); color: #fff;
  padding: .45em 1em; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wide { max-width: 920px; margin: 0 auto; }

/* Pasos */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 12px;
  background: var(--yellow); border-radius: 6px;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px;
  background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 1.25rem; border-radius: 14px;
  transform: rotate(45deg); box-shadow: 0 0 0 8px #fff;
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step__n > span { transform: rotate(-45deg); }

/* Red */
.big-num { color: var(--ink); background: var(--yellow); padding: 0 .2em; border-radius: 10px; }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35em .95em; font-size: .88rem; font-weight: 500;
}
.chips li:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }
.link-arrow i { transition: transform .2s ease; display: inline-block; }
.link-arrow:hover i { transform: translateX(4px); }

.photo-frame { position: relative; }
.photo-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--yellow); border-radius: 28px;
}
.photo-frame img { position: relative; border-radius: 28px; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.photo-frame--tall { max-width: 440px; margin: 0 auto; }
.photo-frame--tall img { aspect-ratio: 4 / 5.4; object-position: center 25%; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq__item[open] { border-color: var(--ink); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 8px; background: var(--yellow); display: grid; place-items: center; font-weight: 700; line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.faq__item a { font-weight: 600; }

/* Faja amarilla: curvas en semicírculos perfectos */
.faja-divider {
  display: block; width: 100%; height: auto; margin: 0 0 clamp(32px, 5vw, 64px);
  fill: none; stroke: var(--yellow); stroke-width: 22;
}
.local { padding-top: clamp(24px, 4vw, 48px); }

/* Tu local */
.local__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.local__head h2 { margin: 0; }
.local__head .section__lead { margin: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 480px; gap: 16px; }
.gallery__item { margin: 0; border-radius: 22px; overflow: hidden; background: #ddd; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--wide img { object-position: 30% center; }
.gallery__item--map img { object-position: center 72%; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; align-items: start; gap: 32px; }
.team__card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.team__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.team__head h3 { margin: 0; font-size: 1.1rem; }
.team__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.team__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; transform: rotate(45deg);
}
.team__avatar > span { transform: rotate(-45deg); }
.team__reel { min-height: 120px; }
.team__reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border-radius: 14px !important; }
.team__reel blockquote.instagram-media:not(iframe) {
  display: grid; place-items: center; min-height: 200px; background: var(--wall); border-radius: 14px; padding: 20px; text-align: center;
}
.team__reel blockquote a { font-weight: 600; }
.local__features { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.local__features li { display: flex; gap: 14px; align-items: flex-start; }
.local__features h3 { font-size: 1rem; margin-bottom: .25em; }
.local__features p { font-size: .92rem; color: var(--muted); margin: 0; }
.rombo-dot { flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 5px; background: var(--yellow); transform: rotate(45deg); }

/* CTA final */
.cta { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); padding: clamp(64px, 8vw, 100px) 0; }
.cta__diamond {
  position: absolute; right: -80px; top: 50%; width: 360px; height: 360px; margin-top: -180px;
  border: 40px solid rgba(20, 20, 20, .07); border-radius: 70px; transform: rotate(45deg);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
.cta p { font-size: 1.1rem; margin: 0; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__contacts { display: flex; flex-direction: column; gap: 6px; }
.cta__contacts a { text-decoration: none; font-weight: 600; display: inline-flex; gap: .55em; align-items: center; }
.cta__contacts a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--ink); color: #bdbdbd; padding: 64px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 24em; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid #3a3a3a;
  display: grid; place-items: center; font-size: 1.05rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer__bottom { border-top: 1px solid #2b2b2b; margin-top: 48px; padding-top: 22px; padding-bottom: 28px; font-size: .85rem; color: #8a8a8a; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 40px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 24px 24px;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #2e2e2e; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .hero__grid, .split, .faq, .cta__inner { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse > :first-child { order: 0; }
  .hero__media { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero__faja { width: 1500px; height: 400px; stroke-width: 30; }
  .local__head { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 340px; }
  .team { grid-template-columns: minmax(0, 460px); }
  .local__features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; gap: 10px; }
  .photo-frame--tall { max-width: 88%; }
  .local__features { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; align-items: start; }
  .step__n { grid-row: span 2; margin: 4px 0 0; box-shadow: none; }
  .hero__actions .btn { width: 100%; }
  .sticker--diamond { left: -8px; bottom: -28px; width: 96px; height: 96px; }
  .sticker--diamond strong { font-size: 1.6rem; }
  .sticker--pill { right: 6px; top: -14px; font-size: .85rem; }
  .photo-frame::before { inset: 14px -10px -14px 14px; }
  .cta__actions .btn, .cta__buttons { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { width: 54px; height: 54px; font-size: 1.6rem; right: 16px; bottom: 16px; }
}
