/* OXLN Reglamentos - Estilos */
/* Colores canónicos OXLN (verificados 2026-08-01) */

:root {
  --indigo:   #2A32A0;
  --indigo-d: #1A1E63;
  --indigo-dd:#12153F;
  --brand:    #3442BC;
  --royal:    #3B59C4;
  --blue:     #4C94D7;
  --sky:      #40BEE6;
  --cyan:     #5CCEEA;
  --cyan-br:  #63E5F2;
  --ink:      #171B2E;
  --muted:    #5C6578;
  --bg:       #f6f8fd;
  --white:    #ffffff;

  --grad: linear-gradient(120deg, var(--brand) 0%, var(--blue) 52%, var(--sky) 100%);
  --grad-dark: linear-gradient(160deg, var(--indigo-dd) 0%, var(--indigo-d) 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(18,21,63,0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================ SHELL ADMIN ================ */

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: var(--grad-dark);
  color: white;
  padding: 20px 18px;
  min-height: 100vh;
}

.topbar {
  background: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e6eaf2;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--indigo-dd);
  letter-spacing: -0.5px;
}

.brand-mark .pill {
  background: var(--ink);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.main {
  padding: 28px 32px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: transform .1s, box-shadow .2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 6px 20px rgba(52,66,188,0.35);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-secondary {
  background: white;
  color: var(--indigo-dd);
  border: 1px solid #d6dde8;
}

.btn-block { display: block; width: 100%; }

/* Sidebar list */
.side-title {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 22px 0 10px;
  padding-left: 6px;
}

.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 4px;
}
.side-list li a:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: white; }
.side-list li a.active { background: var(--grad); color: white; box-shadow: 0 6px 20px rgba(52,66,188,0.4); }

.side-item {
  display: block;
  padding: 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
  font-size: 13px;
}
.side-item:hover { background: rgba(255,255,255,0.05); text-decoration: none; }
.side-item.active { background: rgba(255,255,255,0.08); border-left: 3px solid var(--cyan-br); padding-left: 9px; }
.side-item strong { display: block; color: white; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.side-item small { opacity: 0.7; }

/* Tabs (filter chips) */
.chips { display: flex; gap: 6px; margin: 8px 0 14px; }
.chip {
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.chip.active { background: var(--grad); color: white; font-weight: 600; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card-header {
  border-bottom: 1px solid #eef1f7;
  padding-bottom: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2 { margin: 0; font-size: 18px; color: var(--indigo-dd); }

/* Estado badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-pendiente { background: #fff4d6; color: #8a5a00; }
.badge-aceptado  { background: #d9f7d9; color: #1e6b1e; }
.badge-expirado  { background: #f0f0f0; color: #666; }
.badge-revocado  { background: #ffe1e1; color: #a13030; }
.badge-activo    { background: #d9f7d9; color: #1e6b1e; }
.badge-cerrado   { background: #f0f0f0; color: #666; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--indigo-dd); }
input[type=text], input[type=email], input[type=url], input[type=tel], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6dde8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: white;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(52,66,188,0.1); }

.field { margin-bottom: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid #eef1f7; }
td { padding: 12px 8px; border-bottom: 1px solid #f2f4f9; font-size: 14px; vertical-align: middle; }

/* Copy link box */
.link-box {
  background: var(--grad);
  color: white;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.link-box code {
  flex: 1;
  background: rgba(0,0,0,0.2);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 13px;
  word-break: break-all;
  color: white;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #d9f7d9; color: #1e6b1e; }
.alert-error { background: #ffe1e1; color: #a13030; }
.alert-info { background: #eef9fc; color: var(--indigo-d); }

/* ================ PÁGINA PÚBLICA (aceptación) ================ */

.pub-shell {
  min-height: 100vh;
  background: var(--bg);
}

/* Top nav (bar superior estilo oxln.com) */
.pub-nav {
  background: white;
  border-bottom: 1px solid #e6eaf2;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(18,21,63,0.04);
}
.pub-nav .logo img { height: 36px; display: block; }
.pub-nav .back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.pub-nav .back-link:hover { color: var(--brand); text-decoration: none; }

.pub-hero {
  background: var(--grad);
  color: white;
  padding: 44px 24px 40px;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.pub-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pub-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
}
.pub-hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.pub-hero p { margin: 0; opacity: 0.95; font-size: 16px; line-height: 1.5; }

/* Trust chips in hero */
.trust-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.trust-chip {
  font-size: 12px;
  color: white;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.trust-chip .stars { color: #FFD966; letter-spacing: 1px; }
.trust-chip strong { font-weight: 700; }

.pub-container {
  max-width: 780px;
  margin: -22px auto 0;
  padding: 0 24px;
}

.reg-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.reg-intro {
  background: var(--bg);
  border-left: 3px solid var(--sky);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
}

.reg-card h2 {
  font-size: 17px;
  color: var(--indigo-dd);
  margin: 24px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--sky);
  line-height: 1.2;
}
.reg-card h2 .num { color: var(--brand); font-weight: 800; margin-right: 8px; }

.reg-card .clause {
  margin: 0 0 8px 0;
  padding-left: 34px;
  text-indent: -34px;
  font-size: 14px;
}
.reg-card .clause .id {
  display: inline-block;
  width: 30px;
  color: var(--brand);
  font-weight: 700;
  text-indent: 0;
}

.accept-box {
  background: linear-gradient(180deg, #eef9fc 0%, #ffffff 100%);
  border: 2px solid var(--sky);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
}

.accept-box h3 { margin: 0 0 12px; color: var(--indigo-dd); font-size: 18px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  font-size: 14px;
}
.checkbox-row input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* Sección "qué encontrás en la comunidad" */
.pub-section {
  max-width: 780px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.pub-section-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}
.pub-section h2 {
  text-align: center;
  font-size: 22px;
  color: var(--indigo-dd);
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(18,21,63,0.06);
  text-align: center;
}
.feature .icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}
.feature h3 {
  font-size: 14px;
  color: var(--indigo-dd);
  margin: 0 0 4px;
  font-weight: 700;
}
.feature p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.testimonial {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(18,21,63,0.06);
  position: relative;
}
.testimonial .stars { color: #FFD966; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.testimonial p { font-size: 13px; color: var(--ink); line-height: 1.5; margin: 0 0 10px; }
.testimonial .author { font-size: 12px; color: var(--muted); }
.testimonial .author strong { color: var(--indigo-dd); }

/* Mini FAQ */
.mini-faq {
  background: white;
  border-radius: 14px;
  padding: 6px 20px;
  box-shadow: 0 4px 18px rgba(18,21,63,0.06);
}
.mini-faq details {
  border-bottom: 1px solid #eef1f7;
  padding: 14px 0;
}
.mini-faq details:last-child { border-bottom: none; }
.mini-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--indigo-dd);
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: '+'; color: var(--brand); font-size: 20px; font-weight: 400; }
.mini-faq details[open] summary::after { content: '−'; }
.mini-faq details p { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Footer completo */
.pub-footer {
  background: var(--indigo-dd);
  color: rgba(255,255,255,0.85);
  margin-top: 50px;
  padding: 40px 24px 24px;
}
.pub-footer-inner {
  max-width: 780px;
  margin: 0 auto;
}
.pub-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pub-footer .footer-brand img { height: 32px; }
.pub-footer .tagline { font-size: 13px; opacity: 0.7; margin: 0 0 24px; }
.pub-footer .socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pub-footer .socials a {
  color: white;
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: background .2s;
}
.pub-footer .socials a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.pub-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.6;
}

.error-box {
  text-align: center;
  padding: 40px 24px;
}
.error-box .icon { font-size: 44px; margin-bottom: 16px; }
.error-box h2 { color: var(--indigo-dd); margin: 0 0 8px; }
.error-box p { color: var(--muted); margin: 0 0 20px; }

/* Responsive */
@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .main { padding: 20px 16px; }
  .reg-card { padding: 22px 20px; }
  .row { grid-template-columns: 1fr; }
  .pub-hero { padding: 32px 20px 34px; }
  .pub-hero h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .pub-nav { padding: 10px 16px; }
  .pub-nav .logo img { height: 30px; }
}
