:root {
  --bg: #010103;
  --surface: #101117;
  --primary: #e63946;
  --secondary: #457b9d;
  --text: #f1faee;
  --text-muted: #a8dadc;
  --glow-primary: rgba(230, 57, 70, 0.5);
  --glow-secondary: rgba(69, 123, 157, 0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; cursor: none; }

html, body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
}
.cursor--light {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-secondary) 0%, rgba(69, 123, 157, 0) 50%);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.cursor--dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}
body:hover .cursor--light { opacity: 1; }

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  opacity: 0.5;
}

main { position: relative; z-index: 2; }
.wrap { width: calc(100% - 60px); max-width: 1100px; margin: 0 auto; }

h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
p { line-height: 1.7; color: var(--text-muted); }
ol { list-style: none; padding: 0; margin: 0; }

.panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  position: relative;
}

.panel-hero {
  text-align: center;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  margin: 0;
  font-weight: 900;
  color: var(--text);
  text-shadow: 0 0 30px rgba(241, 250, 238, 0.2);
}
.hero-title .highlight {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
}
.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px auto 0;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 2px;
  height: 40px;
  background: var(--primary);
  margin: 10px auto 0;
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.7; }
}

.panel-how {
  padding: 0;
}
.how-sticky-container {
  height: 300vh; 
  position: relative;
}
.how-canvas {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.how-text-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.how-step {
  position: absolute;
  text-align: center;
  max-width: 450px;
}
.how-step h3 {
  font-size: 3rem;
  margin: 0 0 10px;
  color: var(--primary);
}
.how-step p {
  font-size: 1.1rem;
}
.how-visual {
    position: relative;
    width: 300px;
    height: 300px;
}
.how-visual .ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--glow-secondary);
    opacity: 0.5;
}
.how-visual .dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.metric-card .value {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}
.metric-card .label {
  margin-top: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.metric-card-glow {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), var(--glow-primary) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.metric-card:hover .metric-card-glow {
    opacity: 1;
}

/* ESTILOS PARA EL NUEVO FORMULARIO DE CONTACTO */

.panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background-color: rgba(16, 17, 23, 0.7); /* --surface con transparencia */
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(69, 123, 157, 0.3); /* --secondary con transparencia */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(69, 123, 157, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin: 0 0 10px;
}

.form-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.contact-form .form-row .form-group {
  width: 100%;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px;
  background-color: var(--bg);
  border: 1px solid #2a2b38;
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 15px var(--glow-secondary);
}

.contact-form ::placeholder {
  color: #5a5b6d;
}

/* Estilo para los menús desplegables (select) */
.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a8dadc' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.contact-form select:invalid {
  color: #5a5b6d;
}

.contact-form .cta-button {
    display: inline-block;
    width: 100%;
    margin-top: 10px; /* Reducido el margen superior */
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    background: var(--secondary);
    color: var(--text);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
    cursor: pointer;
}

.contact-form .cta-button:hover {
    background-color: var(--primary);
    color: var(--text);
}

.contact-form .cta-button .fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.contact-form .cta-button:hover .fill {
    transform: scaleY(1);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-container {
        padding: 25px;
    }
}