/* ============================================================
   MANTRA GROUP — LUXURY HOSPITALITY WEBSITE
   Design System: Dark elegance, warm gold, serif typography
   ============================================================ */

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

:root {
  --black:      #080808;
  --deep:       #0f0f0f;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim:   #7a6330;
  --white:      #f5f0ea;
  --white-dim:  #a09080;
  --accent:     #8b5e3c;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-display:'Cinzel', serif;
  --font-sans:   'Inter', sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 100px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* evita scroll horizontal en iOS */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Ancho máximo garantizado */
  max-width: 100vw;
}

/* Global: todas las imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── FLOATING NAV ─────────────────────────────────────────── */
.nav-floating {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--r-pill);
  padding: 12px 28px 12px 16px;
  transition: var(--transition);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(201,168,76,0.1);
}

.nav-floating.scrolled {
  background: rgba(8, 8, 8, 0.9);
  top: 16px;
  box-shadow: 0 12px 64px rgba(0,0,0,0.8), 0 0 0 0.5px rgba(201,168,76,0.2);
}

.nav-logo-tag {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-letter {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.85);
  z-index: -1;
  will-change: transform;
}

/* iOS Safari: position fixed falla dentro de overflow:hidden */
@supports (-webkit-touch-callout: none) {
  .hero-bg {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.3) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.5) 75%,
    rgba(8,8,8,0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeUp 1.2s ease-out 0.3s both;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: rgba(245,240,234,0.7);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 16px 40px;
  border-radius: var(--r-pill);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.5);
}

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(245,240,234,0.3);
  padding: 16px 40px;
  border-radius: var(--r-pill);
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 2s ease-out 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ── SECTION SHARED ───────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-eyebrow.light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}

.section-title.light {
  color: var(--white);
}

/* ── NOSOTROS ─────────────────────────────────────────────── */
.nosotros-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.nosotros-image-col {
  position: relative;
  overflow: hidden;
}

.nosotros-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) saturate(0.9);
  transition: transform 0.8s ease;
}

.nosotros-image-col:hover .nosotros-main-img {
  transform: scale(1.03);
}

.nosotros-badge {
  position: absolute;
  bottom: 48px;
  right: -1px;
  background: var(--gold);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
}

.badge-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(8,8,8,0.7);
  white-space: nowrap;
}

.nosotros-content-col {
  background: var(--surface);
  padding: 100px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nosotros-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(245,240,234,0.65);
  margin-top: 24px;
}

.nosotros-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(201,168,76,0.2);
}

/* ── GALERÍA ──────────────────────────────────────────────── */
.galeria-section {
  background: var(--deep);
  padding: 120px 0 0;
}

.galeria-header {
  text-align: center;
  padding: 0 40px 72px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 3px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.galeria-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1.0);
}

.galeria-tall {
  grid-row: span 2;
}

.galeria-wide {
  grid-column: span 2;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── HISTORIA TIMELINE ────────────────────────────────────── */
.historia-section {
  position: relative;
  background: var(--deep);
  padding: 140px 80px;
  overflow: hidden;
}

.historia-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.historia-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.historia-header {
  text-align: center;
  margin-bottom: 100px;
}

.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1;
  text-align: right;
  padding-top: 2px;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.timeline-content p {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
}

/* ── MARCAS / LOGOS ───────────────────────────────────────── */
.marcas-section {
  background: var(--black);
  padding: 140px 80px;
  text-align: center;
}

.marcas-header {
  margin-bottom: 80px;
}

.logos-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.45;
  filter: grayscale(1);
}

.logo-item:last-child {
  border-right: none;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(201,168,76,0.04);
}

.logo-icon {
  font-size: 28px;
  margin-bottom: 4px;
  filter: grayscale(1) brightness(2);
  transition: filter var(--transition);
}

.logo-item:hover .logo-icon {
  filter: grayscale(0) brightness(1);
}

.logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.logos-image {
  display: none; /* removed per user request */
}

/* ── BRAND LOGOS STRIP (real images) ─────────────────────── */
.logos-brand-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  overflow: hidden;
}

.brand-logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.5;
  filter: grayscale(1) brightness(1.8);
  background: transparent;
}

.brand-logo-item:last-child {
  border-right: none;
}

.brand-logo-item:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  background: rgba(201,168,76,0.03);
}

.brand-logo-img {
  width: 100%;
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.brand-logo-item:hover .brand-logo-img {
  transform: scale(1.05);
}

.marcas-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  margin-top: 12px;
  opacity: 0.7;
}

/* ── CONTACT BAND ─────────────────────────────────────────── */
.contact-band {
  position: relative;
  background: var(--deep);
  overflow: hidden;
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 0;
}

/* Ambient glow decoration */
.contact-band::before {
  content: '';
  position: absolute;
  top: -160px;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-band::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,94,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-band-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* ─ Left: text column ─ */
.contact-band-text {
  padding: 100px 80px 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(201,168,76,0.08);
  position: relative;
}

/* Decorative vertical line accent */
.contact-band-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 80px;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 30%, var(--gold) 50%, var(--gold-dim) 70%, transparent);
  border-radius: 2px;
}

.contact-band-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.contact-band-title em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.contact-band-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-dim);
  max-width: 340px;
  margin-bottom: 36px;
}

/* ─ Contact info list ─ */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.contact-info-item:hover {
  color: var(--white);
}

.contact-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(201,168,76,0.18);
}

.contact-info-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.contact-info-item a:hover {
  color: var(--gold-light);
}

/* Trust badges (kept for compat) */
.contact-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(160,144,128,0.7);
  letter-spacing: 0.04em;
}

.contact-trust-item::before {
  content: '✦';
  color: var(--gold);
  font-size: 8px;
  flex-shrink: 0;
}

/* ─ Right: form card ─ */
.contact-form-wrap {
  padding: 60px 60px 60px 80px;
  display: flex;
  align-items: center;
}

.contact-form-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 0.5px rgba(201,168,76,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

/* Card inner glow top */
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
}

.contact-card-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.contact-card-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ─ Input (stacked, full-width) ─ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-input-wrap {
  position: relative;
}

.contact-input-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(160,144,128,0.6);
  margin-bottom: 8px;
}

.contact-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--r-md);
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-input:focus {
  border-color: rgba(201,168,76,0.55);
  background: rgba(201,168,76,0.04);
  box-shadow:
    0 0 0 3px rgba(201,168,76,0.08),
    0 4px 20px rgba(0,0,0,0.3);
}

.contact-input::placeholder {
  color: rgba(160,144,128,0.35);
}

.contact-input.error {
  border-color: rgba(248,113,113,0.5);
  background: rgba(248,113,113,0.04);
}

/* ─ Submit button (full width) ─ */
.contact-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b8922e 100%);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 18px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #060606;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.25);
  position: relative;
  overflow: hidden;
}

.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 48px rgba(201,168,76,0.45);
}

.contact-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8,8,8,0.25);
  border-top-color: #060606;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-btn.loading .btn-label { display: none; }
.contact-btn.loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ─ Sent state (botón verde) ─ */
.contact-btn.sent {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 60%, #16a34a 100%);
  box-shadow: 0 8px 32px rgba(34,197,94,0.35);
  cursor: default;
  opacity: 1 !important;
  letter-spacing: 0.15em;
  color: #fff;
}

.contact-btn.sent:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(34,197,94,0.35);
}

.contact-btn.sent::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.btn-sent-check {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  animation: checkPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes checkPop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

/* ─ Inline success message (reemplaza el input) ─ */
.inline-success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-md);
  animation: fadeUp 0.5s ease-out both;
}

.inline-success-icon {
  font-size: 20px;
  color: #4ade80;
  flex-shrink: 0;
  animation: checkPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

.inline-success-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.inline-success-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.5;
}

.inline-success-sub strong {
  color: #4ade80;
  font-weight: 500;
}

/* Error message */
.contact-error {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
  letter-spacing: 0.02em;
  padding-left: 4px;
}

/* ─ Success state ─ */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
  animation: fadeUp 0.6s ease-out both;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.01em;
}

.success-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 280px;
}

.success-sub strong {
  color: var(--gold-light);
  font-weight: 500;
}

/* ─ Responsive ─ */
@media (max-width: 1024px) {
  .contact-band-inner { grid-template-columns: 1fr; min-height: auto; }
  .contact-band-text {
    padding: 80px 48px 48px;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }
  .contact-band-text::before { display: none; }
  .contact-form-wrap { padding: 48px; }
}

@media (max-width: 600px) {
  .contact-band-text { padding: 60px 28px 40px; }
  .contact-form-wrap { padding: 32px 28px 48px; }
  .contact-form-card { padding: 36px 28px; }
}



.contact-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-band-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-band-title em {
  font-style: italic;
  color: var(--gold-light);
}

.contact-band-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 380px;
}

.contact-form-wrap {
  width: 100%;
}

/* ─ Input group ─ */
.contact-input-group {
  display: flex;
  gap: 0;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-input-group:focus-within {
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.contact-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contact-input::placeholder {
  color: rgba(160,144,128,0.5);
}

/* Error state */
.contact-input.error {
  color: #f87171;
}

.contact-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  outline: none;
  cursor: pointer;
  padding: 18px 32px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  justify-content: center;
}

.contact-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f0d890, var(--gold-light));
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.contact-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(8,8,8,0.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-btn.loading .btn-label { display: none; }
.contact-btn.loading .btn-spinner { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.contact-error {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #f87171;
  margin-top: 10px;
  padding-left: 20px;
  min-height: 18px;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

/* ─ Success state ─ */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: fadeUp 0.6s ease-out both;
}

.success-icon {
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.01em;
}

.success-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 340px;
}

.success-sub strong {
  color: var(--gold-light);
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact-band { padding: 72px 40px; }
  .contact-band-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-band-sub { max-width: 100%; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 80px 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-letter {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 280px;
}

.footer-links-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col ul li,
.footer-links-col ul li a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(160,144,128,0.5);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── RESPONSIVE — TABLET ──────────────────────────────────── */
@media (max-width: 1024px) {
  .nosotros-section { grid-template-columns: 1fr; }
  .nosotros-image-col { height: 55vw; min-height: 280px; }
  .nosotros-content-col { padding: 72px 48px; }
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 260px);
  }
  .galeria-tall { grid-row: span 1; }
  .galeria-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ── RESPONSIVE — MÓVIL iPhone y ≤768px ─────────────────── */
@media (max-width: 768px) {

  /* ─ Nav ─ */
  .nav-floating {
    left: 12px; right: 12px;
    transform: none;
    top: 14px;
    gap: 12px;
    padding: 10px 14px;
    max-width: calc(100vw - 24px);
  }
  .nav-links { display: none; }

  /* ─ Hero ─ */
  .hero-section {
    height: 100svh;
    min-height: 100svh;
  }
  /* iOS Safari no soporta position:fixed bien — forzar absolute */
  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
  }
  .hero-content {
    padding: 0 20px;
    max-width: 100%;
  }
  .hero-title { font-size: clamp(38px, 10vw, 68px); }
  .hero-subtitle { font-size: 14px; max-width: 100%; }
  .btn-primary, .btn-ghost { padding: 14px 28px; font-size: 11px; }

  /* ─ Nosotros ─ */
  .nosotros-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .nosotros-image-col { height: 56vw; min-height: 240px; }
  .nosotros-content-col { padding: 48px 24px; }
  .nosotros-badge { bottom: 20px; padding: 14px 18px; }
  .badge-number { font-size: 34px; }
  .nosotros-stats { margin-top: 32px; padding-top: 24px; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 10px; }

  /* ─ Galería ─ */
  .galeria-section { padding: 72px 0 0; }
  .galeria-header { padding: 0 24px 40px; }
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2px;
  }
  .galeria-item { height: 58vw; min-height: 200px; }
  .galeria-wide, .galeria-tall { grid-column: span 1; grid-row: span 1; }

  /* ─ Historia / Timeline ─ */
  .historia-section { padding: 80px 24px; }
  .historia-header { margin-bottom: 48px; }
  .historia-bg-text { font-size: 72px; opacity: 0.03; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 10px; }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    margin-bottom: 40px;
    /* CRÍTICO: Siempre visible en iOS — IntersectionObserver puede no disparar */
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
  }
  .timeline-item::before { left: -26px; width: 8px; height: 8px; }
  .timeline-year { font-size: 20px; }
  .timeline-content h3 { font-size: 17px; }
  .timeline-content p { font-size: 13px; line-height: 1.7; }

  /* ─ Marcas / Logos ─ */
  .marcas-section { padding: 72px 16px; }
  .marcas-sub { font-size: 12px; }
  .logos-brand-strip {
    flex-wrap: wrap;
    border-bottom: none;
  }
  .brand-logo-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 32px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.8;
    filter: grayscale(0.2) brightness(1.5);
  }
  .brand-logo-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .brand-logo-item:last-child,
  .brand-logo-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .brand-logo-img {
    max-width: 130px;
    max-height: 56px;
    margin: 0 auto;
  }

  /* ─ Contacto ─ */
  .contact-band-inner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 0;
  }
  .contact-band-text {
    padding: 56px 24px 36px;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }
  .contact-band-text::before { display: none; }
  .contact-form-wrap { padding: 36px 24px 56px; }
  .contact-form-card { padding: 28px 20px; }
  .contact-info-list { gap: 12px; }

  /* ─ Footer ─ */
  .footer { padding: 0 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 24px 36px;
  }
  .footer-bottom { padding: 24px 24px 0; }
}

/* ── Tablet: logos 2×2 ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .logos-brand-strip { flex-wrap: wrap; }
  .brand-logo-item {
    flex: 0 0 50%;
    max-width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.65;
  }
  .brand-logo-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .brand-logo-item:last-child,
  .brand-logo-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
}





