/* ============================================================
   BLOQUE 01 — RESET Y VARIABLES GLOBALES
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-fondo:           #000000;
  --color-texto:           #ffffff;
  --color-texto-suave:     #aaaaaa;
  --color-acento:          #cc00ff;
  --color-acento-cyan:     #00eeff;
  --color-acento-magenta:  #ff00aa;
  --color-boton-fondo:     #ffffff;
  --color-boton-texto:     #000000;
  --color-formulario-fondo:#0d0d0d;
  --color-borde:           #2a2a2a;
  --fuente-principal:      'Montserrat', sans-serif;
  --radio-boton:           4px;
}

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

html, body {
  height: 100%;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: var(--fuente-principal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  -webkit-user-select: none;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ============================================================
   BLOQUE 02 — PORTADA (index.html)
   ============================================================ */

body.portada {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #000000;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(180, 0, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 200, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(255, 0, 150, 0.2) 0%, transparent 50%);
}

.portada__contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 20px;
  text-align: center;
}

.portada__logo {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 0 40px rgba(180, 0, 255, 0.5))
          drop-shadow(0 0 80px rgba(0, 200, 255, 0.2));
}

.portada__idioma {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -26px;
}

.portada__idioma-texto {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.portada__idioma-opciones {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portada__idioma-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--fuente-principal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.portada__idioma-btn:hover {
  border-color: var(--color-acento-cyan);
  box-shadow: 0 0 14px rgba(0, 238, 255, 0.25);
  transform: translateY(-1px);
}

.portada__idioma-btn.is-active {
  background: linear-gradient(90deg, rgba(180,0,255,0.35), rgba(0,200,255,0.25));
  border-color: var(--color-acento-cyan);
  box-shadow: 0 0 18px rgba(0, 238, 255, 0.25);
}

.portada__idioma-bandera {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.portada__idioma-codigo {
  line-height: 1;
}

.portada__boton {
  display: inline-block;
  padding: 14px 52px;
  margin-top: -8px;
  background-color: transparent;
  color: var(--color-texto);
  font-family: var(--fuente-principal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radio-boton);
  transition: all 0.25s ease;
  position: relative;
}

.portada__boton:hover {
  background: linear-gradient(90deg, rgba(180,0,255,0.4), rgba(0,200,255,0.3));
  border-color: var(--color-acento-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.portada__claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  line-height: 1.4;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.58);
  text-transform: none;
}

.portada__instagram {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.78;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portada__instagram:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

.portada__instagram img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.portada__instagram-texto {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.62);
  font-family: var(--fuente-principal);
  white-space: nowrap;
}

/* ============================================================
   BLOQUE 03 — ESTRUCTURA GENERAL home.html
   ============================================================ */

body.home {
  background-color: #000000;
  min-height: 100vh;
  position: relative;
}

body.home::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 60% 3%,  rgba(180, 0, 255, 0.45) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 8%,  rgba(255, 0, 150, 0.2)  0%, transparent 35%),
    radial-gradient(ellipse at 85% 15%, rgba(0, 200, 255, 0.2)  0%, transparent 35%),
    radial-gradient(ellipse at 15% 25%, rgba(120, 0, 200, 0.2)  0%, transparent 35%),
    radial-gradient(ellipse at 70% 35%, rgba(0, 150, 200, 0.2)  0%, transparent 35%),
    radial-gradient(ellipse at 30% 45%, rgba(255, 0, 120, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 55%, rgba(180, 0, 255, 0.2)  0%, transparent 35%),
    radial-gradient(ellipse at 20% 65%, rgba(0, 200, 255, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 60% 75%, rgba(255, 0, 150, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 30% 85%, rgba(140, 0, 255, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 92%, rgba(0, 200, 255, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 100%,rgba(180, 0, 255, 0.2)  0%, transparent 40%);
}

.home__contenedor {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 28px;
}

.home__header {
  text-align: center;
  margin-bottom: 60px;
}

.home__titulo {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #ffffff 20%, #cc00ff 55%, #ff00aa 80%, #00eeff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(180, 0, 255, 0.4));
}

.home__subtitulo {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-texto-suave);
  text-transform: uppercase;
}

/* Separador entre secciones */
.seccion {
  margin-bottom: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seccion:first-child {
  border-top: none;
}

/* ============================================================
   BLOQUE 04 — GRID DE DEMOS
   ============================================================ */

.demos__titulo {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
}

/* Grid de 6 demos — 2 filas de 3 */
.demos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 16px;
  row-gap: 34px;
  margin-bottom: 70px;
}

.demo-item {
  grid-column: span 2;
  position: relative;
  cursor: pointer;
  overflow: visible;
  border-radius: var(--radio-boton);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a0030 0%, #0a0018 60%, #1a0030 100%);
  border: 1px solid #2a0050;
}

/* Ocultar icono de imagen rota */
.demo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radio-boton);
  transition: transform 0.3s ease;
  color: transparent;
  font-size: 0;
}

.demo-item:hover .demo-item__play {
  background-color: rgba(80, 0, 120, 0.45);
  backdrop-filter: blur(2px);
}

/* Número de demo */
.demo-item::before {
  content: attr(data-num);
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  font-family: var(--fuente-principal);
  z-index: 3;
}

/* Badge NEW PROMO MIX */
.demo-item__badge {
  position: absolute;
  top: -18px;
  left: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff3b3b;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

/* Overlay play */
.demo-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
  z-index: 2;
  border-radius: var(--radio-boton);
}

.demo-item:hover .demo-item__play {
  background-color: rgba(80, 0, 120, 0.5);
}

.demo-item__play span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-texto);
  margin-top: 8px;
}

.demo-item__icono {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.demo-item:hover .demo-item__icono {
  border-color: #ffffff;
  transform: scale(1.1);
}

/* ============================================================
   BLOQUE 05 — MODAL DE REPRODUCCIÓN
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal.activo {
  display: flex;
}

.modal__video-wrapper {
  width: 90%;
  max-width: 880px;
}

.modal__video-wrapper video {
  width: 100%;
  border-radius: var(--radio-boton);
  outline: none;
}

.modal__cerrar {
  margin-top: 20px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-texto);
  font-size: 1.4rem;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: var(--radio-boton);
  transition: border-color 0.2s ease;
}

.modal__cerrar:hover {
  border-color: var(--color-acento-cyan);
}

/* ============================================================
   BLOQUE 06 — DESCRIPCIÓN Y BIO
   ============================================================ */

.seccion__titulo {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
}

.seccion__texto {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-texto);
  max-width: 720px;
  margin: 0 auto;
}

.bio__contenedor {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.bio__logo {
  width: 160px;
  flex-shrink: 0;
}

/* ============================================================
   BLOQUE 07 — FORMULARIO DE CONTACTO
   ============================================================ */

.formulario {
  border-radius: var(--radio-boton);
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  background: none;
}

/* Grid de 2 columnas para campos cortos */
.formulario__fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.formulario__grupo {
  margin-bottom: 18px;
}

.formulario__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
  margin-bottom: 6px;
}

.formulario__input,
.formulario__select,
.formulario__textarea {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radio-boton);
  color: var(--color-texto);
  font-family: var(--fuente-principal);
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  height: 42px;
  backdrop-filter: blur(4px);
}

.formulario__select option {
  background-color: #111111;
}

.formulario__input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.5);
  cursor: pointer;
}

.formulario__textarea {
  resize: vertical;
  min-height: 86px;
  height: auto;
}

.formulario__contador {
  font-size: 0.75rem;
  color: var(--color-texto-suave);
  text-align: right;
  margin-top: 4px;
}

.formulario__error {
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 4px;
  display: none;
}

.formulario__error.visible {
  display: block;
}

.formulario__boton {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 40px;
  background-color: transparent;
  color: var(--color-texto);
  font-family: var(--fuente-principal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radio-boton);
  cursor: pointer;
  transition: all 0.25s ease;
}

.formulario__boton:hover {
  background: linear-gradient(90deg, rgba(180,0,255,0.4), rgba(0,200,255,0.3));
  border-color: var(--color-acento-cyan);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.formulario__mensaje {
  margin-top: 18px;
  font-size: 0.9rem;
  display: none;
}

.formulario__mensaje.exito {
  color: #66ff99;
  display: block;
}

.formulario__mensaje.error {
  color: #ff4d4d;
  display: block;
}

/* Responsive: una columna en móvil */
@media (max-width: 600px) {
  .formulario__fila {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOQUE 08 — RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

  .home__titulo {
    font-size: 2rem;
  }

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

  .demo-item {
    grid-column: span 1;
  }

  .demo-item:nth-child(4),
  .demo-item:nth-child(5) {
    grid-column: span 1;
  }

  .bio__contenedor {
    flex-direction: column;
  }

  .bio__logo {
    width: 120px;
  }

  .formulario {
    padding: 24px 16px;
  }

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

  .portada__idioma-btn {
    min-width: 84px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .portada__idioma-bandera {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
  }
}

@media (max-width: 480px) {

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

  .demo-item,
  .demo-item:nth-child(4),
  .demo-item:nth-child(5) {
    grid-column: span 1;
  }

  .home__titulo {
    font-size: 1.6rem;
  }

  .portada__logo {
    max-width: 320px;
  }

  .portada__idioma-texto {
    font-size: 0.68rem;
  }

  .portada__idioma-btn {
    min-width: 76px;
    padding: 7px 12px;
    font-size: 0.70rem;
  }

  .portada__idioma-bandera {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
  }

  .portada__claim {
    max-width: 220px;
    width: 100%;
    margin-top: -4px;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.58);
  }

  .portada__claim span {
    display: block;
  }

  .portada__instagram {
    bottom: 22px;
  }
}

/* ============================================================
   BLOQUE 09 — FAQ FLOTANTE, INSTAGRAM Y PIE DE PÁGINA
   ============================================================ */

.faq-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180,0,255,0.75), rgba(0,200,255,0.45));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(204, 0, 255, 0.35);
  backdrop-filter: blur(8px);
}

.faq-panel {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 1199;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(5, 5, 8, 0.94);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
}

.faq-panel.activo {
  display: block;
}

.faq-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(180,0,255,0.35), rgba(0,200,255,0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-panel__cerrar {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.faq-panel__contenido {
  max-height: calc(70vh - 54px);
  overflow-y: auto;
  padding: 10px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item__pregunta {
  width: 100%;
  padding: 13px 4px 13px 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--fuente-principal);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-item__pregunta::before {
  content: '▶';
  position: absolute;
  left: 2px;
  top: 13px;
  font-size: 0.65rem;
  color: var(--color-acento-cyan);
  transition: transform 0.2s ease;
}

.faq-item.activo .faq-item__pregunta::before {
  transform: rotate(90deg);
}

.faq-item__respuesta {
  display: none;
  padding: 0 4px 14px;
  color: var(--color-texto-suave);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.55;
}

.faq-item.activo .faq-item__respuesta {
  display: block;
}

/* ============================================================
   INSTAGRAM FLOTANTE HOME
   ============================================================ */

.home__instagram {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1200;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180,0,255,0.75), rgba(0,200,255,0.45));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(204, 0, 255, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home__instagram:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 30px rgba(204, 0, 255, 0.55);
}

.home__instagram img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.home__instagram-texto {
  display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 22px 20px 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__texto {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-texto-suave);
}

@media (max-width: 480px) {

  .faq-float {
    right: 16px;
    bottom: 16px;
    padding: 11px 16px;
    font-size: 0.70rem;
  }

  .faq-panel {
    right: 16px;
    bottom: 70px;
    width: calc(100vw - 32px);
    max-height: 72vh;
  }

  .faq-panel__contenido {
    max-height: calc(72vh - 54px);
  }

  .home__instagram {
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .home__instagram img {
    width: 38px;
    height: 38px;
  }
}
/* ============================================================
   FIN styles.css
   ============================================================ */