/* ==========================================================================
   EL LEGADO 0.0% — HOTELES DE LUJO, RESORTS & F&B CORPORATIVO (hoteles.ellegadodrinks.es)
   White & Gold Haute Hospitality Design System
   ========================================================================== */

:root {
  /* Luxury Light Palette (Ivory, Champagne Gold, Pure White & Slate) */
  --bg-light-body: #fbf9f5;
  --bg-light-surface: #ffffff;
  --bg-light-card: #ffffff;
  --bg-light-card-hover: #fdfbf7;
  --bg-alt-section: #f4f0e6;
  --bg-footer: #14181f;

  --gold-primary: #c59b27;
  --gold-light: #dfb54b;
  --gold-bright: #ecd093;
  --gold-dark: #8c6a12;
  --gold-gradient: linear-gradient(135deg, #dfb54b 0%, #c59b27 50%, #8c6a12 100%);
  --gold-glow: rgba(197, 155, 39, 0.25);

  --border-gold-subtle: rgba(197, 155, 39, 0.28);
  --border-gold-strong: rgba(197, 155, 39, 0.6);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --text-dark-title: #111827;
  --text-dark-body: #374151;
  --text-dark-muted: #6b7280;
  --text-light-title: #ffffff;
  --text-light-muted: #9ca3af;

  --font-cinzel: 'Cinzel', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 45px rgba(197, 155, 39, 0.16);
  --shadow-gold: 0 8px 24px rgba(197, 155, 39, 0.28);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light-body);
  color: var(--text-dark-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* HEADER / NAV (WHITE LUXURY STICKY) */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark-body);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-cta-btn {
  background: var(--gold-gradient);
  color: #0d0e10 !important;
  font-weight: 700 !important;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.5);
}

.lang-selector-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dark-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--gold-gradient);
  color: #0d0e10;
}

/* HERO SECTION (ROCÍO ON THE LEFT - WHITE / GOLD HOSPITALITY) */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 120px 48px 90px;
  background: url('assets/img/hero_hotel_rocio.jpg') left center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 249, 245, 0.1) 0%, rgba(251, 249, 245, 0.45) 42%, rgba(251, 249, 245, 0.94) 64%, rgba(251, 249, 245, 0.98) 100%),
              linear-gradient(180deg, rgba(251, 249, 245, 0.3) 0%, transparent 35%, rgba(251, 249, 245, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin: 0;
  text-align: left;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-badge {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.hero-badge.badge-gold {
  background: rgba(197, 155, 39, 0.14);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-dark);
  font-weight: 700;
}

.hero-badge.badge-light-glass {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-dark-body);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.16;
  color: var(--text-dark-title);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dark-body);
  margin-bottom: 35px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: #0d0e10;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.btn-gold-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(197, 155, 39, 0.45);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold-strong);
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(197, 155, 39, 0.12);
  transform: translateY(-3px);
}

.hero-key-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.metric-item {
  text-align: left;
  flex: 1;
}

.metric-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

/* SECTION GLOBAL HEADERS */
.section-container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 55px;
}

.section-header-left {
  text-align: left;
  max-width: 860px;
  margin-bottom: 50px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark-title);
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.08rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

/* VALUE PILLARS (1 ROW - 4 COLUMNS) */
.value-pillars-section {
  padding: 95px 24px;
  background: var(--bg-alt-section);
  border-bottom: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  background: var(--bg-light-card-hover);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-hover);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--text-dark-title);
  margin-bottom: 12px;
  line-height: 1.35;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  line-height: 1.65;
}

/* WINES & CATALOG SECTION (3:4 VERTICAL CARDS) */
.wines-section {
  padding: 95px 24px;
  background: var(--bg-light-body);
  border-bottom: 1px solid var(--border-subtle);
}

.wines-section.section-alt-bg {
  background: var(--bg-alt-section);
}

.wines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.wine-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wine-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-hover);
}

.wine-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold-gradient);
  color: #0d0e10;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.wine-card-image-wrap {
  width: 100%;
  height: 480px;
  background: #f4f0eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wine-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wine-card:hover .wine-card-img {
  transform: scale(1.03);
}

.wine-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wine-sku {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.wine-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark-title);
  margin-bottom: 12px;
}

.wine-desc {
  font-size: 0.94rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.wine-meta-box {
  background: rgba(197, 155, 39, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--text-dark-body);
  margin-bottom: 22px;
  margin-top: auto;
}

.wine-meta-box strong {
  color: var(--gold-dark);
}

.btn-card-action {
  width: 100%;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-card-action:hover {
  background: var(--gold-gradient);
  color: #0d0e10;
}

/* LOGISTICS & SERVICE FOR HOTELS (4 CARDS - 1 ROW) */
.logistics-section {
  padding: 95px 24px;
  background: var(--bg-alt-section);
  border-bottom: 1px solid var(--border-subtle);
}

.logistics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.logistics-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.logistics-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-hover);
}

.log-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 14px;
  line-height: 1;
}

.logistics-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark-title);
  margin-bottom: 12px;
  line-height: 1.35;
}

.logistics-card p {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

/* CONTACT & HOMOLOGATION FORM */
.contact-section {
  padding: 100px 24px 90px;
  background: var(--bg-light-body);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding-right: 15px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-dark-title);
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.contact-direct-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.contact-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-dark-title);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.4;
}

.contact-form-wrap {
  background: var(--bg-light-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-hover);
}

.luxury-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark-title);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fbf9f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-dark-title);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
  background: #ffffff;
}

.form-group select option {
  background: #ffffff;
  color: #111827;
}

.btn-gold-submit {
  width: 100%;
  background: var(--gold-gradient);
  color: #0d0e10;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 17px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-gold-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(197, 155, 39, 0.45);
}

.form-feedback-box {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
}

.form-feedback-box.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid #25d366;
  color: #15803d;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 580px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--gold-gradient);
  color: #000;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FOOTER (DARK CONTRAST) */
.footer-section {
  background: var(--bg-footer);
  color: var(--text-light-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 24px 40px;
  width: 100%;
  clear: both;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.footer-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  max-width: 580px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  font-size: 0.82rem;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .pillars-grid,
  .logistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 60px;
    justify-content: center;
    background-position: center;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-key-metrics {
    flex-direction: column;
    align-items: flex-start;
  }
  .metric-divider {
    display: none;
  }
  .pillars-grid,
  .logistics-grid,
  .wines-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
