/* =============================================================
   PANES DEL MUNDO — style.css
   Paleta, tipografía y layout mobile-first
   ============================================================= */

/* ── Variables globales ──────────────────────────────────────── */
:root {
  --color-cream:   #FAF7F2;
  --color-brown:   #3D2B1F;
  --color-gold:    #C9963A;
  --color-ink:     #1A1108;
  --color-white:   #FFFFFF;
  --color-wa:      #25D366;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'Space Mono', monospace;

  --divider: 1px solid rgba(61, 43, 31, 0.18);
  --radius-btn: 4px;
  --section-pad: 80px 24px;
  --section-pad-mobile: 56px 20px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-ink);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

/* ── Tipografía base ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Foco accesible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────── */
/*  NAVEGACIÓN                                                     */
/* ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-cream);
  border-bottom: var(--divider);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 16px rgba(26, 17, 8, 0.08);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-brown);
  text-transform: uppercase;
}

.nav__links {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-brown);
}

.nav__cta {
  display: none;
  background: var(--color-brown);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav__cta:hover {
  opacity: 0.88;
}

/* Hamburguesa */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menú móvil */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--color-cream);
  border-top: var(--divider);
  padding: 16px 24px 24px;
}

.nav__mobile-menu.active {
  display: flex;
}

.nav__mobile-menu a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-ink);
  border-bottom: var(--divider);
}

.nav__mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 16px;
  background: var(--color-brown);
  color: var(--color-white);
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
}

/* ─────────────────────────────────────────────────────────────── */
/*  HERO                                                           */
/* ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  background-image: url('../images/IMG_7955.JPG');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,17,8,0.30), rgba(26,17,8,0.62));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 64px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.08;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero__subheadline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(250, 247, 242, 0.88);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-wa);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  transition: opacity 0.2s;
}

.btn-wa:hover { opacity: 0.9; }

.btn-wa svg { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
    align-items: center;
  }

  .hero__content {
    padding: 80px 48px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  SECCIÓN BASE (usada en múltiples secciones)                    */
/* ─────────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad-mobile);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(26, 17, 8, 0.72);
  max-width: 560px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-pad);
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  DIFERENCIAL                                                     */
/* ─────────────────────────────────────────────────────────────── */
.diferencial {
  background: var(--color-white);
  border-top: var(--divider);
}

.diferencial__header {
  margin-bottom: 56px;
}

.diferencial__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.diferencial__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.pilar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilar__icon {
  width: 40px;
  height: 40px;
  color: var(--color-brown);
  flex-shrink: 0;
}

.pilar__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink);
}

.pilar__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(26, 17, 8, 0.72);
  line-height: 1.7;
  max-width: 360px;
}

.diferencial__image-wrap {
  display: none;
}

.diferencial__img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .diferencial__pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .diferencial__layout {
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
  }

  .diferencial__image-wrap {
    display: block;
    position: sticky;
    top: 88px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  PRODUCTOS                                                       */
/* ─────────────────────────────────────────────────────────────── */
.productos {
  background: var(--color-cream);
  border-top: var(--divider);
}

.productos__header {
  margin-bottom: 48px;
}

.productos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: 2px;
  overflow: hidden;
  border: var(--divider);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 17, 8, 0.10);
}

.card__img-wrap {
  overflow: hidden;
}

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img {
  transform: scale(1.04);
}

.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-brown);
  color: var(--color-gold);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  align-self: flex-start;
}

.card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}

.card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(26, 17, 8, 0.68);
  line-height: 1.65;
}

.productos__footer-cta {
  margin-top: 48px;
  text-align: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-brown);
  border-bottom: 1px solid var(--color-brown);
  padding-bottom: 2px;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 12px;
}

@media (min-width: 600px) {
  .productos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .productos__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  TIPO DE NEGOCIO                                                 */
/* ─────────────────────────────────────────────────────────────── */
.negocios {
  background: var(--color-brown);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.negocios__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
}

.negocios .section__inner {
  position: relative;
  z-index: 1;
}

.negocios .section__label {
  color: var(--color-gold);
}

.negocios .section__title {
  color: var(--color-white);
}

.negocios .section__subtitle {
  color: rgba(250, 247, 242, 0.72);
}

.negocios__header {
  margin-bottom: 52px;
}

.negocios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.negocio-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(250, 247, 242, 0.14);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.negocio-card:hover {
  border-color: rgba(201, 150, 58, 0.4);
  background: rgba(250, 247, 242, 0.04);
}

.negocio-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.negocio-card__content {}

.negocio-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.negocio-card__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.72);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .negocios__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  COBERTURA                                                       */
/* ─────────────────────────────────────────────────────────────── */
.cobertura {
  background: var(--color-cream);
  border-top: var(--divider);
}

.cobertura__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.cobertura__text-col {}

.cobertura__text-col .section__title {
  margin-bottom: 20px;
}

.cobertura__text-col p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(26, 17, 8, 0.72);
  line-height: 1.72;
  margin-bottom: 32px;
}

.cobertura__map-col {
  display: flex;
  justify-content: center;
}

.cobertura__map-col svg {
  max-width: 280px;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .cobertura__layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .cobertura__map-col svg {
    max-width: 360px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  CTA FINAL                                                       */
/* ─────────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--color-brown);
  color: var(--color-white);
  text-align: center;
  padding: 80px 24px;
}

.cta-final .section__inner {
  max-width: 700px;
}

.cta-final__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-final__sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.78);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-wa--large {
  font-size: 1.05rem;
  padding: 18px 36px;
}

/* ─────────────────────────────────────────────────────────────── */
/*  FOOTER                                                          */
/* ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 56px 24px 36px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  margin-bottom: 28px;
}

.footer__brand {}

.footer__wordmark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer__links-col {}

.footer__links-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
  margin-bottom: 16px;
}

.footer__links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links-list a {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.2s;
}

.footer__links-list a:hover {
  color: var(--color-cream);
}

.footer__social-col {}

.footer__social-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
  margin-bottom: 16px;
}

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--color-cream);
}

.footer__social-link svg {
  flex-shrink: 0;
  color: rgba(250, 247, 242, 0.5);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(250, 247, 242, 0.38);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  BOTÓN FLOTANTE WHATSAPP                                         */
/* ─────────────────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-wa);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
  opacity: 0;
  transform: scale(0.5);
}

.wa-fab.visible {
  opacity: 1;
  transform: scale(1);
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.wa-fab:focus-visible {
  outline: 2px solid var(--color-wa);
  outline-offset: 4px;
}

/* Tooltip desktop */
.wa-fab__tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--color-ink);
  color: var(--color-cream);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.wa-fab__tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-ink);
  border-right: none;
}

@media (hover: hover) {
  .wa-fab:hover .wa-fab__tooltip {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─────────────────────────────────────────────────────────────── */
/*  UTILIDADES                                                      */
/* ─────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
