/* ==========================================================================
   ADBA ad v2 - Customized Deep Black Theme (FAQ, Terms, AI Prices & Clean Footer)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:ital,wght@0,700;0,900;1,800;1,900&family=Syne:wght@700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --adba-purple: #8b5cf6;
  --adba-blue: #3b82f6;
  --adba-cyan: #06b6d4;
  --adba-green: #10b981;
  --adba-yellow: #f59e0b;
  --adba-orange: #f97316;
  --adba-red: #ef4444;
  --adba-magenta: #ec4899;
  --adba-gold: #fbbf24;

  --bg-dark: #000000;
  --bg-card: #000000;
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(139, 92, 246, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --speed-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --speed-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background-color: #000000;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* ==========================================================================
   CINEMATIC 3-STAGE PRELOADER (DEEP BLACK #000000 & SPECTACULAR TYPOGRAPHY)
   ========================================================================== */
.preloader-overlay {
  position: fixed; inset: 0; background: #000000 !important; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease, visibility 1.2s ease;
  overflow: hidden; user-select: none;
}
.preloader-overlay.fade-out {
  opacity: 0 !important;
  filter: blur(16px) scale(1.04) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Tagline Badge */
.preloader-tagline {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--adba-cyan);
  background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 8px 22px; border-radius: var(--radius-full);
  box-shadow: none !important;
}

/* Preloader Stage Containers */
.preloader-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  z-index: 2; padding: 20px;
}
.preloader-stage.active {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.preloader-stage.fade-exit {
  opacity: 0; transform: translateY(-16px) scale(1.03); visibility: hidden;
}

/* Stage 1 Title: Transformamos tus ideas */
.preloader-title-cinematic {
  font-family: var(--font-heading); font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900;
  color: #ffffff; letter-spacing: -0.5px; line-height: 1.1; margin: 16px 0;
  background: linear-gradient(135deg, #ffffff 15%, var(--adba-cyan) 55%, var(--adba-purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: none !important;
  animation: none !important;
}

/* Stage 2 Title: en realidad... */
.preloader-title-gold {
  font-family: var(--font-heading); font-size: clamp(3rem, 7.5vw, 5.2rem); font-weight: 900;
  letter-spacing: 2px; font-style: italic; line-height: 1.15; margin: 16px 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 35%, #ec4899 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: none !important;
  animation: none !important;
}

/* Stage 3 Logo Destacado */
.preloader-logo-container {
  position: relative; width: auto; height: auto; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.logo-aura-ring { display: none !important; }

.preloader-logo-3d {
  width: clamp(230px, 50vw, 360px); height: auto; object-fit: contain; z-index: 2;
  filter: none !important;
  animation: logoFloatClean 2.5s ease-in-out infinite alternate;
}
@keyframes logoFloatClean {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.04); }
}

/* Indicators */
.stage-indicator {
  display: flex; gap: 8px; margin-top: 14px;
}
.stage-indicator .dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25);
  transition: all 0.5s ease;
}
.stage-indicator .dot.active {
  width: 28px; border-radius: 12px; background: linear-gradient(90deg, var(--adba-cyan), var(--adba-purple));
  box-shadow: none !important;
}

/* Hide Stage 3 Progress Bar */
.preloader-bar, .preloader-progress {
  display: none !important;
}
@keyframes loadProgressStage3 {
  0% { width: 0%; }
  40% { width: 60%; }
  100% { width: 100%; }
}

/* Caja del Bug / Banner Promocional de Descuento (Color Cyan Resplandeciente) */
#global-discount-banner {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  border: 1px solid rgba(6, 182, 212, 0.8) !important;
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.75), 0 10px 30px rgba(0, 0, 0, 0.9) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.preloader-text { font-size: 0.88rem; color: var(--text-muted); letter-spacing: 1px; }
@keyframes loadProgress { 0% { width: 0%; } 100% { width: 100%; } }
.preloader-text { font-size: 0.88rem; color: var(--text-muted); letter-spacing: 1px; margin-top: 6px; }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }

.ambient-glow {
  position: fixed; width: 650px; height: 650px; border-radius: 50%;
  filter: blur(160px); opacity: 0.15; pointer-events: none; z-index: 0;
  animation: floatGlow 18s infinite alternate ease-in-out;
}
.glow-1 { top: -120px; left: -120px; background: radial-gradient(circle, var(--adba-purple), var(--adba-blue)); }
.glow-2 { bottom: -180px; right: -120px; background: radial-gradient(circle, var(--adba-magenta), var(--adba-orange)); }

/* Header Nav */
.header-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(1280px, 94%); z-index: 1000;
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-full);
  padding: 12px 30px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 92, 246, 0.2);
}

.header-nav.scrolled {
  top: 10px; padding: 10px 26px; background: #000000;
  border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(6, 182, 212, 0.3);
}

.brand-logo img { height: 44px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.8); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.social-bar { display: flex; align-items: center; gap: 8px; }
.social-link-3d {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass);
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.95rem; transition: all var(--speed-fast);
}
.social-link-3d:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 0 15px rgba(139, 92, 246, 0.5); border-color: var(--adba-cyan); }
.social-link-3d.ig:hover { color: #E1306C; border-color: #E1306C; box-shadow: 0 0 15px #E1306C; }
.social-link-3d.fb:hover { color: #1877F2; border-color: #1877F2; box-shadow: 0 0 15px #1877F2; }
.social-link-3d.tk:hover { color: #00f2fe; border-color: #00f2fe; box-shadow: 0 0 15px #00f2fe; }

.icon-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: var(--text-main); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Homologación de Botones */
.cta-btn,
.btn-ver-detalles-homologated,
.btn-pedir-informes-ai {
  padding: 10px 20px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all var(--speed-normal) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.btn-ver-detalles-homologated {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--adba-purple) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25) !important;
}
.btn-ver-detalles-homologated:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: var(--adba-cyan) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45) !important;
}

.btn-pedir-informes-ai {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35) !important;
}
.btn-pedir-informes-ai:hover {
  background: linear-gradient(135deg, #059669, #0891b2) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.55) !important;
}

.btn-admin-submit {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all var(--speed-normal) !important;
}
.btn-admin-submit:hover {
  background: linear-gradient(135deg, #059669, #0891b2) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.55) !important;
}

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; }

/* Hero */
.hero-section { position: relative; min-height: auto; padding: 15px 0 35px; display: flex; align-items: center; z-index: 1; }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; pointer-events: none; }
.container { width: min(1280px, 90%); margin: 0 auto; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--adba-green); box-shadow: 0 0 12px var(--adba-green); animation: pulse 1.8s infinite; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 900; line-height: 1.12; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #d8b4fe 30%, var(--adba-cyan) 60%, var(--adba-yellow) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.18rem; color: var(--text-muted); margin-bottom: 36px; max-width: 580px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

/* Cajas Negro Profundo */
.tilt-card,
.service-card,
.glow-card,
.cotizador-box {
  background: #000000 !important;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all var(--speed-normal);
  position: relative;
  overflow: visible !important;
}

.cotizador-box { padding: 38px 36px !important; }
.cotizador-box h3 { padding-left: 4px; line-height: 1.3; }

.tilt-card:hover,
.service-card:hover,
.glow-card:hover {
  border-color: var(--adba-cyan);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 1), 0 0 35px rgba(6, 182, 212, 0.45), inset 0 0 20px rgba(139, 92, 246, 0.3);
  transform: translateY(-8px) scale(1.01);
}

.tilt-card img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-md); transform: translateZ(30px); }

.section { padding: 45px 0; position: relative; z-index: 2; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.section-tag { color: var(--adba-cyan); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }
.section-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.service-card { display: flex; flex-direction: column; overflow: hidden !important; }

.service-card.highlighted-web {
  border-color: var(--adba-gold) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,1), 0 0 30px rgba(251,191,36,0.35) !important;
}
.service-card.highlighted-web:hover {
  border-color: var(--adba-yellow) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,1), 0 0 45px rgba(251,191,36,0.6) !important;
}
.highlight-star-badge {
  position: absolute;
  top: 14px; right: 14px; z-index: 10;
  background: linear-gradient(135deg, var(--adba-gold), var(--adba-orange));
  color: #000; font-weight: 800; font-size: 0.72rem;
  padding: 4px 12px; border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(251,191,36,0.5);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.service-img-wrapper { position: relative; height: 230px; overflow: hidden; }
.service-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-img-wrapper img { transform: scale(1.08); }

.service-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000000 0%, transparent 65%); display: flex; align-items: flex-end; padding: 20px; }
.service-content { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.service-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.service-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; }
.service-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; color: #cbd5e1; }
.service-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Íconos 3D Potenciados */
.icon-3d {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.9), 0 0 20px rgba(139, 92, 246, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.icon-3d:hover {
  transform: translateY(-5deg) scale(1.1) rotate(6deg);
  box-shadow: 0 18px 40px rgba(0,0,0,1), 0 0 30px rgba(6, 182, 212, 0.7);
}

/* --------------------------------------------------------------------------
   SECCIÓN DE PREGUNTAS Y RESPUESTAS (FAQ ACCORDION)
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #000000;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: all var(--speed-fast);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--adba-cyan);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--adba-cyan);
}

/* Google Maps 3D Stage */
.map-3d-stage-wrapper { perspective: 1200px; padding: 20px 0; }
.map-3d-stage {
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,1), 0 0 40px rgba(139, 92, 246, 0.4);
  position: relative; background: #000000;
  transform: rotateX(16deg) rotateY(-4deg) scale3d(0.98, 0.98, 0.98);
  transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.map-3d-stage:hover { transform: rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1); box-shadow: 0 35px 90px rgba(0, 0, 0, 1), 0 0 50px rgba(6, 182, 212, 0.5); }
.map-3d-stage iframe { width: 100%; height: 440px; border: 0; filter: invert(90%) hue-rotate(180deg) contrast(1.25) saturate(1.3); }

/* IA Widget */
.ai-widget-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.ai-widget-btn {
  background: linear-gradient(135deg, var(--adba-purple), var(--adba-cyan));
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px 10px 12px; border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

.ai-widget-box {
  position: absolute; bottom: 70px; right: 0;
  width: min(390px, 90vw); height: 530px;
  background: #000000; border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, 1), 0 0 40px rgba(139, 92, 246, 0.4);
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-widget-box.hidden { opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); }
.ai-box-header { padding: 16px 20px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: space-between; }
.ai-box-info { display: flex; align-items: center; gap: 12px; }
.ai-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--adba-purple), var(--adba-cyan)); display: flex; align-items: center; justify-content: center; color: #fff; }
.ai-status { font-size: 0.75rem; color: var(--adba-green); }
.ai-status .dot { display: inline-block; width: 6px; height: 6px; background: var(--adba-green); border-radius: 50%; margin-right: 4px; }
.ai-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }

.ai-chat-body { flex-grow: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 85%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.45; }
.ai-msg.bot { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); color: #f3f4f6; align-self: flex-start; }
.ai-msg.user { background: linear-gradient(135deg, var(--adba-purple), var(--adba-blue)); color: #fff; align-self: flex-end; }

.ai-chips { padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.ai-chip { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: var(--adba-cyan); padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.75rem; white-space: nowrap; cursor: pointer; }

.ai-box-footer { padding: 12px 16px; background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border-glass); display: flex; gap: 8px; }
.ai-box-footer input { flex-grow: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); border-radius: var(--radius-full); padding: 8px 16px; color: #fff; outline: none; }
.ai-box-footer button { background: var(--adba-purple); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

/* Modals */
dialog.service-modal {
  margin: auto; border: 1px solid var(--border-glow);
  background: #000000; border-radius: var(--radius-lg);
  color: #fff; padding: 36px; width: min(840px, 94%);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 1), 0 0 50px rgba(139, 92, 246, 0.5);
  max-height: 90vh; overflow-y: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 16px; }
.modal-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   PIE DE PÁGINA SIMPLIFICADO: Diseñado por: ADBA Diseños 2026.
   -------------------------------------------------------------------------- */
.footer { background: #000000; border-top: 1px solid var(--border-glass); padding: 50px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 30px; }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 20px; color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--adba-cyan); }

.footer-bottom-simple {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.filter-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); color: var(--text-muted); padding: 8px 18px; border-radius: var(--radius-full); cursor: pointer; }
.filter-btn.active { background: rgba(139, 92, 246, 0.25); border-color: var(--adba-purple); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.portfolio-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 280px; border: 1px solid var(--border-glass); }
.portfolio-item:hover { border-color: var(--adba-cyan); box-shadow: 0 0 25px rgba(6, 182, 212, 0.3); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-info { position: absolute; inset: 0; background: linear-gradient(to top, #000000, transparent 80%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity var(--speed-fast); }
.portfolio-item:hover .portfolio-info { opacity: 1; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #000000; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border-glass); }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .cotizador-box { grid-template-columns: 1fr !important; gap: 24px !important; }
  .services-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .service-card { width: 100% !important; }
  .service-img-wrapper { height: 210px !important; }
  .service-content { padding: 20px !important; }
  .service-title { font-size: 1.3rem !important; }
  
  .preloader-logo-3d { width: min(250px, 78vw) !important; }
  .preloader-title-cinematic { font-size: clamp(2rem, 8vw, 3.2rem) !important; }
  .preloader-title-gold { font-size: clamp(2.2rem, 8.5vw, 3.5rem) !important; }

  .header-actions { gap: 8px !important; }
  .btn-drive-upload { padding: 6px 12px !important; font-size: 0.78rem !important; }
  .section-title { font-size: clamp(2.1rem, 7vw, 3.2rem) !important; }
}

@media (max-width: 480px) {
  .header-nav { padding: 10px 14px !important; }
  .brand-logo img { height: 36px !important; }
  .btn-whatsapp-header { width: 38px !important; height: 38px !important; font-size: 1.1rem !important; }
}
