/* ==========================================================================
   TALLER INMERSIVO VR Y USO ÉTICO DE LA IA - CONVIVENCIA DIGITAL
   Design System & Styling
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #FDF8E1;
  --bg-secondary: #FAF3C8;
  --bg-alt: #F5EDB0;
  --bg-dark: #1A3A8F;
  --bg-dark-card: #1E3FA0;

  --primary-navy: #0D2B7A;
  --primary-blue: #1A3A8F;
  --accent-purple: #1A3A8F;
  --accent-purple-glow: rgba(26, 58, 143, 0.35);
  --accent-cyan: #1565C0;
  --accent-cyan-glow: rgba(21, 101, 192, 0.3);
  --accent-green: #1A5276;

  --text-main: #0D2B7A;
  --text-muted: #1A3A8F;
  --text-light: #2952B3;
  --text-white: #FFFFFF;

  --border-light: #D4C9A0;
  --border-tech: rgba(26, 58, 143, 0.2);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 10px 25px -5px rgba(13, 43, 122, 0.1);
  --shadow-lg: 0 20px 35px -10px rgba(13, 43, 122, 0.15);
  --shadow-tech: 0 12px 30px rgba(26, 58, 143, 0.25);
  --glow-cyan: 0 0 20px rgba(21, 101, 192, 0.4);

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-tech {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
  border: 1px solid var(--border-tech);
}

.badge-price {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #0891B2;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Sidebar Nav (Menú Izquierdo en Desktop) */
.mobile-top-bar {
  display: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 19, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 1.5rem;
  box-shadow: 4px 0 25px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.sidebar-top {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-menu-wrapper {
  flex: 1;
  padding: 1.75rem 0;
  overflow-y: auto;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-link svg {
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--accent-purple);
}

.nav-link:hover svg {
  color: var(--accent-purple);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.08));
  color: var(--accent-purple);
  border-left-color: var(--accent-purple);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.nav-link.active svg {
  color: var(--accent-purple);
}

.sidebar-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.main-content-wrapper {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #6D28D9);
  color: var(--text-white);
  box-shadow: var(--shadow-tech);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  background: var(--bg-dark);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-purple);
  color: var(--accent-purple);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.05);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* BLOCK 1: HERO */
.hero-section {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 5.5rem;
  background: radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.85rem;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.hero-icon-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-icon-item svg {
  color: var(--accent-purple);
  flex-shrink: 0;
}

.hero-price-stamp {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: #FFFBEB;
  border: 1.5px dashed #F59E0B;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  width: fit-content;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #B45309;
}

.price-details {
  font-size: 0.85rem;
  color: #92400E;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* VR Visual Card (3D VR headset visual with high tech CSS) */
.hero-visual {
  position: relative;
}

.vr-card-container {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #FFF;
  box-shadow: 0 25px 50px -12px rgba(11, 19, 43, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.vr-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.vr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.vr-headset-illustration {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, rgba(28, 37, 65, 0.8), rgba(11, 19, 43, 0.95));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.headset-svg {
  width: 140px;
  filter: drop-shadow(0 10px 15px rgba(124, 58, 237, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.vr-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* BLOCK 2: EL PROBLEMA */
.problem-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.section-header {
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.section-subtitle {
  color: var(--accent-purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  color: var(--bg-dark);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.problem-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.3);
}

.problem-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--bg-dark);
}

.problem-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Roles Component */
.roles-wrapper {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #FFF;
  box-shadow: var(--shadow-lg);
}

.roles-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roles-header h3 {
  color: #FFF;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.roles-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.roles-interactive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.role-card:hover, .role-card.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
}

.role-card.highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.3));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.role-badge-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.role-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.4rem;
}

.role-desc {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.4;
}

.roles-transformation-banner {
  margin-top: 2rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.transformation-text {
  font-size: 1.05rem;
  color: #E0F2FE;
}

.transformation-text strong {
  color: var(--accent-cyan);
}

/* BLOCK 3: LA SOLUCIÓN (THE VR WORKSHOP) */
.solution-section {
  background: #FFF;
}

.tech-banner {
  background: linear-gradient(135deg, var(--bg-dark), #1E1B4B);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tech-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-banner-title {
  font-size: 2.2rem;
  color: #FFF;
  margin-bottom: 1rem;
}

.tech-banner-title span {
  color: var(--accent-cyan);
}

.tech-banner-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Timeline 4 Sessions */
.timeline-container {
  position: relative;
  margin: 3rem 0;
}

.timeline-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.timeline-tab.active {
  background: var(--bg-dark);
  color: #FFF;
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-tech);
}

.tab-session-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 0.25rem;
}

.timeline-tab.active .tab-session-num {
  color: var(--accent-cyan);
}

.tab-session-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline-content-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.session-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.session-detail-title {
  font-size: 1.6rem;
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

.session-detail-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.session-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.session-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.session-check-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.session-illustration {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.3);
  min-height: 240px;
}

/* Safety & Legal Protocol Box */
.safety-legal-box {
  background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
  border: 1.5px solid #6EE7B7;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.safety-item {
  display: flex;
  gap: 1rem;
}

.safety-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #10B981;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 0.3rem;
}

.safety-desc {
  font-size: 0.9rem;
  color: #047857;
  line-height: 1.5;
}

/* BLOCK 4: PARA AYUNTAMIENTOS */
.ayuntamientos-section {
  background-color: var(--bg-secondary);
}

.ayuntamiento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.ayuntamiento-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  transition: var(--transition);
}

.ayuntamiento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ayuntamiento-card.featured {
  border: 2px solid var(--accent-purple);
  box-shadow: var(--shadow-tech);
  position: relative;
}

.card-top-tag {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-purple);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ayuntamiento-card-header {
  margin-bottom: 1.5rem;
}

.ayuntamiento-card-title {
  font-size: 1.35rem;
  margin-top: 1rem;
  color: var(--bg-dark);
}

.ayuntamiento-card-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ayuntamiento-card-body p {
  margin-bottom: 0.5rem;
}

.ayuntamiento-card-body ul {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ayuntamiento-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ayuntamiento-card-body li svg {
  color: var(--accent-purple);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Calculator Component */
.calculator-box {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #FFF;
  box-shadow: var(--shadow-lg);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-title {
  font-size: 1.75rem;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.calc-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFF;
}

.range-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  accent-color: var(--accent-cyan);
}

.range-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 60px;
}

.calc-result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.calc-result-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.calc-result-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-metric-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

.calc-metric-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* BLOCK 5: CONTRATACIÓN */
.contratacion-section {
  background: #FFF;
}

.contratacion-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.pack-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.pack-title {
  font-size: 1.5rem;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.pack-price-display {
  padding: 1.5rem;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.pack-price-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.pack-price-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pack-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pack-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pack-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pack-item-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pack-item-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form */
.form-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-title {
  font-size: 1.6rem;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.input-field, .select-field, .textarea-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.input-field:focus, .select-field:focus, .textarea-field:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.direct-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: #FFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: #FFF;
}

/* Redes Sociales en Footer */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: #00F0FF;
  color: #0B132B !important;
  transform: translateY(-3px);
  border-color: #00F0FF;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
}

.social-link-item {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.social-link-item svg {
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.social-link-item:hover {
  color: #FFF;
}

.social-link-item:hover svg {
  transform: scale(1.18);
  color: #00F0FF;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* BRIEF / DOSSIER MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFF;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 3rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-secondary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--border-light);
}

.brief-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brief-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

.brief-section {
  margin-bottom: 1.5rem;
}

.brief-section h4 {
  font-size: 1.1rem;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;

  border-left: 3px solid var(--accent-purple);
  padding-left: 0.75rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 65px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1020;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
  }

  .sidebar-nav {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  }

  .sidebar-nav.active {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content-wrapper {
    margin-left: 0;
    width: 100%;
    padding-top: 65px;
  }

  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-grid, .tech-banner-grid, .timeline-content-card, .calculator-grid, .contratacion-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .problem-grid, .ayuntamiento-grid, .roles-interactive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-legal-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .problem-grid, .ayuntamiento-grid, .roles-interactive-grid {
    grid-template-columns: 1fr;
  }

  .hero-icons-grid {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row, .direct-cta-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 1.5rem;
  }
}

/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: #FFFFFF !important;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 1200;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  background: #1EBE5D;
}

