/* =========================================================
   GALLOS BRAHMA LOS FRESNOS — Hoja de estilos principal
   Paleta: crema, negro/grafito, dorado, rojo acento
   Fuente: Inter (body) + Playfair Display (títulos)
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --ink:        #11110f;
  --ink-soft:   #2a2925;
  --cream:      #f5ede0;
  --cream-2:    #fffaf2;
  --paper:      #fbf7ee;
  --gold:       #b88a35;
  --gold-2:     #d3ad62;
  --gold-light: #f0d080;
  --gold-pale:  rgba(184,138,53,.12);
  --red:        #8e1717;
  --red-soft:   rgba(142,23,23,.08);
  --muted:      #6b6459;
  --muted-2:    #928c82;
  --white:      #fff;
  --wa-green:   #1db954;
  --wa-hover:   #17a347;

  --line:        rgba(17,17,15,.1);
  --shadow:      0 28px 80px rgba(17,17,15,.18);
  --shadow-soft: 0 14px 44px rgba(17,17,15,.12);
  --shadow-xs:   0 6px 22px rgba(17,17,15,.08);
  --shadow-gold: 0 18px 50px rgba(184,138,53,.22);

  --radius:    30px;
  --radius-sm: 20px;
  --max:       1180px;
  --ease:      cubic-bezier(.2,.8,.2,1);
  --ease-snap: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 8% -4%,  rgba(184,138,53,.14),  transparent),
    radial-gradient(ellipse 55% 40% at 92% 8%,  rgba(142,23,23,.08),   transparent),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(184,138,53,.06), transparent),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Textura de grano sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(17,17,15,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,15,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  z-index: -1;
}

img        { max-width: 100%; display: block; }
a          { color: inherit; text-decoration: none; }
button, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(184,138,53,.28); }

/* ── Tipografía ─────────────────────────────────────────── */
h1, h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
  line-height: .92;
}
h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
h1 {
  max-width: 800px;
  margin-top: 20px;
  font-size: clamp(3.8rem, 9.5vw, 8.2rem);
  font-weight: 900;
  /* Gradiente sutil en el título */
  background: linear-gradient(160deg, var(--ink) 55%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 700;
}

/* ── Progreso de scroll ─────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: transparent;
}
.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
  background-size: 200% 100%;
  animation: shimmerBar 2.5s linear infinite;
  transition: width .1s linear;
}
@keyframes shimmerBar {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  width: min(calc(100% - 28px), var(--max));
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,252,244,.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 2px 0 rgba(255,255,255,.9) inset, 0 16px 40px rgba(17,17,15,.09);
  transition: box-shadow .3s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(17,17,15,.16), 0 0 0 2px rgba(184,138,53,.2);
}
.brand span { line-height: 1; }
.brand strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .95rem;
  letter-spacing: .01em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .58rem;
  font-weight: 700;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: background .22s var(--ease), color .22s var(--ease), transform .2s var(--ease);
}
.nav a:hover {
  background: var(--gold-pale);
  color: var(--ink);
  transform: translateY(-1px);
}
.nav .nav-cta {
  background: var(--ink);
  color: var(--cream-2);
  padding: 9px 20px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(17,17,15,.2);
}
.nav .nav-cta:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(142,23,23,.28);
  transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17,17,15,.22);
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.nav-toggle:hover { background: var(--red); transform: scale(1.06); }
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--cream-2);
  border-radius: 99px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Layout helpers ─────────────────────────────────────── */
main { position: relative; }

.section-grid,
.section,
.quick-cta,
.visual-band,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(64px, 8vw, 96px) 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .7rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
}

/* Subtítulo comercial */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.hero-tagline-bar {
  flex: 1;
  max-width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 99px;
}
.hero-tagline span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Lead */
.lead {
  max-width: 580px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.78;
}

/* Acciones hero */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Badges hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(184,138,53,.22);
  background: rgba(255,255,255,.52);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .83rem;
  font-weight: 500;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.hero-badges span::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  font-size: .75rem;
}
.hero-badges span:hover {
  border-color: rgba(184,138,53,.4);
  background: rgba(255,255,255,.8);
}

/* Visual hero */
.hero-visual {
  min-height: 660px;
  position: relative;
  display: grid;
  place-items: center;
}

.logo-card {
  position: relative;
  width: min(84%, 490px);
  border-radius: 40px;
  padding: 16px;
  background: rgba(255,252,244,.64);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow), 0 0 0 1px rgba(184,138,53,.08) inset;
  overflow: hidden;
  z-index: 2;
}
.logo-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 180deg, transparent, rgba(184,138,53,.2), transparent, rgba(142,23,23,.07), transparent);
  animation: spin 16s linear infinite;
  z-index: -1;
}
.logo-card img {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
}

/* Foto stack */
.photo-stack img {
  position: absolute;
  width: 215px;
  height: 270px;
  object-fit: cover;
  border: 9px solid rgba(255,252,244,.94);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  filter: saturate(1.06) contrast(1.03);
  transition: transform .4s var(--ease);
}
.photo-one { left: 0;    bottom: 66px; transform: rotate(-7deg); }
.photo-two { right: 6px; top: 54px;   transform: rotate(6deg); }
.hero-visual:hover .photo-one { transform: rotate(-10deg) translateX(-4px); }
.hero-visual:hover .photo-two { transform: rotate(9deg) translateX(4px); }

/* Float animation */
.float-card { animation: float 7s ease-in-out infinite; }

/* Shine dots */
.shine-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dot-a {
  width: 180px; height: 180px;
  top: 8%; left: 4%;
  background: radial-gradient(circle, rgba(184,138,53,.22), transparent 70%);
  filter: blur(4px);
  animation: pulse 5s infinite;
}
.dot-b {
  width: 140px; height: 140px;
  right: 8%; bottom: 15%;
  background: radial-gradient(circle, rgba(142,23,23,.18), transparent 70%);
  filter: blur(4px);
  animation: pulse 7s infinite .6s;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 800;
  font-size: .97rem;
  cursor: pointer;
  transition:
    transform .25s var(--ease-snap),
    box-shadow .25s var(--ease),
    background .25s var(--ease),
    color .25s var(--ease),
    border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform .22s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: scale(1.1); }
.btn:active { transform: translateY(-1px); }

/* Negro/oscuro (primario) */
.btn-primary {
  color: var(--cream-2);
  background: linear-gradient(135deg, #18150f 0%, #2e2318 60%, #1c1008 100%);
  box-shadow: 0 16px 38px rgba(17,17,15,.2), 0 1px 0 rgba(255,255,255,.08) inset;
  letter-spacing: .01em;
}
.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(17,17,15,.3), 0 1px 0 rgba(255,255,255,.08) inset;
}

/* Ghost */
.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,.52);
  border-color: rgba(17,17,15,.14);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(184,138,53,.5);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 28px rgba(184,138,53,.15);
}

/* Crema (sobre fondo oscuro) */
.btn-light {
  color: var(--ink);
  background: var(--cream-2);
  box-shadow: 0 14px 34px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.9) inset;
  font-weight: 800;
}
.btn-light:hover {
  background: #fff;
  box-shadow: 0 20px 44px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.9) inset;
}

/* WhatsApp verde */
.btn-wa {
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 16px 40px rgba(34,197,94,.32), 0 1px 0 rgba(255,255,255,.15) inset;
  letter-spacing: .01em;
}
.btn-wa:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 22px 52px rgba(34,197,94,.44), 0 1px 0 rgba(255,255,255,.15) inset;
}

.full { width: 100%; }

/* ── Quick-CTA WhatsApp ──────────────────────────────────── */
.quick-cta {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 32px;
  align-items: center;
  margin-top: 12px;
  padding: clamp(28px, 4.5vw, 50px);
  background: linear-gradient(135deg, #13100c 0%, #281807 55%, #6a1513 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
  position: relative;
  overflow: hidden;
}
.quick-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(211,173,98,.28), transparent 36%),
    radial-gradient(circle at 15% 85%, rgba(142,23,23,.16), transparent 30%);
  pointer-events: none;
}
/* Línea dorada decorativa */
.quick-cta::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,173,98,.5), transparent);
  pointer-events: none;
}
.quick-cta > * { position: relative; }
.quick-cta h2 { max-width: 680px; color: #fff; font-size: clamp(2rem, 4.5vw, 3.6rem); }
.quick-cta p  { margin-top: 14px; color: rgba(255,255,255,.65); line-height: 1.7; font-size: 1rem; }

/* Builder */
.wa-builder {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 20px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.2) inset;
}
.wa-builder label {
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wa-builder select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 0 36px 0 14px;
  color: #fff;
  background: rgba(0,0,0,.3);
  outline: none;
  cursor: pointer;
  transition: border-color .22s var(--ease), background .22s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d3ad62'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 011.06 0L10 11.94l3.72-3.72a.75.75 0 111.06 1.06l-4.25 4.25a.75.75 0 01-1.06 0L5.22 9.28a.75.75 0 010-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.wa-builder select:hover { border-color: rgba(211,173,98,.4); background-color: rgba(0,0,0,.4); }
.wa-builder select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(211,173,98,.15); }
.wa-builder option { color: var(--ink); background: #fff; }

/* ── Sección genérica ───────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}
.section-heading p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.06rem;
}

/* ── Features ───────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 32px 28px;
  border: 1px solid rgba(17,17,15,.08);
  background: rgba(255,252,244,.62);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition:
    transform .3s var(--ease-snap),
    box-shadow .3s var(--ease),
    background .3s var(--ease),
    border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(184,138,53,.15);
  background: rgba(255,252,244,.94);
  border-color: rgba(184,138,53,.14);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: var(--gold-2);
  font-weight: 900;
  font-size: .9rem;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(17,17,15,.2);
}
.feature h3 { margin-bottom: 0; }
.feature p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.68;
  font-size: .96rem;
}

/* ── Selector de colores ────────────────────────────────── */
.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.color-card {
  text-align: left;
  border: 1.5px solid rgba(17,17,15,.09);
  background: rgba(255,255,255,.55);
  border-radius: 26px;
  padding: 20px 18px 22px;
  min-height: 200px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    transform .28s var(--ease-snap),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease),
    background .25s var(--ease);
  position: relative;
  overflow: hidden;
}
/* Brillo superior en hover */
.color-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.color-card:hover::before,
.color-card.active::before { opacity: 1; }

.color-card:hover,
.color-card.active {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(184,138,53,.55);
  box-shadow: var(--shadow-soft), var(--shadow-gold);
  background: rgba(255,252,244,.96);
}
.color-card.active {
  border-width: 2px;
  border-color: var(--gold);
}

/* Dot indicador "activo" */
.color-card.active::after {
  content: "✓";
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 3px 10px rgba(184,138,53,.4);
}

.color-card strong {
  display: block;
  margin-top: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.25;
}
.color-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
  font-size: .8rem;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.color-card:hover .card-cta,
.color-card.active .card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Swatches */
.swatch {
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(17,17,15,.1);
  box-shadow: inset 0 1px 12px rgba(255,255,255,.4), 0 4px 14px rgba(17,17,15,.08);
  transition: filter .25s var(--ease);
}
.color-card:hover .swatch { filter: saturate(1.1) brightness(1.04); }

/* Blanco armiñado gris */
.swatch-gray {
  background: linear-gradient(135deg, #fafaf8 0%, #dddacf 42%, #6e6c67 100%);
}
/* Blanco armiñado azul — Es pizarra/grafito oscuro, NO azul */
.swatch-dark {
  background: linear-gradient(135deg, #f2ede4 0%, #aeaaa0 36%, #48453e 66%, #262422 100%);
}
/* Splash */
.swatch-splash {
  background:
    radial-gradient(circle at 28% 28%, #cac8c2 0 9%, transparent 10%),
    radial-gradient(circle at 70% 52%, #9a9993 0 7%, transparent 8%),
    radial-gradient(circle at 54% 78%, #b2afa8 0 5%, transparent 6%),
    radial-gradient(circle at 42% 60%, #d4d1ca 0 4%, transparent 5%),
    linear-gradient(135deg, #fffaf2, #d5d2c8);
}
/* Buff */
.swatch-buff {
  background: linear-gradient(135deg, #ffeec0 0%, #dfaa3e 50%, #c08820 100%);
}
/* Dorado */
.swatch-gold {
  background: linear-gradient(135deg, #f5d580 0%, #c68a1a 55%, #7a4c10 100%);
}

/* ── Banda visual (CTA sobre imagen) ────────────────────── */
.visual-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  background:
    linear-gradient(100deg, rgba(13,11,8,.92) 0%, rgba(17,13,8,.72) 55%, rgba(100,20,15,.5) 100%),
    url('../assets/gallery/hero-real.webp') center / cover no-repeat;
  border-radius: var(--radius);
  min-height: 300px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
/* Línea dorada superior */
.visual-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
  opacity: .7;
}
.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(184,138,53,.18), transparent 50%);
  pointer-events: none;
}
.visual-band > * { position: relative; z-index: 1; }
.visual-band h2  { max-width: 720px; color: #fff; font-size: clamp(2rem, 4.5vw, 3.8rem); }
.visual-band p   { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.72); line-height: 1.72; font-size: 1rem; }

/* ── Galería ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}
.gallery-item {
  position: relative;
  height: 430px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease-snap);
}
.gallery-item:first-child { height: 530px; }
.gallery-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04) brightness(1.02);
}
.gallery-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(17,17,15,.7);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.gallery-item:hover .gallery-label {
  background: rgba(17,17,15,.86);
  transform: translateY(-2px);
}
/* Ícono de zoom en galería */
.gallery-item::after {
  content: "⤢";
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  background: rgba(17,17,15,.52);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s var(--ease), transform .25s var(--ease-snap);
}
.gallery-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Panel de contacto ──────────────────────────────────── */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  background: rgba(255,252,244,.8);
  border: 1px solid rgba(17,17,15,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 88px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
  opacity: .4;
}
.contact-panel p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}
.contact-actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.copy-phone {
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid rgba(17,17,15,.12);
  background: rgba(255,255,255,.64);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  transition:
    transform .22s var(--ease-snap),
    background .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease);
}
.copy-phone:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(184,138,53,.38);
  box-shadow: 0 6px 22px rgba(184,138,53,.12);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 56px;
  border-top: 1px solid rgba(17,17,15,.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(17,17,15,.14);
}
.footer-brand p {
  color: var(--muted);
  line-height: 1.5;
  font-size: .88rem;
}
.footer-brand strong { color: var(--ink); }
.footer-wa {
  color: var(--gold);
  font-weight: 800;
  font-size: .9rem;
  border-bottom: 1.5px solid rgba(184,138,53,.32);
  padding-bottom: 2px;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.footer-wa:hover {
  color: var(--gold-2);
  border-color: var(--gold-2);
}

/* ── Botón flotante WhatsApp ────────────────────────────── */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 28px rgba(34,197,94,.42), 0 2px 0 rgba(255,255,255,.15) inset;
  animation: waPulse 2.8s infinite;
  transition: background .22s var(--ease), transform .22s var(--ease-snap);
}
.float-wa:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  animation: none;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 38px rgba(34,197,94,.5), 0 2px 0 rgba(255,255,255,.15) inset;
}
.float-wa svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,11,8,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-height: 86svh;
  width: min(100%, 980px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0,0,0,.56);
  transform: scale(.96);
  transition: transform .3s var(--ease-snap);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .22s var(--ease), transform .22s var(--ease-snap);
}
.lightbox-close:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.1) rotate(90deg);
}

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 20px);
  z-index: 140;
  background: var(--ink);
  color: var(--gold-2);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(211,173,98,.3);
  box-shadow: var(--shadow-soft);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease-snap);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Animaciones de entrada ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.982);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .28s; }
.delay-3 { transition-delay: .42s; }

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0)    rotate(.25deg); }
  50%       { transform: translateY(-16px) rotate(-.3deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(.9);  opacity: .5; }
  50%       { transform: scale(1.1); opacity: .88; }
}
@keyframes waPulse {
  0%, 100% { transform: translateY(0);   box-shadow: 0 8px 28px rgba(34,197,94,.42); }
  50%       { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(34,197,94,.56); }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */

/* Tablet grande */
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }
  .hero-visual {
    min-height: 560px;
    order: -1;
  }
  .logo-card   { width: min(70%, 430px); }
  .photo-one   { left: 6%; }
  .photo-two   { right: 6%; }
  .color-grid  { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:first-child {
    grid-column: 1 / -1;
    height: 460px;
  }
}

/* Tablet pequeño / móvil */
@media (max-width: 820px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  /* Hamburger visible */
  .nav-toggle { display: inline-flex; }

  /* Nav desplegable */
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255,252,244,.97);
    border: 1px solid rgba(17,17,15,.08);
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a, .nav .nav-cta { text-align: center; }

  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero { min-height: auto; padding-top: 40px; }

  .quick-cta,
  .visual-band,
  .contact-panel,
  .site-footer { grid-template-columns: 1fr; }

  .quick-cta { margin-top: 0; gap: 24px; }
  .feature-row { grid-template-columns: 1fr; }
  .color-grid  { grid-template-columns: 1fr 1fr; }

  .visual-band .btn { width: 100%; }

  .site-footer {
    text-align: center;
    justify-items: center;
    flex-direction: column;
  }
  .footer-brand { flex-direction: column; text-align: center; }
}

/* Móvil chico */
@media (max-width: 620px) {
  body::before { background-size: 40px 40px; }

  .brand img    { width: 42px; height: 42px; }
  .brand strong { font-size: .82rem; }
  .brand small  { font-size: .55rem; }

  .hero-visual  { min-height: 420px; }
  .logo-card    { width: min(82%, 310px); border-radius: 26px; padding: 10px; }
  .logo-card img { border-radius: 18px; }

  .photo-stack img {
    width: 124px;
    height: 158px;
    border-width: 6px;
    border-radius: 18px;
  }
  .photo-one { left: 0; bottom: 46px; }
  .photo-two { right: 0; top: 30px;  }

  .hero-actions .btn { width: 100%; }
  .hero-badges span  { width: 100%; text-align: center; justify-content: center; }

  .color-grid  { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item:first-child { height: 340px; }

  .contact-actions .btn  { width: 100%; }
  .contact-actions .copy-phone { width: 100%; }

  .float-wa { width: 58px; height: 58px; right: 14px; bottom: 14px; }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
