/* ==============================================================================
   HACIENDA PUERTA DEL SUR - ESTILOS LUXURY COMPARTIDOS
   Diseñado para Wedding Planners, Organizadores Corporativos y Productores
   ============================================================================== */

:root {
  --bg-dark: #070B14;
  --bg-navy: #0C1527;
  --bg-card: #0F1A2F;
  --bg-card-hover: #15243F;
  --bg-glass: rgba(12, 21, 39, 0.88);
  --border-glass: rgba(216, 188, 125, 0.22);
  --border-gold-glow: rgba(216, 188, 125, 0.55);

  --gold-primary: #D8BC7D;
  --gold-light: #F6ECCF;
  --gold-dark: #9F792B;
  --gold-gradient: linear-gradient(135deg, #FDF7EB 0%, #D8BC7D 50%, #9F792B 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFFFFF 0%, #E7D2A1 50%, #B8903F 100%);

  --emerald-dark: #0D261C;
  --emerald-accent: #1E5C43;
  --emerald-light: #34D399;
  --emerald-glow: rgba(52, 211, 153, 0.25);

  --text-white: #FFFFFF;
  --text-pearl: #FAF8F5;
  --text-muted: rgba(250, 248, 245, 0.78);
  --text-dim: rgba(250, 248, 245, 0.52);

  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 8px 32px rgba(216, 188, 125, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-pearl);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(27, 82, 60, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(216, 188, 125, 0.06) 0%, transparent 45%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(216, 188, 125, 0.09);
  border: 1px solid var(--border-glass);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-white);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.text-center {
  text-align: center;
}

/* BOTONES LUXURY */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070B14;
  font-weight: 800;
  box-shadow: 0 4px 22px rgba(216, 188, 125, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(216, 188, 125, 0.55);
}

.btn-outline {
  background: rgba(12, 21, 39, 0.6);
  color: var(--text-pearl);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(216, 188, 125, 0.12);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #1E5C43 0%, #113627 100%);
  color: var(--text-white);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 20px rgba(17, 54, 39, 0.4);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #277757 0%, #174934 100%);
  box-shadow: 0 6px 26px var(--emerald-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.70rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
}

/* ==============================================================================
   NAVBAR GLASS LUXURY (ESTRUCTURA DE PESTAÑAS)
   ============================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navbar .container {
  max-width: 1400px;
  padding: 0 16px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 10px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 15px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text-pearl);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--gold-primary);
}

.navbar-link:hover::after, .navbar-link.active::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar-cta .btn {
  padding: 6px 13px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hamburger-btn {
  display: none;
  font-size: 1.6rem;
  color: var(--gold-light);
  padding: 6px;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  background: rgba(7, 11, 20, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px 28px 36px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 999;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateY(0);
}

/* ==============================================================================
   PAGE HEADER / HERO DE PÁGINA ESPECÍFICA
   ============================================================================== */
.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 70px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.75) 0%,
    rgba(7, 11, 20, 0.88) 70%,
    rgba(7, 11, 20, 1) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-white);
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.page-hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-pearl);
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.75;
}

/* ==============================================================================
   SECCIONES Y COMPONENTES EDITORIALES
   ============================================================================== */
.section-padding {
  padding: 95px 0;
}

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

/* SPOTLIGHT CARD (EDITORIAL 2 COLUMNAS) */
.spotlight-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 50px;
}

.spotlight-card.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.spotlight-card.reverse .spotlight-media {
  order: 2;
}

.spotlight-card.reverse .spotlight-body {
  order: 1;
}

.spotlight-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
}

.spotlight-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 30px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-pearl);
  line-height: 1.6;
}

.feature-list li .bullet {
  color: var(--gold-primary);
  font-size: 1.1rem;
  line-height: 1;
}

/* BENEFIT PILLARS */
.pillars-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.pillar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.pillar-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-gold);
}

.pillar-box:hover::before {
  opacity: 1;
}

.pillar-box-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
}

.pillar-box-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

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

/* ==============================================================================
   FORMULARIO Y CTA DE CONTACTO
   ============================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(12, 21, 39, 0.95) 0%, rgba(20, 58, 43, 0.8) 100%);
  border: 1px solid var(--border-gold-glow);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-top: 60px;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

/* ==============================================================================
   FOOTER INSTITUCIONAL LUXURY
   ============================================================================== */
.footer {
  background: #04070D;
  border-top: 1px solid var(--border-glass);
  padding: 75px 0 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(216, 188, 125, 0.12);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-wa-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  z-index: 998;
  transition: var(--transition);
}

.floating-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.65);
}

.floating-wa-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* LIGHTBOX MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.94);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #070B14;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* KEYFRAMES */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .navbar-menu { display: none; }
  .hamburger-btn { display: block; }
  .spotlight-card, .spotlight-card.reverse { grid-template-columns: 1fr; }
  .spotlight-card.reverse .spotlight-media { order: 1; }
  .spotlight-card.reverse .spotlight-body { order: 2; }
  .pillars-3col { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-inner { height: 64px; }
  .navbar-logo img { height: 32px; max-width: 140px; }
  .navbar-cta .btn-outline { display: none; }
  .btn { padding: 9px 16px; font-size: 0.74rem; }
  .pillars-3col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spotlight-body { padding: 32px 22px; }
  .spotlight-media { min-height: 300px; }
  .cta-banner { padding: 40px 24px; }
}
