/* ============================================================
   🎨 VARIABLES & BASE
   ============================================================ */
:root {
  --color-bg: #f2f2f2; /* Un gris técnico muy claro, no blanco puro */
  --color-text: #111;
  --color-surface: #ffffff;
  --brand-primary: #ff3e3e;
  --color-dark-surface: #0a0a0a; /* Negro casi puro */
  --color-input-bg: #1a1a1a;
  --color-border-dark: #333;
  --font-base: "Inter", sans-serif;
}

body { margin: 0; font-family: var(--font-base); overflow-x: hidden; background: var(--color-bg); }

/* ============================================================
   🏭 ESCENARIO TÉCNICO (Fondo)
   ============================================================ */
#agenda-page {
  /* Grilla más marcada para sensación de "Blueprints" */
  background-image: 
      linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  
  display: flex; flex-direction: column; align-items: center; width: 100%;
  padding-bottom: 5rem;
}

@keyframes floatUp { 0% { opacity: 0; transform: translateY(40px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stripesMove { 0% { background-position: 0 0; } 100% { background-position: 40px 40px; } }

/* ============================================================
   📢 INTRO (Brutalista)
   ============================================================ */
#intro-agenda {
  text-align: center; padding: 6rem 0 3rem; width: 85%; max-width: 1000px;
  animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#intro-agenda h1 {
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.04em;
  font-size: clamp(3.5rem, 8vw, 6rem); /* GIGANTE */
  line-height: 0.85; margin-bottom: 1.5rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-text); /* Solo contorno */
  position: relative; display: inline-block;
}

/* Efecto de relleno sólido al hacer hover en el título (Easter egg) */
#intro-agenda h1:hover { color: var(--color-text); cursor: default; transition: 0.3s; }

#intro-agenda p {
  font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; max-width: 50ch; margin: 0 auto;
  background: var(--color-text); color: #fff; padding: 0.5rem 1rem; /* Estilo etiqueta */
  transform: rotate(-1deg); display: inline-block;
}

/* ============================================================
   🎛️ EL MONOLITO (Formulario Dark Mode)
   ============================================================ */
#formulario-agenda {
  width: 100%; display: flex; justify-content: center; margin: 2rem 0 8rem; position: relative;
  perspective: 1000px;
}

/* --- DECORACIÓN: CINTA DE PRECAUCIÓN ANIMADA --- */
#formulario-agenda::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 100%; max-width: 700px; height: 100%;
  
  /* Patrón rayado amarillo/negro o rojo/transparente */
  background: repeating-linear-gradient(
    45deg,
    var(--brand-primary),
    var(--brand-primary) 10px,
    transparent 10px,
    transparent 20px
  );
  
  opacity: 0.3; z-index: 0; border-radius: 20px;
  transform: translate(-50%, -45%) rotate(3deg) scale(0.95);
  animation: stripesMove 2s linear infinite; /* ¡Se mueve! */
  mask-image: linear-gradient(to bottom, transparent, black, black, transparent); /* Se desvanece en bordes */
}

/* --- LA CAJA NEGRA --- */
#form-agenda {
  position: relative; z-index: 10;
  width: 85%; max-width: 600px;
  background: var(--color-dark-surface); /* FONDO NEGRO */
  color: #fff; /* TEXTO BLANCO */
  border: 1px solid var(--color-border-dark);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  
  /* Sombra roja difusa ("Cyberpunk Glow") */
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  
  display: flex; flex-direction: column; gap: 1.8rem;
  animation: floatUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s; opacity: 0;
}

/* Detalles técnicos en las esquinas de la tarjeta */
#form-agenda::after {
  content: 'SYSTEM_READY'; position: absolute; top: 1rem; right: 1.5rem;
  font-family: monospace; font-size: 0.7rem; color: var(--brand-primary); opacity: 0.7; letter-spacing: 0.1em;
}

/* ============================================================
   ⌨️ INPUTS (Estilo Terminal)
   ============================================================ */
.campo { display: flex; flex-direction: column; gap: 0.6rem; }

.campo label {
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #888; margin-left: 4px; transition: color 0.3s;
}

.campo:hover label { color: #fff; }

.campo input, .campo textarea, .campo select {
  padding: 1.2rem;
  background-color: var(--color-input-bg); /* Input oscuro */
  color: #fff;
  border: 1px solid var(--color-border-dark);
  border-radius: 6px;
  font-family: "Inter", monospace; /* Toque tech */
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.campo input::placeholder, .campo textarea::placeholder { color: #444; }

/* FOCUS DE ALTO IMPACTO */
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none;
  background-color: #000;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(255, 62, 62, 0.15); /* Halo rojo */
  transform: translateX(5px); /* Desplazamiento lateral */
  border-left: 4px solid var(--brand-primary); /* Borde grueso lateral */
}

.campo textarea { min-height: 140px; resize: none; }

/* Select Dark Mode */
.campo select {
  cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px; background-repeat: no-repeat;
}
.campo option { background-color: var(--color-dark-surface); color: #fff; }

/* ============================================================
   🔴 BOTÓN "LANZAMIENTO"
   ============================================================ */
.btn-agenda {
  margin-top: 1rem; width: 100%; padding: 1.2rem;
  background: var(--brand-primary); color: #fff;
  font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: none; border-radius: 4px; cursor: pointer;
  position: relative; overflow: hidden; transition: 0.2s;
}

/* Efecto Glitch/Tech en Hover */
.btn-agenda:hover {
  background: #fff; color: var(--color-dark-surface);
  box-shadow: 0 0 30px var(--brand-primary);
  transform: scale(1.02);
}

/* ============================================================
   🚀 CTA FINAL (Minimalista para descomprimir)
   ============================================================ */
#cta-agenda {
  width: 100%; text-align: center; padding: 4rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  opacity: 0; animation: floatUp 1s ease forwards 0.5s;
}

#cta-agenda h2 { font-weight: 900; font-style: italic; font-size: 2rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.btn-secundario {
  color: var(--color-text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 2px; transition: 0.3s;
}
.btn-secundario:hover { background: var(--brand-primary); color: #fff; padding: 5px 10px; border-bottom: none; }

/* ============================================================
   📱 RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  #intro-agenda { padding: 4rem 0 2rem; }
  #intro-agenda h1 { font-size: 3rem; -webkit-text-stroke: 1px var(--color-text); }
  #intro-agenda p { transform: rotate(0deg); background: transparent; color: var(--color-text); padding: 0; }
  
  #form-agenda { width: 90%; padding: 2rem 1.5rem; }
  #formulario-agenda::before { width: 90%; transform: translate(-50%, -50%) rotate(0deg); }
}