/* ========== Base Pro ========== */
:root{
  --bg: #303030;
  --panel: #696969;
  --text: #e9e9f1;
  --muted: #e9e9f1;
  --line: rgba(255,255,255,.12);
  --accent: #e9e9f1;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

img{
  max-width: 100%;
  height: auto;
}

/* Contenedor central (ojo: el header sticky ya se controla abajo) */
main, footer{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Titulares */
h1, h2, h3{
  line-height: 1.2;
  margin: 0 0 12px;
}

p{
  margin: 0 0 14px;
  color: var(--text);
}

small, .muted{ color: var(--muted); }

hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* ========== Cards + FAQ details ========== */
.section{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  margin: 16px 0;
}

.section ul, .section ol{
  margin: 10px 0 0 18px;
  color: var(--muted);
}

details{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
}

summary{
  cursor: pointer;
  color: var(--text);
}

details p{
  margin-top: 10px;
  color: var(--muted);
}

/* ========== Forms ========== */
label{
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
}

input, select, textarea, button{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
}

/* Placeholder visible */
input::placeholder,
textarea::placeholder{
  color: rgba(233,233,241,.70);
  opacity: 1;
}

/* Focus pro */
input:focus, select:focus, textarea:focus, button:focus{
  border-color: rgba(233,233,241,.55);
  box-shadow: 0 0 0 3px rgba(233,233,241,.20);
}

/* Botón */
button{
  cursor: pointer;
  font-weight: 650;
}

/* ========== Select dropdown legible + flecha ========== */
select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(233,233,241,.85) 50%),
    linear-gradient(135deg, rgba(233,233,241,.85) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select option{
  background: #1a1a22;
  color: #e9e9f1;
}

/* ========== Sticky Header + Nav + Hero ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(48,48,48,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* La barra nav debe centrarse aunque el header sea sticky */
.nav{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  
}

.brand{
  font-weight: 900;
  letter-spacing: .4px;
  text-decoration: none;
  color: var(--text);
}

.nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a{
  text-decoration: none;
  color: rgba(233,233,241,.92);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

/* Botones */
.btn{
  display: inline-block;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
}

.btn-primary{
  background: var(--accent);
  color: #12121a;         /* texto oscuro */
  border-color: transparent;
  font-weight: 750;
}

/* Hero */
.hero{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}

.hero h1{
  margin: 6px 0 8px;
  font-size: 1.35rem;
}

.hero p{ margin: 0; }

/* Mobile */
@media (max-width: 720px){
  .nav{
    flex-direction: column;
    align-items: stretch;
  }
  .nav ul{
    justify-content: center;
  }
  .hero h1{
    font-size: 1.2rem;
  }
}

/* Opcional: limitar ancho del form en desktop */
@media (min-width: 900px){
  form{ max-width: 620px; }
}

/* Solo el botón del header */
.btn-nav{
  background: rgba(233,233,241,.85);
  color: #000 !important;
  border-color: transparent;
    filter: none;
}

/* ========== HOVERS UNIFICADOS (ÚNICO CAMBIO) ========== */
.btn:hover,
button:hover{
  background: rgb(255, 255, 255);
  color: #12121a;
  filter: none;
}

/* (Opcional) si quieres que también los links del nav (no-botones) hagan hover blanco, descomenta:
.nav a:hover{
  background: rgb(255, 255, 255);
  color: #12121a;
  border-color: transparent;
}
*/

.nav .btn.btn-primary.btn-nav:hover{
  background: rgb(255, 255, 255);
  filter: none; /* para que no te lo cambie el brightness */
}