:root{
  /* Paleta final */
  --bg: #0B1F3A;        /* Navy (background) */
  --title: #C6FF00;     /* Verde limón (titulares) */
  --link: #D6C7A1;      /* Arena (links) */

  /* Neutros y UI */
  --text: rgba(255,255,255,.98);
  --muted: rgba(255,255,255,.72);
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --shadow: 0 12px 40px rgba(0,0,0,.38);
  --radius: 18px;

  /* Acento para elementos UI (botones/puntos/contornos) */
  --accent: var(--title);
}

:root[data-theme="light"]{
  --bg: #ffffff;
  --title: #6ab802;
  --text: rgba(10,20,35,.98);
  --muted: #111;  
  --card: rgba(10,20,35,.04);
  --line: rgba(10,20,35,.14);
  --shadow: 0 12px 40px rgba(0,0,0,.14);
}

/* en claro quitamos los radial gradients oscuros */
:root[data-theme="light"] body{
  background: var(--bg);
}

:root[data-theme="light"] header{
  background: rgba(255,255,255,.78);
}

.logo-light{ display:none; }
:root[data-theme="light"] .logo-dark{ display:none; }
:root[data-theme="light"] .logo-light{ display:block; }

/* Footer logo swap (dark vs light) */
.logo-footer .logo-light{ display: none; }
.logo-footer .logo-dark{ display: block; }

:root[data-theme="light"] .logo-footer .logo-dark{ display: none; }
:root[data-theme="light"] .logo-footer .logo-light{ display: block; }

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1000px 650px at 15% -10%, rgba(198,255,0,.12), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(214,199,161,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{
  color: var(--link);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }
a:focus-visible{
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Layout */
.wrap{ max-width:980px; margin:0 auto; padding:18px; }

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,31,58,.70); /* navy con transparencia */
  border-bottom: 1px solid var(--line);
}

.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logo{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}
.logo img{ width:100%; height:100%; object-fit:cover; }

.brandText{ min-width:0; }

.brandText .name{
  margin:0;
  font-size:14px;
  letter-spacing:.6px;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color: var(--title);
}

.brandText .tag{
  margin:2px 0 0;
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brandText{
  min-width: 0;
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
}

.brandText .name,
.brandText .tag{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brandText .tag{
  width: 100%;
}

@media (max-width: 600px){
  .brandText .name{
    font-size: 12px;
    max-width: 48vw;
  }

  .brandText .tag{
    font-size: 10px;
    max-width: 48vw;
    letter-spacing: -0.2px;
  }
}

h1, h2, h3, h4, h5, h6,
.sectionTitle{
  color: var(--title);
}

h2{
  margin:10px 0 8px;
  font-size:28px;
  line-height:1.15;
}

/* Texto secundario */
p, .lead, .small{
  color: var(--muted);
}
.lead{ margin:0; font-size:16px; max-width:65ch; }

.hero{ padding:18px 0 10px; }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  width:fit-content;
  font-size:13px;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:14px;
}
@media(min-width:780px){
  .grid.two{ grid-template-columns:1fr 1fr; }
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.card h3{ margin:0 0 8px; font-size:16px; }
.card p{ margin:0; font-size:14px; color: var(--muted); }

/* Listas */
.list{ margin:10px 0 0; padding:0; list-style:none; }
.list li{
  display:flex;
  gap:10px;
  padding:10px 0;
  border-top:1px dashed rgba(255,255,255,.10);
  color: var(--muted);
  font-size:14px;
}
.list li:first-child{ border-top:none; padding-top:0; }

.dot{
  width:10px;
  height:10px;
  margin-top:6px;
  border-radius:999px;
  background: var(--accent); /* verde limón */
  flex:0 0 auto;
}

/* Secciones */
section{ padding:14px 0; }
.sectionTitle{ margin:0 0 12px; font-size:18px; letter-spacing:.2px; }

/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-size:13px;
  color: var(--muted);
}

/* Botones */
.btnRow{
  display:flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content:flex-end;
  align-items:center;
  flex: 0 0 auto;
}

.btnRow a,
.btnRow .themeToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--link);
  text-decoration:none;
  cursor:pointer;
  padding:0;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btnRow a:hover,
.btnRow a:focus-visible,
.btnRow .themeToggle:hover,
.btnRow .themeToggle:focus-visible{
  text-decoration:none;
  color: var(--title);
  background: rgba(0,0,0,.28);
  border-color: rgba(198,255,0,.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  min-height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
  font-weight:650;
  font-size:13px;
}

.btn.primary{
  background: rgba(198,255,0,.16);
  border-color: rgba(198,255,0,.45);
  color: var(--text);
}

/* Callout */
.callout{
  display:flex;
  flex-direction:column;
  gap:10px;
  background: rgba(214,199,161,.10);
  border:1px solid rgba(214,199,161,.25);
  border-radius: var(--radius);
  padding:16px;
}
.callout strong{ font-size:14px; color: var(--title); }
.callout p{ margin:0; font-size:14px; color: var(--muted); }

/* Footer */
footer{
  border-top:1px solid var(--line);
  margin-top:16px;
  padding:16px 0 26px;
  color: var(--muted);
  font-size:13px;
}

.small{ font-size:12px; color: var(--muted); }
.anchor{ scroll-margin-top:84px; }

/* Sección redes sociales */
#redes-sociales{
  text-align: center;
}

.logo-footer{
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-footer img{
  width: 220px;
  max-width: 90%;
  height: auto;
  display: block;
}

.icon-social{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.icon-social li{ margin: 0; }

.icon-social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 24px;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.icon-social a:hover,
.icon-social a:focus-visible{
  color: #D6C7A1;
  border-color: rgba(214,199,161,.55);
  background: rgba(214,199,161,.10);
  transform: translateY(-1px);
}

.foto{
  width: 100%;
  height: 320px; 
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.foto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 600px){
  .foto{ height: 220px; }
}

/* Modal (sin librerías) */
body.modal-open{ overflow:hidden; }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{ display:block; }

.modal-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.modal-dialog{
  position: relative;
  max-width: 560px;
  margin: 10vh auto;
  background: rgba(11,31,58,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  color: var(--text);
}

.modal-x{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius: 12px;
  border:1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor:pointer;
}

.modal .input-field{ margin-top: 10px; }
.modal label{ display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.modal input, .modal textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.modal input:focus, .modal textarea:focus{
  border-color: rgba(198,255,0,.45);
}
@media (max-width: 600px){
  .modal-dialog{ margin: 8vh 12px; }
}

.modal-dialog .modal-logo{
  width: 200px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 12px;
  max-width: 70%;
}

.modal-dialog{
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px){
  .modal-dialog{ margin: 6vh 12px; max-height: 88vh; }
}

.pw-wrap{ display:flex; gap:10px; align-items:center; }
.pw-wrap input{ flex:1 1 auto; }

.pw-toggle{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.pw-toggle:hover,
.pw-toggle:focus-visible{
  border-color: rgba(255,255,255,.12);
}

.ctaRow{
  display:flex;
  gap:12px;
  align-items:stretch;
}

.ctaRow .btn{
  flex: 1 1 0;
  justify-content:center;
}

@media (max-width: 600px){
  .ctaRow{
    flex-direction:column; /* en cel: uno debajo del otro */
  }
}

