/* ============================================================
   HDMP & ASOCIADOS — Sistema de Diseño Principal
   Paleta: Azul Marino #000000 | Dorado #C9A84C | Blanco #F8F9FA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Variables CSS ── */
:root {
  --navy:       #111111;
  --navy-light: #1A1A1A;
  --navy-mid:   #222222;
  --gold:       #C9A84C;
  --gold-light: #E0C068;
  --gold-dark:  #A88030;
  --white:      #F8F9FA;
  --white-dim:  rgba(248,249,250,0.85);
  --gray-100:   #F1F3F5;
  --gray-300:   #DEE2E6;
  --gray-500:   #ADB5BD;
  --gray-700:   #495057;
  --error:      #A88030;
  --success:    #C9A84C;
  --info:       #C9A84C;

  --glass-bg:   rgba(17,17,17,0.7);
  --glass-border: rgba(201,168,76,0.2);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.5);
  --shadow-gold:0 0 40px rgba(201,168,76,0.2);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main:  'Inter', sans-serif;
  --font-body:  'Poppins', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-main); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-light { color: var(--gray-300); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ── Gradient Backgrounds ── */
.bg-gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.bg-gradient-dark {
  background: linear-gradient(180deg, #000000 0%, var(--navy) 100%);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.btn:hover::before { transform: scaleX(1); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.6);
}
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: rgba(201,168,76,0.5);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.card-body { padding: 2rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ── Section Headers ── */
.section-header { margin-bottom: 3rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-label::before, .section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--gray-300);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 600px;
}

/* ── Grid System ── */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
}
.logo-text { font-family: var(--font-main); }
.logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--gray-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.9rem;
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000000 0%, #111111 50%, #1A1A1A 100%);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero_banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(17,17,17,0.7) 60%, transparent 100%);
}
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.2);
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat-num {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.75rem;
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; opacity: 0.5; }

/* ── Stats Bar ── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}
.stat-number {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-top: 0.4rem;
}

/* ── Services ── */
.services-section { background: var(--bg-gradient-dark); }
.service-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
}
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-img { transform: scale(1.05); }
.service-body { padding: 1.75rem; }
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold);
}
.service-card:hover .service-icon svg { color: var(--navy); }
.service-name {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-features { display: flex; flex-direction: column; gap: 0.5rem; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-300);
}
.service-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Why HDMP ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-item {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition);
  text-align: center;
}
.why-item:hover {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.why-text { font-size: 0.9rem; color: var(--gray-300); }

/* ── Testimonials ── */
.testimonials-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); }
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-author { font-weight: 700; color: var(--white); }
.testimonial-role { font-size: 0.85rem; color: var(--gold); margin-top: 0.25rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active { width: 24px; border-radius: 4px; background: var(--gold); }

/* ── News Preview ── */
.news-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-gold);
}
.news-img { width: 100%; height: 180px; object-fit: cover; }
.news-body { padding: 1.5rem; }
.news-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.news-excerpt {
  font-size: 0.87rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.news-lock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Podcast Preview ── */
.podcast-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.podcast-bg-art {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  object-fit: cover;
  opacity: 0.08;
  border-radius: 50%;
}
.podcast-episodes { display: flex; flex-direction: column; gap: 1rem; }
.podcast-ep {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.podcast-ep:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateX(4px);
}
.podcast-ep-num {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(201,168,76,0.3);
  min-width: 40px;
}
.podcast-ep-info { flex: 1; }
.podcast-ep-title {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.podcast-ep-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  gap: 1rem;
}
.podcast-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.podcast-play-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(201,168,76,0.5); }
.podcast-locked {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}
.podcast-ep:hover .podcast-locked { opacity: 1; }

/* ── Subscribe Banner ── */
.subscribe-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subscribe-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23111111' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.subscribe-banner h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.subscribe-banner p { color: rgba(17,17,17,0.75); margin-bottom: 2rem; font-size: 1.05rem; }
.subscribe-banner .btn-navy {
  background: var(--navy);
  color: var(--gold);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}
.subscribe-banner .btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(17,17,17,0.4);
}

/* ── Contact ── */
.contact-section { background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { color: var(--white); font-weight: 500; margin-top: 0.15rem; }
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-control::placeholder { color: var(--gray-500); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control option { background: var(--navy); }

/* ── Social Links ── */
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* ── Footer ── */
.footer {
  background: #000000;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--gray-500); font-size: 0.9rem; margin: 1rem 0 1.5rem; line-height: 1.7; }
.footer-col-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { color: var(--gray-500); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--gray-500); font-size: 0.85rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ── Chatbot Widget ── */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  transition: all var(--transition);
  animation: chatPulse 3s infinite;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--error);
  border-radius: 50%;
  font-size: 0.7rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.chatbot-window {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 360px;
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 500px;
}
.chatbot-window.open { display: flex; animation: chatSlideIn 0.3s ease; }
.chatbot-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chatbot-name { font-weight: 700; font-size: 0.95rem; }
.chatbot-status { font-size: 0.75rem; color: #4CAF50; display: flex; align-items: center; gap: 0.3rem; }
.chatbot-status::before { content: ''; width: 6px; height: 6px; background: #4CAF50; border-radius: 50%; }
.chatbot-close { margin-left: auto; color: var(--gray-500); font-size: 1.2rem; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
.chat-msg.bot {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--gray-300);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-options { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.chat-option {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  text-align: left;
  transition: all var(--transition);
}
.chat-option:hover { background: rgba(201,168,76,0.2); }
.chatbot-input-area {
  border-top: 1px solid var(--glass-border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.chatbot-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--white);
  font-size: 0.875rem;
}
.chatbot-input:focus { outline: none; border-color: var(--gold); }
.chatbot-send {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  transition: all var(--transition);
}
.chatbot-send:hover { background: var(--gold-light); }
.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  transition: all var(--transition);
}
.whatsapp-btn:hover { background: #1ebe57; }

/* ── Alert Messages ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success { background: rgba(46,125,50,0.15); border: 1px solid rgba(46,125,50,0.3); color: #81C784; }
.alert-error { background: rgba(229,57,53,0.15); border: 1px solid rgba(229,57,53,0.3); color: #EF9A9A; }
.alert-info { background: rgba(21,101,192,0.15); border: 1px solid rgba(21,101,192,0.3); color: #90CAF9; }

/* ── Loading Spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(201,168,76,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Keyframes ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(201,168,76,0.5); }
  50% { box-shadow: 0 8px 40px rgba(201,168,76,0.8), 0 0 0 8px rgba(201,168,76,0.1); }
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 0.5rem;
    z-index: 999;
  }
  .navbar-nav.open .navbar-actions { display: flex; flex-direction: column; margin-top: 1.5rem; }
  .navbar-nav.open .nav-link { padding: 1rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chatbot-window { width: 320px; right: -0.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .chatbot-widget { bottom: 1rem; right: 1rem; }
}

/* ── Utility ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
/* Marca de agua centrada para todo el portal */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* No bloquea clics */
    background-image: url('../assets/images/logo_hdmp.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35%; /* Ajusta tamaño según tu gusto */
    opacity: 0.08; /* Transparencia base más iluminada */
    z-index: 0;
    animation: watermarkGlow 6s ease-in-out infinite alternate;
}

@keyframes watermarkGlow {
    0% {
        opacity: 0.07;
        filter: brightness(1) drop-shadow(0 0 10px rgba(201, 168, 76, 0.15));
    }
    50% {
        opacity: 0.14;
        filter: brightness(1.3) drop-shadow(0 0 35px rgba(201, 168, 76, 0.5));
    }
    100% {
        opacity: 0.07;
        filter: brightness(1) drop-shadow(0 0 10px rgba(201, 168, 76, 0.15));
    }
}

/* Asegura que el contenido quede por encima de la marca de agua */
body * {
    position: relative;
    z-index: 1;
}
