/* ==========================================================
   NUMEVO LANDING — Hoja de estilos principal
   Arquitectura: Swiss Clean Brutalism
   ========================================================== */

/* ----------------------------------------------------------
   1. TOKENS DE DISEÑO (Variables globales)
   Aquí se controla la paleta, tipografía y espaciado de TODO el sitio.
   Para modo oscuro: ver sección al final de este archivo.
   ---------------------------------------------------------- */
:root {
  /* Colores */
  --bg-color: #ffffff;
  --bg-muted: #f9f9f9;
  --ink-violet: #8575bc;
  --ink-dviolet: #2b2063;
  --ink-dblue: #001d39;
  --ink-color: #111111;
  --ink-med: #2d343b;
  --ink-light: #525f6b;
  --line-color: #e5e5e5;
  --line-strong: #111111;

  /* Tipografía */
  --font-sans: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Espaciado */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

/* ----------------------------------------------------------
   2. RESET Y BASE
   ---------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--ink-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Grilla de fondo arquitectónica (estética técnica sutil) */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  background-position: center top;
}

/* Utilidades de tipografía */
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.text-light {
  color: var(--ink-light);
}
.text-sm {
  font-size: 0.85rem;
}
.text-sm2 {
  font-size: 0.75rem;
}
.tracking-tight {
  letter-spacing: -0.04em;
}
.tracking-wide {
  letter-spacing: 0.1em;
}

/* Estado inicial de elementos animados (ocultos antes del scroll) */
.reveal {
  opacity: 0;
}

/* ----------------------------------------------------------
   3. NAVEGACIÓN
   ---------------------------------------------------------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.8rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  z-index: 10;
}

/* ----------------------------------------------------------
   4. HERO — Canvas con imagen de fondo + título superpuesto
   ---------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-strong);
}

/* Área de imagen/arte del encabezado.
   Para cambiar la imagen: modificar background-image aquí. */
.hero-canvas {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;

  /* Imagen de fondo del hero */
  background-image: url("../img/numevo-bgn-head-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Título principal superpuesto sobre la imagen */
.hero-canvas h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 7vw, 6rem);
  text-shadow: 0px 0px 6px rgba(255, 255, 255, 0.8);
  font-weight: 800;
  letter-spacing: -0.02em;
  /* Si la imagen es oscura, cambiar este color a #ffffff */
  color: var(--ink-dviolet);
}

/* Área de texto introductorio debajo del canvas */
.hero-body {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-body h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--ink-color);
  margin-bottom: var(--spacing-md);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-body p {
  font-size: 1.15rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.hero-body blockquote {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-color);
  border-left: 2px solid var(--line-strong);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
}

.hero-body .hero-technique-tag {
  margin-top: 2rem;
  border-top: 1px solid var(--line-color);
  padding-top: 1rem;
}

/* ----------------------------------------------------------
   5. FRANJAS DE CONTENIDO (Los 9 conceptos de numerología)
   ---------------------------------------------------------- */
/*Separadores de contenidos entre secciones de franjas */
.separator-header {
  padding: var(--spacing-lg) var(--spacing-md);
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-muted) url("../img/bgn-lino-3.jpg") repeat center center;
}
.separator-header h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-med);
  font-family: var(--font-mono);
  text-transform: uppercase;
  max-width: 80%;
  margin: 0 auto;
}

.core-title {
  position: relative;
  padding: 10px;
}
.border-box-left,
.border-box-right {
  position: absolute;
  width: 30px;
  height: 30px;
}
.border-box-left {
  left: 0;
  top: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.border-box-right {
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.stripes-container {
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-color);
}

#LV,
#CL {
  background: var(--bg-muted);
}

/* Para mostrar las franjas en 2 columnas con Flexbox:
   activar display:flex y flex-wrap en .stripes-container,
   y agregar .stripe--half a los artículos que van en pares.
   Ver clase .stripes-group más abajo. */
/* .stripes-container {
    display: flex;
    flex-wrap: wrap;
} */

.stripe {
  position: relative;
  padding: var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid var(--line-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease;
}

.stripe:last-child {
  border-bottom: none;
}
.stripe:hover {
  background-color: var(--bg-muted);
}

/* ----------------------------------------------------------
   VARIANTE: franjas a mitad de ancho en la misma fila

   Uso en HTML:
     <div class="stripes-group">
       <article class="stripe stripe--half">...</article>
       <article class="stripe stripe--half">...</article>
     </div>

   El .stripes-group puede ir DENTRO o FUERA de .stripes-container.
   Si lo ponés fuera, acordate de replicar el border-bottom del contenedor.
   ---------------------------------------------------------- */
.stripes-group {
  display: flex;
  border-bottom: 1px solid var(--line-color);
}

.stripe--half {
  flex: 1; /* ocupa el 50% disponible */
  border-bottom: none; /* el grupo maneja el borde inferior */
  border-right: 1px solid var(--line-color); /* divisor vertical entre pares */
}

.stripe--half:last-child {
  border-right: none;
}

/* Modificadores de dirección de animación para franjas en pares.
   El JS lee estas clases y asigna automáticamente el data-anim correcto:
     .stripe--left  → animate__fadeInLeft
     .stripe--right → animate__fadeInRight
   Agregar al HTML junto con .stripe--half:
     <article class="stripe stripe--half stripe--left reveal">  */
.stripe--left,
.stripe--right {
  /* Sin CSS visual propio: son marcadores semánticos leidos por el JS */
}

@media (max-width: 900px) {
  /* En móvil el grupo vuelve a apilarse verticalmente */
  .stripes-group {
    flex-direction: column;
    border-bottom: none;
  }
  .stripe--half {
    border-right: none;
    border-bottom: 1px solid var(--line-color);
  }
  .stripe--half:last-child {
    border-bottom: none;
  }
}

/* Número decorativo de fondo (01 — 09) */
.stripe-bg-num {
  position: absolute;
  right: -2%;
  bottom: -15%;
  font-family: var(--font-mono);
  font-size: clamp(12rem, 25vw, 25rem);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  z-index: 0;
  user-select: none;
}

.stripe-bg-num span {
  font-size: 0.5em;
  vertical-align: top;
  color: rgba(0, 0, 0, 0.05);
}

/* Contenido de la franja (sobre el número decorativo) */
.stripe-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.stripe-content h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}
.stripe-content h3 span {
  font-size: 0.8em;
  color: var(--ink-light);
  margin-left: 0.5rem;
}

.stripe-content h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.stripe-content p {
  font-size: 1.1rem;
  color: var(--ink-light);
}

/* ----------------------------------------------------------
   MODIFICADORES DE LAYOUT INTERNO DE LA FRANJA
   Se aplican en el elemento .stripe para controlar la posición
   del contenido y del número decorativo de fondo.

   Uso:
     <article class="stripe content--left">   ← texto izq, número der (default)
     <article class="stripe content--right">  ← texto der, número izq
   ---------------------------------------------------------- */

/* Texto a la izquierda, número decorativo a la derecha (comportamiento base) */
.stripe.content--left .stripe-bg-num {
  right: 5px;
  left: auto;
}

/* Texto a la derecha, número decorativo a la izquierda */
.stripe.content--right {
  justify-content: flex-end; /* empuja el .stripe-content hacia la derecha */
}

.stripe.content--right .stripe-content {
  text-align: right;
}

.stripe.content--right .stripe-bg-num {
  left: 5px;
  right: auto;
}

/* ----------------------------------------------------------
   6. SHOWCASE (Lecturas y Metodología)
   ---------------------------------------------------------- */
.showcase {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--line-strong);
  background-color: var(--bg-muted);
}

.showcase-header {
  padding: 0 var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
}

.showcase-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.showcase-grid {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-md);
}

.showcase-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Cajas de wireframe que ilustran la app */
.wireframe-box {
  aspect-ratio: 8 / 7;
  width: 100%;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-color);
  margin-bottom: var(--spacing-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Imagen real de la plataforma dentro del wireframe-box */
.wireframe-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Marcas de esquina estilo blueprint */
.wireframe-box::before {
  content: "+";
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 12px;
  color: var(--line-strong);
}
.wireframe-box::after {
  content: "+";
  position: absolute;
  bottom: -12px;
  right: -5px;
  font-size: 12px;
  color: var(--line-strong);
}

/* Elementos internos del wireframe */
.wf-header {
  width: 100%;
  height: 15px;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  gap: 5px;
}
.wf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.wf-line {
  height: 1px;
  background: var(--line-color);
  width: 100%;
  margin-top: 5px;
}
.wf-line.thick {
  background: var(--line-strong);
  width: 40%;
  height: 2px;
}
.wf-block {
  flex: 1;
  border: 1px solid var(--line-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-light);
  background: #fafafa;
}

.showcase-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.showcase-item p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* ----------------------------------------------------------
   7. SECCIÓN DE CIERRE (Perfil + Formulario de contacto)
   ---------------------------------------------------------- */
.closure-section {
  display: flex;
  flex-direction: row;
  background: var(--bg-color);
}

/* Panel izquierdo: perfil del autor */
.profile-pane {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-md);
  border-right: 1px solid var(--line-strong);
}

.profile-pane h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.profile-pane p {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
  max-width: 500px;
}

.profile-signature {
  margin-top: 2rem;
}

/* Panel derecho: formulario */
.contact-pane {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* ----------------------------------------------------------
   8. FORMULARIO DE CONTACTO
   ---------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--ink-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-muted);
  padding: 1.2rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-color);
  outline: none;
  border-radius: 0;
  transition:
    background 0.3s,
    box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--bg-color);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
  padding: 1.2rem 2rem;
  background: var(--ink-color);
  color: var(--bg-color);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  transition: all 0.2s;
}

.contact-form button[type="submit"]:hover {
  background: var(--bg-color);
  color: var(--ink-color);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  transform: translate(-2px, -2px);
}

/* Mensaje de feedback tras el envío del formulario */
.form-feedback {
  display: none;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.form-feedback.success {
  border-color: #2e7d32;
  color: #2e7d32;
}
.form-feedback.error {
  border-color: #c62828;
  color: #c62828;
}

/* Fila de dos campos en paralelo */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
  min-width: 0; /* evita overflow en flex items */
}

/* Título separador dentro del formulario (datos opcionales, etc.) */
.form-section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  border-top: 1px solid var(--line-color);
  padding-top: 1.5rem;
}

/* Variante sin borde superior — para el primer título del formulario */
.form-section-title:first-child,
.form-section-title--first {
  border-top: none;
  padding-top: 0;
}

/* Select con el mismo estilo visual que los inputs */
.contact-form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-muted);
  /* Flecha personalizada como SVG inline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding: 1.2rem 2.5rem 1.2rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-color);
  outline: none;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color 0.3s,
    box-shadow 0.2s;
}

.contact-form select:focus {
  background-color: var(--bg-color);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/* ----------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.8rem;
  background: var(--bg-color);
  border-top: 1px solid var(--line-strong);
  margin-top: var(--spacing-lg);
}

/* Oculta el badge flotante de reCAPTCHA v3.
   Los términos de Google exigen mencionar reCAPTCHA en el sitio — ver footer. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.site-footer a {
  color: var(--ink-color);
  text-decoration: none;
  font-weight: 700;
}

/* ----------------------------------------------------------
   10. BOTONES FLOTANTES (FABs — Contacto rápido)
   ---------------------------------------------------------- */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.fab-btn {
  width: 60px;
  height: 60px;
  background-color: var(--bg-color);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-color);
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.fab-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
  background-color: var(--bg-muted);
}

/* ----------------------------------------------------------
   11. RESPONSIVE (mobile-first breakpoint: 900px)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .showcase-grid {
    flex-direction: column;
  }
  .closure-section {
    flex-direction: column;
  }
  .profile-pane {
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }
  .stripe-bg-num {
    font-size: 45vw;
    right: -5%;
    bottom: -5%;
  }
  /* Filas del formulario vuelven a columna en móvil */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Si activaste el flex-wrap en .stripes-container (ver comentario arriba),
     este bloque revierte las franjas a columna completa en móvil */
  .stripes-container {
    flex-wrap: nowrap;
    flex-direction: column;
  }
  .stripe {
    border-right: none;
  }
  .separator-header {
    padding: 20px;
  }
  .separator-header h3 {
    font-size: 1rem;
    max-width: 90%;
  }
}

/* ----------------------------------------------------------
   12. MODO OSCURO (Opcional)
   Para activarlo: reemplazar los valores de :root por estos.
   ----------------------------------------------------------
:root {
    --bg-color:    #111111;
    --bg-muted:    #1a1a1a;
    --ink-color:   #ffffff;
    --ink-light:   #a0a0a0;
    --line-color:  #333333;
    --line-strong: #ffffff;
}
*/
