﻿/* ================================================================
   SER03.CSS
   Desplegable seleccionable para soluciones digitales empresariales.

   Inspiración visual:
   - Imagen de referencia: interfaz cinematográfica verde petróleo,
     acento amarillo luminoso, texto grande de contorno y módulos
     suspendidos sobre una escena oscura.
   - Funciona sin JavaScript usando radios + labels.

   Índice:
   01. Tokens locales
   02. Demo y botón desplegable
   03. Panel base
   04. Navegación y palabra grande
   05. Contenido textual
   06. Escena visual
   07. Estados seleccionados
   08. Responsive y accesibilidad
   ================================================================ */

/* ================================================================
   01. TOKENS LOCALES
   Variables del componente. Mantienen una paleta propia sin tocar el
   resto de la landing.
   ================================================================ */
:root {
  --ser03-night: #112b25;
  --ser03-night-2: #183d35;
  --ser03-mist: #8fb7a7;
  --ser03-ink: #e8f4dc;
  --ser03-muted: rgba(232, 244, 220, 0.68);
  --ser03-line: rgba(228, 229, 99, 0.42);
  --ser03-lime: #e4e563;
  --ser03-amber: #f0a21a;
  --ser03-panel: rgba(16, 43, 37, 0.72);
  --ser03-glass: rgba(232, 244, 220, 0.08);
  --ser03-border: rgba(232, 244, 220, 0.18);
  --ser03-shadow: rgba(0, 0, 0, 0.38);
  --ser03-display: "Arial Narrow", "Aptos Display", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --ser03-body: "Aptos", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ser03-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ser03-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ================================================================
   02. DEMO Y BOTÓN DESPLEGABLE
   .ser03-demo-shell solo centra el componente cuando abres ser03.html.
   ================================================================ */
.ser03-demo-shell {
  width: min(100% - 32px, 1540px);
  margin: 48px auto;
  font-family: var(--ser03-body);
}

.ser03-details {
  display: block;
}

.ser03-summary {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 0 22px 0 12px;
  border: 1px solid rgba(228, 229, 99, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(39, 72, 62, 0.92), rgba(19, 47, 40, 0.92));
  color: var(--ser03-ink);
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 18px 46px rgba(10, 28, 24, 0.28);
  transition: transform 220ms var(--ser03-ease), border-color 220ms var(--ser03-ease);
}

.ser03-summary::-webkit-details-marker {
  display: none;
}

.ser03-summary:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 229, 99, 0.7);
}

.ser03-summary i {
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  background: var(--ser03-lime);
  color: var(--ser03-night);
  box-shadow: 0 0 24px rgba(228, 229, 99, 0.42);
}

.ser03-summary i::before,
.ser03-summary i::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: translateY(-50%);
}

.ser03-summary i::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms var(--ser03-ease);
}

.ser03-details[open] .ser03-summary i::after {
  transform: translateY(-50%) rotate(0deg);
}

/* ================================================================
   03. PANEL BASE
   Superficie principal con la paleta de la referencia.
   ================================================================ */
.ser03-cinema-panel {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid rgba(232, 244, 220, 0.18);
  border-radius: clamp(28px, 3vw, 46px);
  background:
    radial-gradient(circle at 72% 20%, rgba(228, 229, 99, 0.18), transparent 28%),
    radial-gradient(circle at 22% 96%, rgba(240, 162, 26, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(28, 72, 62, 0.96), rgba(15, 45, 39, 0.98) 46%, #0f2823 100%);
  color: var(--ser03-ink);
  font-family: var(--ser03-body);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 38px 100px rgba(4, 15, 13, 0.36);
}

.ser03-cinema-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(228, 229, 99, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(228, 229, 99, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 78%, transparent);
}

.ser03-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ================================================================
   04. NAVEGACIÓN Y PALABRA GRANDE
   Barra superior y titular de contorno tipo referencia.
   ================================================================ */
.ser03-panel-nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  align-items: center;
  gap: 24px;
}

.ser03-brand {
  color: var(--ser03-lime);
  font-family: var(--ser03-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ser03-nav-options {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
}

.ser03-nav-item {
  position: relative;
  color: rgba(232, 244, 220, 0.64);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms var(--ser03-ease);
}

.ser03-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: var(--ser03-lime);
  opacity: 0;
  box-shadow: 0 0 18px rgba(228, 229, 99, 0.85);
  transition: opacity 180ms var(--ser03-ease);
}

.ser03-nav-item:hover {
  color: var(--ser03-ink);
}

.ser03-menu-mark {
  width: 34px;
  height: 24px;
  justify-self: end;
  border-top: 4px solid var(--ser03-lime);
  border-bottom: 4px solid var(--ser03-lime);
  filter: drop-shadow(0 0 10px rgba(228, 229, 99, 0.55));
}

.ser03-outline-word {
  position: absolute;
  z-index: 1;
  left: clamp(36px, 7vw, 104px);
  right: clamp(36px, 7vw, 104px);
  top: clamp(118px, 13vw, 170px);
  height: clamp(118px, 13vw, 184px);
  pointer-events: none;
}

.ser03-outline-word span {
  display: none;
  color: transparent;
  font-family: var(--ser03-display);
  font-size: clamp(92px, 15vw, 220px);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 2px rgba(228, 229, 99, 0.78);
  text-shadow: 0 0 34px rgba(228, 229, 99, 0.18);
}

/* ================================================================
   05. CONTENIDO TEXTUAL
   Tarjeta inferior izquierda con copy editable por opción.
   ================================================================ */
.ser03-stage-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: 610px;
  align-items: end;
  padding-top: clamp(220px, 22vw, 310px);
}

.ser03-copy-deck {
  position: relative;
  min-height: 350px;
}

.ser03-copy {
  display: none;
  padding: 24px;
  border: 1px solid var(--ser03-border);
  border-radius: 26px;
  background: rgba(17, 43, 37, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.ser03-kicker {
  color: var(--ser03-lime);
  font-family: var(--ser03-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ser03-copy h2 {
  margin-top: 12px;
  color: var(--ser03-ink);
  font-family: var(--ser03-display);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.ser03-copy p {
  margin-top: 16px;
  color: var(--ser03-muted);
  font-size: 16px;
  line-height: 1.5;
}

.ser03-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.ser03-copy li {
  padding: 8px 10px;
  border: 1px solid rgba(228, 229, 99, 0.24);
  border-radius: 999px;
  background: rgba(228, 229, 99, 0.08);
  color: rgba(232, 244, 220, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.ser03-copy strong {
  display: block;
  margin-top: 20px;
  color: var(--ser03-ink);
  font-size: 15px;
  line-height: 1.45;
}

/* ================================================================
   06. ESCENA VISUAL
   Mapa central con nodos flotantes y brillo amarillo.
   ================================================================ */
.ser03-visual-scene {
  position: relative;
  min-height: 520px;
}

.ser03-city-glow {
  position: absolute;
  inset: 4% 2% 0;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(143, 183, 167, 0.22), transparent 58%),
    radial-gradient(circle at 50% 44%, rgba(228, 229, 99, 0.2), transparent 30%);
  box-shadow: inset 0 0 0 1px rgba(232, 244, 220, 0.08);
}

.ser03-orbit-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(78%, 560px);
  aspect-ratio: 1.62;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(228, 229, 99, 0.48);
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(228, 229, 99, 0.55));
  animation: ser03Pulse 2.6s ease-in-out infinite;
}

.ser03-core-card {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 4;
  width: min(58%, 340px);
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(228, 229, 99, 0.5);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 229, 99, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(23, 62, 53, 0.95), rgba(13, 34, 30, 0.96));
  text-align: center;
  box-shadow:
    0 0 0 8px rgba(228, 229, 99, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.32),
    0 0 55px rgba(228, 229, 99, 0.18);
}

.ser03-core-card span,
.ser03-core-card strong {
  display: none;
}

.ser03-core-card span {
  color: var(--ser03-lime);
  font-family: var(--ser03-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ser03-core-card strong {
  max-width: 250px;
  color: var(--ser03-ink);
  font-family: var(--ser03-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.ser03-node {
  position: absolute;
  z-index: 5;
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid rgba(228, 229, 99, 0.36);
  border-radius: 18px;
  background: rgba(17, 43, 37, 0.82);
  color: var(--ser03-ink);
  text-align: left;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(228, 229, 99, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: ser03Float 4.8s var(--ser03-ease) infinite;
}

.ser03-node small {
  display: block;
  margin-bottom: 5px;
  color: var(--ser03-lime);
  font-family: var(--ser03-mono);
  font-size: 11px;
  font-weight: 900;
}

.ser03-node span {
  display: none;
  font-size: 14px;
  font-weight: 850;
}

.ser03-node-1 { left: 44%; top: 7%; transform: translateX(-50%); }
.ser03-node-2 { right: 3%; top: 32%; animation-delay: -0.7s; }
.ser03-node-3 { right: 15%; bottom: 8%; animation-delay: -1.4s; }
.ser03-node-4 { left: 4%; bottom: 20%; animation-delay: -2.1s; }

/* ================================================================
   07. ESTADOS SELECCIONADOS
   Activa navegación, copy, palabra grande, núcleo y nodos.
   ================================================================ */
#ser03-tab-inventory:checked ~ .ser03-panel-nav .ser03-nav-inventory,
#ser03-tab-commerce:checked ~ .ser03-panel-nav .ser03-nav-commerce,
#ser03-tab-custom:checked ~ .ser03-panel-nav .ser03-nav-custom,
#ser03-tab-scale:checked ~ .ser03-panel-nav .ser03-nav-scale {
  color: var(--ser03-lime);
}

#ser03-tab-inventory:checked ~ .ser03-panel-nav .ser03-nav-inventory::after,
#ser03-tab-commerce:checked ~ .ser03-panel-nav .ser03-nav-commerce::after,
#ser03-tab-custom:checked ~ .ser03-panel-nav .ser03-nav-custom::after,
#ser03-tab-scale:checked ~ .ser03-panel-nav .ser03-nav-scale::after {
  opacity: 1;
}

#ser03-tab-inventory:checked ~ .ser03-outline-word .ser03-word-inventory,
#ser03-tab-commerce:checked ~ .ser03-outline-word .ser03-word-commerce,
#ser03-tab-custom:checked ~ .ser03-outline-word .ser03-word-custom,
#ser03-tab-scale:checked ~ .ser03-outline-word .ser03-word-scale {
  display: block;
}

#ser03-tab-inventory:checked ~ .ser03-stage-grid .ser03-copy-inventory,
#ser03-tab-commerce:checked ~ .ser03-stage-grid .ser03-copy-commerce,
#ser03-tab-custom:checked ~ .ser03-stage-grid .ser03-copy-custom,
#ser03-tab-scale:checked ~ .ser03-stage-grid .ser03-copy-scale {
  display: block;
}

#ser03-tab-inventory:checked ~ .ser03-stage-grid .ser03-core-inventory,
#ser03-tab-commerce:checked ~ .ser03-stage-grid .ser03-core-commerce,
#ser03-tab-custom:checked ~ .ser03-stage-grid .ser03-core-custom,
#ser03-tab-scale:checked ~ .ser03-stage-grid .ser03-core-scale,
#ser03-tab-inventory:checked ~ .ser03-stage-grid .ser03-node-inventory,
#ser03-tab-commerce:checked ~ .ser03-stage-grid .ser03-node-commerce,
#ser03-tab-custom:checked ~ .ser03-stage-grid .ser03-node-custom,
#ser03-tab-scale:checked ~ .ser03-stage-grid .ser03-node-scale {
  display: block;
}

@keyframes ser03Pulse {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 18px rgba(228, 229, 99, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 42px rgba(228, 229, 99, 0.46);
  }
}

@keyframes ser03Float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

/* ================================================================
   08. RESPONSIVE Y ACCESIBILIDAD
   En pantallas pequeñas se apilan los bloques y la escena queda clara.
   ================================================================ */
@media (max-width: 1120px) {
  .ser03-cinema-panel {
    min-height: auto;
  }

  .ser03-panel-nav {
    grid-template-columns: 1fr auto;
  }

  .ser03-nav-options {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    order: 3;
  }

  .ser03-stage-grid {
    grid-template-columns: 1fr;
    padding-top: clamp(180px, 24vw, 260px);
  }

  .ser03-copy-deck {
    min-height: auto;
  }

  .ser03-visual-scene {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .ser03-demo-shell {
    width: min(100% - 20px, 1540px);
    margin: 24px auto;
  }

  .ser03-cinema-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .ser03-panel-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ser03-nav-options {
    gap: 12px;
  }

  .ser03-nav-item {
    padding: 9px 12px;
    border: 1px solid rgba(228, 229, 99, 0.2);
    border-radius: 999px;
    background: rgba(232, 244, 220, 0.06);
  }

  .ser03-nav-item::after {
    display: none;
  }

  .ser03-outline-word {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    margin-top: 36px;
  }

  .ser03-outline-word span {
    font-size: clamp(64px, 22vw, 104px);
    line-height: 0.9;
    -webkit-text-stroke-width: 1.4px;
  }

  .ser03-stage-grid {
    padding-top: 28px;
  }

  .ser03-copy {
    padding: 20px;
    border-radius: 22px;
  }

  .ser03-copy h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .ser03-visual-scene {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .ser03-city-glow,
  .ser03-orbit-ring {
    display: none;
  }

  .ser03-core-card,
  .ser03-node {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    transform: none;
    animation: none;
  }

  .ser03-core-card {
    min-height: 190px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ser03-summary,
  .ser03-nav-item,
  .ser03-orbit-ring,
  .ser03-node {
    animation: none;
    transition: none;
  }
}

