/* ─────────────────────────────────────────────
   SES3W v2 — Dark Premium Tech
   Base: Bootstrap 5.3 · Inter · Bootstrap Icons
   ───────────────────────────────────────────── */

/* ═══ VARIABLES ═══ */
:root {
  /* ── Paleta corporativa SES3W ── */
  --brand-yellow:     #FFD500;
  --brand-pink:       #E91E63;
  --brand-light:      #F8F9FA;
  --brand-space:      #150935;   /* morado galáctico oscuro */
  --brand-space-dark: #090314;   /* negro espacial con toque morado */

  /* ── Tokens de interfaz (heredados) ── */
  --accent-purple:    rgba(150, 60, 200, 1);
  --glass-bg:         rgba(255, 255, 255, 0.08);
  --glass-border:     rgba(255, 255, 255, 0.1);
  --text-muted-hero:  rgba(255, 255, 255, 0.65);
}

/* ═══ BASE ═══ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-space-dark);
  color: #ffffff;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   MISIÓN 2 — NAVBAR GLASSMORPHISM
   ══════════════════════════════════════════════ */

.navbar {
  padding: 1.4rem 0;
  background: transparent;
  transition: all 0.4s ease;
}

/* Contenedor de la marca — minimalismo corporativo */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 3rem;
  text-decoration: none;
}

/* Firma tipográfica "Top Agency" */
.brand-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

/* Navbar transparente (estado inicial) */
.navbar-transparent .brand-text {
  color: #ffffff !important;
}

/* Navbar con scroll (glassmorphism activo) — texto siempre blanco */
.navbar-scrolled .brand-text {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar-scrolled .nav-link:hover {
  color: #ffffff !important;
}

/* Nav links — mayúsculas corporativas, siempre blancos */
.navbar-nav .nav-link {
  text-transform: uppercase !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 1.25rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Icono hamburguesa blanco en móvil */
.navbar-toggler { border-color: rgba(255, 255, 255, 0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* Menú colapsado en móvil: también cristal */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    border: 1px solid var(--glass-border);
  }
}

/* Glassmorphism al hacer scroll */
.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

/* ═══════════════════════════════════════════════
   HERO SECTION — Fondo corporativo SES3W
   ══════════════════════════════════════════════ */

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-space) 0%, var(--brand-space-dark) 100%);
}

/* Orbe rosa — reflejo del círculo "DISEÑO WEB" del logo */
.hero-section::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(233, 30, 99, 0.15);
}

/* Orbe amarillo — reflejo de la "W" del logo */
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 213, 0, 0.08);
}

/* El contenido queda siempre por encima de los orbes */
.hero-section > .container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   CAMPO DE ESTRELLAS — CSS puro, sin JS
   ══════════════════════════════════════════════ */

.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Capa lejana — estrellas de 1px, movimiento lento (120s) */
/* Capa lejana — 2.5px redondas, 120s */
.stars-bg::after {
  content: '';
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    15vw 20vh #FFF,       30vw 50vh rgba(255,255,255,0.6), 80vw 10vh #FFF,       90vw 80vh #FFF,       20vw 90vh rgba(255,255,255,0.7),
    50vw 85vh #FFF,       70vw 60vh rgba(255,255,255,0.4), 10vw 40vh #FFF,       60vw 15vh #FFF,       40vw 70vh rgba(255,255,255,0.8),
    25vw 10vh rgba(255,255,255,0.5),                        85vw 35vh #FFF,       95vw  5vh #FFF,       55vw 50vh rgba(255,255,255,0.3),
    12vw 75vh #FFF,       65vw 95vh rgba(255,255,255,0.6), 75vw 25vh #FFF,       35vw 25vh #FFF,
    45vw 40vh rgba(255,255,255,0.9),                         5vw 60vh #FFF;
  animation: driftStars 120s linear infinite;
  opacity: 0.85;
}

/* Capa cercana — 4px redondas, 50s → parallax más agresivo */
/* Estrellas corporativas: amarilla (brand-yellow) y fucsia (brand-pink) a plena intensidad */
.stars-bg::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFF;
  box-shadow:
    10vw 80vh #FFF,       45vw 20vh #FFF,       80vw 60vh rgba(255,255,255,0.8), 20vw 30vh #FFF,
    70vw 90vh rgba(255, 213, 0, 1),    /* estrella amarilla corporativa */
    90vw 40vh #FFF,
    30vw 70vh rgba(233, 30, 99, 1),    /* estrella fucsia corporativa */
    50vw 10vh #FFF;
  animation: driftStars 50s linear infinite;
  opacity: 0.9;
}

@keyframes driftStars {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-700px); }
}

/* ═══════════════════════════════════════════════
   MISIÓN 1 — TEXTO DEGRADADO "lo imposible"
   ══════════════════════════════════════════════ */

.text-gradient {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ── Etiqueta pequeña encima del título ── */
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ── Título principal ── */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* ── Subtítulo ── */
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted-hero);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════
   MISIÓN 3 — BOTONES MAGNÉTICOS CON GLOW
   ══════════════════════════════════════════════ */

.hero-buttons { margin-top: 0.5rem; }

/* Botón primario — púrpura con resplandor */
.btn-primary,
.btn-hero {
  background: linear-gradient(135deg, #963cc8 0%, #7b2fc7 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(150, 60, 200, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover,
.btn-hero:hover {
  background: linear-gradient(135deg, #a84fd8 0%, #8c40d8 100%);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(150, 60, 200, 0.6);
}

.btn-primary:focus-visible,
.btn-hero:focus-visible {
  outline: 2px solid rgba(150, 60, 200, 0.7);
  outline-offset: 3px;
}

/* Botón secundario — cristal outline */
.btn-outline-hero {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════
   LOGO OFICIAL — PROTAGONISTA NÍTIDO DEL HERO
   ══════════════════════════════════════════════ */

@keyframes crispLevitation {
  0%   { transform: translateY(0px)   rotate(0deg);   }
  50%  { transform: translateY(-25px) rotate(1.5deg); }
  100% { transform: translateY(0px)   rotate(0deg);   }
}

.hero-crisp-graphic {
  width: 100%;
  max-width: 680px;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
  animation: crispLevitation 8s ease-in-out infinite;
}

@media (min-width: 1400px) {
  .hero-crisp-graphic {
    max-width: 750px;
  }
}

@media (max-width: 991.98px) {
  .hero-crisp-graphic {
    max-width: 400px;
    margin-top: 3.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  }
}

/* ── Partículas decorativas de fondo ── */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.particle {
  position: absolute;
  border-radius: 50%;
}

.p1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.35), transparent 65%);
  top: -250px; right: -120px;
}

.p2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.45), transparent 65%);
  bottom: -180px; left: -80px;
}

.p3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.12), transparent 65%);
  top: 35%; left: 42%;
}

/* ═══════════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════════ */

.section-padding { padding: 110px 0; }

.section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.section-tag {
  display: inline-block;
  color: rgba(255, 107, 107, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-muted-hero);
  line-height: 1.8;
}

/* ── Cards de servicios ── */
.services-section {
  position: relative;
  background: transparent;
  z-index: 2;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Brillo interno que emerge en hover */
.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: var(--brand-pink);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--brand-yellow);
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(233, 30, 99, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(-5deg);
  color: var(--brand-pink);
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════ */

.about-section {
  position: relative;
  background: transparent;
  z-index: 2;
}

.profile-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.4) 0%, rgba(255, 213, 0, 0.1) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.captain-avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  z-index: 10;
}

/* Fondo estelar que gira muy lentamente */
.deep-space-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 40% 70%, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 60% 40%, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 80% 90%, rgba(255, 213, 0, 0.8), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 300px 300px;
  z-index: -3;
  animation: spinSlow 300s linear infinite;
}

/* Nebulosa trasera */
.nebula-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, rgba(233, 30, 99, 0.1) 40%, transparent 70%);
  filter: blur(60px);
  z-index: -2;
  animation: pulseNebula 10s infinite alternate ease-in-out;
}

@keyframes pulseNebula {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Planetas decorativos */
.mini-planet {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

.pink-planet {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #FF6B6B, #E91E63);
  top: 15%;
  left: 10%;
  animation: floatOrbit 15s ease-in-out infinite;
}

.yellow-planet {
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #FFF, #FFD500);
  bottom: 20%;
  right: 15%;
  animation: floatOrbit 20s ease-in-out infinite reverse;
}

@keyframes floatOrbit {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(20px, -20px); }
  100% { transform: translate(0, 0); }
}

/* Anillos orbitales */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.orbital-ring-1 {
  width: 380px;
  height: 380px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  animation: spinSlow 30s linear infinite;
}

.orbital-ring-2 {
  width: 480px;
  height: 480px;
  border: 1px solid rgba(233, 30, 99, 0.3);
  animation: spinSlow 50s linear infinite reverse;
}

.orbital-ring-3 {
  width: 580px;
  height: 580px;
  border: 1px dashed rgba(255, 213, 0, 0.15);
  animation: spinSlow 75s linear infinite;
}

@keyframes spinSlow {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Avatar planeta esférico */
.avatar-crop.planet-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow:
    -15px -15px 40px rgba(233, 30, 99, 0.4),
    inset 10px 10px 15px rgba(255, 255, 255, 0.15),
    inset -15px -15px 25px rgba(0, 0, 0, 0.4);
}

.captain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.15);
  transition: none;
}

/* Botón de la sección about */
.about-section .btn-outline-light {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-section .btn-outline-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-space-dark) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

@media (max-width: 991.98px) {
  .orbital-ring-1 { width: 280px; height: 280px; }
  .orbital-ring-2 { width: 360px; height: 360px; }
  .orbital-ring-3 { width: 440px; height: 440px; }
  .avatar-crop.planet-avatar { width: 220px; height: 220px; }
}

/* ═══════════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════════ */

.filter-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.letter-spacing-1 { letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════
   TARJETA FANTASMA — Ghost Mission Card
   ══════════════════════════════════════════════ */

.ghost-mission-card {
  aspect-ratio: 4 / 3;
  background: rgba(25, 10, 45, 0.1) !important;
  border: 2px dashed rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  cursor: default;
}

.ghost-mission-card:hover {
  background: rgba(25, 10, 45, 0.2) !important;
  border-color: rgba(0, 212, 255, 0.4) !important;
  transform: none !important;
}

.radar-scanner i {
  animation: pulseRadar 3s ease-in-out infinite;
}

@keyframes pulseRadar {
  0%   { transform: scale(0.9); opacity: 0.5; filter: drop-shadow(0 0 0px   rgba(0, 212, 255, 0));   }
  50%  { transform: scale(1.1); opacity: 1;   filter: drop-shadow(0 0 15px  rgba(0, 212, 255, 0.6)); }
  100% { transform: scale(0.9); opacity: 0.5; filter: drop-shadow(0 0 0px   rgba(0, 212, 255, 0));   }
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(25, 10, 45, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 3, 20, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-overlay-content {
  text-align: center;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-wrapper img  { transform: scale(1.1); }
.portfolio-card:hover .portfolio-overlay           { opacity: 1; }
.portfolio-card:hover .portfolio-overlay-content  {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.portfolio-card:hover .fa-arrow-up-right-from-square {
  animation: slideArrow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideArrow {
  0%   { transform: translate(-10px, 10px); opacity: 0; }
  100% { transform: translate(0, 0);        opacity: 1; }
}

/* Modal oscuro premium */
.modal-content.dark-space-modal {
  background: #0d0628;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 0 50px rgba(233, 30, 99, 0.3);
}

.modal-content.dark-space-modal .modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.modal-content.dark-space-modal .modal-footer { border-top:    1px solid rgba(255, 255, 255, 0.05); }

/* ═══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.footer {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 991px) {
  .hero-section { padding: 140px 0 80px; }
  .hero-text { text-align: center; }
  .hero-subtitle { max-width: 100%; margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-tag { margin-inline: auto; }
}

@media (max-width: 575px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-hero, .btn-outline-hero { justify-content: center; }
  .section-padding { padding: 70px 0; }
}

/* ═══════════════════════════════════════════════
   FORMULARIO DE CONTACTO
   ══════════════════════════════════════════════ */

.contact-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-input:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(150, 60, 200, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(150, 60, 200, 0.15) !important;
  outline: none;
  color: #ffffff !important;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.form-check-input:checked {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(150, 60, 200, 0.2);
  border-color: rgba(150, 60, 200, 0.6);
}

/* ═══════════════════════════════════════════════
   FONDO PLANETA — Contenedor base espacial final
   ══════════════════════════════════════════════ */

.footer-planet-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Planeta gigante pintado como pseudo-elemento */
.footer-planet-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 600px;
  z-index: -1;
  background-image: url('../images/fondo_planeta.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;

  opacity: 0.35;
  filter: blur(1px) grayscale(15%);
  pointer-events: none;

  /* Fade de arriba a abajo: invisible los primeros 30%, opaco a partir del 80% */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
}

/* Eliminar cualquier fondo sólido que tape al planeta */
.footer-planet-wrapper,
#contacto,
.footer-section {
  background-color: transparent !important;
}

@media (max-width: 991.98px) {
  .footer-planet-wrapper::before {
    height: 400px;
  }
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER PREMIUM
   ══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(13, 6, 40, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
  }
}

/* Contenido del formulario y footer siempre por encima del pseudo-elemento */
.footer-planet-wrapper #contacto .container,
.footer-planet-wrapper .footer .container {
  position: relative;
  z-index: 2;
}

/* --- SECCIÓN METODOLOGÍA --- */
.method-card {
  background: transparent;
  border-left: 2px solid rgba(255,255,255,0.05);
  border-bottom: 2px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
}

.huge-number {
  position: absolute;
  top: -20px;
  right: 15px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  font-family: inherit;
  z-index: 0;
  transition: all 0.4s ease;
  user-select: none;
}

.method-card:hover {
  background: rgba(25, 10, 45, 0.4);
  border-left-color: var(--brand-pink, #E91E63);
  border-radius: 0 10px 10px 0;
}

.method-card:hover .huge-number {
  color: rgba(255,255,255,0.08);
  transform: scale(1.1);
}

/* --- SOCIAL FOOTER ICONS: HALO ORBITAL --- */
.social-links-footer {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.orbital-social-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  border: none;
}

.orbital-social-link:hover {
  color: #ffffff;
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 15px rgba(233, 30, 99, 0.6));
}

@media (max-width: 768px) {
  .social-links-footer { gap: 20px; }
  .orbital-social-link { font-size: 1.8rem; }
}

/* Para los enlaces de texto legal */
.hover-white { transition: color 0.3s; }
.hover-white:hover { color: #ffffff !important; }
