/* ==========================================================================
   ESPACIO TERRA - ESTILOS PRINCIPALES Y RESPONSIVE
   Diseñado para Salón de Fiestas y Eventos Exclusivos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #101924;
  --secondary: #1a2634;
  --accent-gold: #cba258;
  --accent-gold-hover: #b38b42;
  --accent-light: #f5eedf;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-light: #faf9f6;
  --border-color: #e2e8f0;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 20px 40px rgba(203, 162, 88, 0.15);
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(16, 25, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(16, 25, 36, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-logo img {
  height: 52px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.03);
}

/* BRANDING & LOGO CON TEXTO INTEGRADO (ESPACIO TERRA / EVENTOS) */
.brand-container {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.brand-container:hover {
  color: #ffffff;
}

.brand-container img.site-logo-img {
  height: 68px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-container:hover img.site-logo-img {
  transform: scale(1.04);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.brand-text-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.brand-text-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.52em;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-top: 3px;
  padding-left: 2px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-btn-quote {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(203, 162, 88, 0.3);
}

.nav-btn-quote::after {
  display: none !important;
}

.nav-btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 162, 88, 0.45);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 6s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 25, 36, 0.4) 0%, rgba(16, 25, 36, 0.85) 100%),
              linear-gradient(to top, rgba(16, 25, 36, 0.9) 0%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid rgba(203, 162, 88, 0.45);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  background: rgba(203, 162, 88, 0.08);
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #fff;
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(203, 162, 88, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(203, 162, 88, 0.5);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
section {
  padding: 90px 0;
}

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

.section-tag {
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 0 auto 16px;
  border-radius: 3px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT & FEATURES
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-features-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-main);
}

.about-features-list li i {
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.about-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-media iframe, .about-media video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* ==========================================================================
   GALERÍA FOTOGRÁFICA
   ========================================================================== */
.gallery-section {
  background-color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 25, 36, 0.9) 0%, rgba(16, 25, 36, 0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption h4 {
  color: #fff;
  font-size: 1.2rem;
}

.gallery-caption span {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   NEWSLETTER / LEADS CAPTURE
   ========================================================================== */
.lead-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  margin: 40px auto;
  max-width: 1140px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(203, 162, 88, 0.15), transparent 70%);
}

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

.lead-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.lead-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

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

.lead-inputs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-inputs input, .lead-inputs select {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.lead-inputs input::placeholder {
  color: #94a3b8;
}

.lead-inputs select option {
  background: var(--primary);
  color: #fff;
}

.lead-btn {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(203, 162, 88, 0.4);
  transition: var(--transition);
}

.lead-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 162, 88, 0.6);
}

.lead-alert {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.9rem;
  display: none;
}

.lead-alert.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #4ade80;
  display: block;
}

.lead-alert.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  display: block;
}

/* ==========================================================================
   UBICACIÓN / MAPA & CONTACTO
   ========================================================================== */
.contact-section {
  background: var(--bg-light);
}

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

.contact-info-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.contact-info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--primary);
}

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

.contact-item i {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-social-icons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.contact-social-icons a {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.contact-social-icons a:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-3px);
}

.map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 420px;
  background: #e2e8f0;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   FOOTER INSTITUCIONAL & BRANDING DESARROLLADOR
   ========================================================================== */
.site-footer {
  background-color: #0b1118;
  color: #94a3b8;
  padding-top: 60px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

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

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

/* Barra inferior con marca del Desarrollador (Mejor Web) */
.footer-bottom {
  background-color: #060a0e;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px 0;
}

.footer-bottom-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mw-dev-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mw-dev-branding img.mw-logo {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.mw-dev-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.mw-dev-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mw-dev-links a:hover {
  color: #38bdf8;
}

.mw-qr-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mw-qr-img {
  width: 26px;
  height: 26px;
  border-radius: 2px;
}

.admin-login-link {
  color: #475569;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.admin-login-link:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid, .contact-grid, .footer-main {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--primary);
    flex-direction: column;
    padding: 40px 20px;
    gap: 22px;
    transition: left 0.4s ease;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .brand-container img.site-logo-img {
    height: 52px;
  }
  .brand-text-title {
    font-size: 1.15rem;
  }
  .brand-text-sub {
    font-size: 0.58rem;
    letter-spacing: 0.45em;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .lead-inputs {
    flex-direction: column;
  }
  .lead-section {
    padding: 45px 20px;
    margin: 20px auto;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}