/* ===== Tokens ===== */
:root {
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --ink: #0a0e1a;
  --muted: rgba(10, 14, 26, 0.6);
  --muted-2: rgba(10, 14, 26, 0.65);
  --line: rgba(10, 14, 26, 0.1);
  --blue: #0A84FF;
  --green: #0BAE3F;
  --orange: #FF6A00;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 10px 40px rgba(10, 14, 26, 0.08);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.hidden { display: none !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 1rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 0 30px rgba(10, 132, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(11, 174, 63, 0.4); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ===== Pills / checks ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-light { border: 1px solid var(--line); background: rgba(255,255,255,0.7); color: rgba(10,14,26,0.8); }
.pill-orange { border: 1px solid rgba(255,106,0,0.4); background: rgba(255,106,0,0.1); color: var(--orange); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; }
.dot-green { background: var(--green); }

.check {
  display: inline-block;
  width: 1.1rem; height: 1.1rem;
  border-radius: 9999px;
  flex-shrink: 0;
  position: relative;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.check-blue { background-color: var(--blue); }
.check-green { background-color: var(--green); }
.check-orange { background-color: var(--orange); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(244, 246, 251, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(10,14,26,0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .nav-container { padding: 1rem 32px; } }
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 15px; color: var(--ink); }
.brand-sep { color: rgba(10,14,26,0.3); font-weight: 300; font-size: 1rem; display: none; }
@media (min-width: 640px) { .brand-sep { display: inline; } }
.brand-name-alt { display: none; }
@media (min-width: 640px) { .brand-name-alt { display: inline; } }

.nav-links { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.875rem; font-weight: 500; color: rgba(10,14,26,0.7); transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(244,246,251,0.98);
  backdrop-filter: blur(16px);
  padding: 1.25rem 20px 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.nav-links.mobile-open .nav-link { padding: 0.5rem 0; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; min-height: 100vh; padding-top: 7rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero { padding-top: 9rem; } }
.glow { position: absolute; border-radius: 9999px; filter: blur(120px); pointer-events: none; }
.glow-blue { top: -10rem; left: -10rem; width: 34rem; height: 34rem; background: rgba(10,132,255,0.15); }
.glow-green { top: 33%; right: -8rem; width: 30rem; height: 30rem; background: rgba(11,174,63,0.12); }
.glow-orange { bottom: 0; left: 33%; width: 26rem; height: 26rem; background: rgba(255,106,0,0.12); }

.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.hero-title {
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.4rem; } }
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--ink), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gradient-text-orange {
  background: linear-gradient(90deg, var(--orange), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { margin-top: 1.25rem; font-size: 1.05rem; color: var(--muted); max-width: 36rem; line-height: 1.6; }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-cta .btn { width: 100%; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } .hero-cta .btn { width: auto; } }
.hero-trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(10,14,26,0.55); }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-img-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 60%); }
.hero-stats {
  position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
@media (min-width: 640px) {
  .hero-stats { bottom: 1.25rem; left: 1.25rem; right: 1.25rem; gap: 0.75rem; }
}
.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
  min-width: 0;
}
.stat-value { font-size: 1.125rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-label { font-size: 0.6rem; color: rgba(10,14,26,0.55); line-height: 1.1; margin-top: 0.25rem; }
@media (min-width: 640px) {
  .stat { border-radius: var(--radius); padding: 0.75rem; }
  .stat-value { font-size: 1.75rem; }
  .stat-label { font-size: 0.7rem; }
}
@media (min-width: 640px) { .stat-value { font-size: 1.75rem; } .stat-label { font-size: 0.7rem; } }

.hero-badge {
  position: absolute; top: -1rem; right: -1rem;
  display: none; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(11,174,63,0.4);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .hero-badge { display: flex; } }
.hero-badge-text { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.ping, .ping-core { position: relative; width: 0.6rem; height: 0.6rem; border-radius: 9999px; }
.ping-core { background: var(--green); }
.ping { position: absolute; background: var(--green); opacity: 0.6; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 75%,100% { transform: scale(2.2); opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section-alt { background: var(--bg); }
.section-border { border-top: 1px solid rgba(10,14,26,0.05); }
.section-head { max-width: 42rem; }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.eyebrow-blue { color: var(--blue); }
.eyebrow-green { color: var(--green); }
.section-title { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-sub { margin-top: 1rem; color: var(--muted); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }

/* ===== Cards (Triple Alianza) ===== */
.cards-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover { border-color: rgba(10,14,26,0.2); transform: translateY(-4px); }
.card-topline { position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px; }
.card-blob { position: absolute; top: -4rem; right: -4rem; width: 10rem; height: 10rem; border-radius: 9999px; filter: blur(60px); opacity: 0.2; }
.card-logo-panel {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-logo { height: 4rem; width: auto; object-fit: contain; }
.card-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
}
.card-head { margin-top: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.card-icon {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; border: 1px solid; font-size: 1.1rem;
}
.card-title { font-size: 1.125rem; font-weight: 800; line-height: 1.2; }
.card-sub { font-size: 0.75rem; font-weight: 500; }
.card-text { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-2); line-height: 1.6; }
.card-bullets { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-bullets li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(10,14,26,0.75); }

/* ===== Steps ===== */
.steps-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; position: relative; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-line { display: none; }
@media (min-width: 768px) {
  .step-line { display: block; position: absolute; top: 3rem; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, rgba(10,132,255,0.4), rgba(11,174,63,0.4), rgba(255,106,0,0.4)); }
}
.step-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid; font-size: 1.4rem;
}
.step-num { font-size: 2.25rem; font-weight: 800; opacity: 0.25; }
.step-title { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 800; }
.step-text { margin-top: 0.625rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ===== CTA / Form ===== */
.cta-section { position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40rem; height: 40rem; border-radius: 9999px; background: rgba(10,132,255,0.1); filter: blur(140px); pointer-events: none; }
.cta-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-title { margin-top: 1.25rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 640px) { .cta-title { font-size: 3rem; } }
.cta-sub { margin-top: 1rem; color: var(--muted); max-width: 28rem; }
.cta-benefits { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cta-benefits li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(10,14,26,0.8); }

.form-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-topline { position: absolute; top: 0; left: 2rem; right: 2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.75rem; font-weight: 500; color: rgba(10,14,26,0.7); margin-bottom: 0.375rem; }
.field input, .field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(10,14,26,0.15);
  background: rgba(255,255,255,0.7);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
  font-family: var(--font);
}
.field input::placeholder { color: rgba(10,14,26,0.4); }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,132,255,0.3); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { text-align: center; font-size: 0.7rem; color: rgba(10,14,26,0.4); }

.form-success { padding: 4rem 0; text-align: center; }
.success-icon {
  width: 4rem; height: 4rem; margin: 0 auto;
  border-radius: 9999px;
  background: rgba(11,174,63,0.15);
  border: 1px solid rgba(11,174,63,0.4);
  color: var(--green);
  font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 800; }
.form-success p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.link-btn { margin-top: 1.5rem; background: none; border: none; color: var(--blue); font-size: 0.875rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-row { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.footer-brand-row .brand-name { font-size: 1.1rem; }
.footer-mission { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); max-width: 28rem; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li { font-size: 0.875rem; color: var(--muted); }
.footer-bottom { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom span { font-size: 0.8rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.8rem; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

/* ===== MisPartidos multideporte ===== */
.eyebrow-orange { color: var(--orange); }
.text-orange { color: var(--orange); }
.sports-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  margin-top: 2.5rem;
}
.sport-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.4rem; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.75);
}
.sport-emoji { font-size: 1.8rem; line-height: 1; }
.sport-card h3 { margin: 0.3rem 0 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.sport-meta { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.sport-card p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted-2); }
.mp-features { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.mp-feature { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--orange); background: rgba(255,106,0,0.05); border-radius: 0 var(--radius) var(--radius) 0; }
.mp-feature strong { font-size: 0.95rem; }
.mp-feature span { font-size: 0.85rem; line-height: 1.5; color: var(--muted-2); }
.mp-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ===== Formulario: consentimiento y error ===== */
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.78rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 0.15rem; width: 1rem; height: 1rem; accent-color: var(--blue); flex-shrink: 0; }
.consent a { color: var(--blue); text-decoration: underline; }
.form-error { margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3); color: #b91c1c; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn:focus-visible, .consent input:focus-visible, .field input:focus-visible, .field select:focus-visible { outline: 3px solid rgba(10,132,255,0.45); outline-offset: 2px; }

/* ===== Páginas legales ===== */
.legal { max-width: 48rem; margin: 0 auto; padding: 7rem 1.25rem 4rem; }
.legal h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.legal .legal-date { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.1rem; font-weight: 800; margin: 2rem 0 0.5rem; }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; color: rgba(10,14,26,0.8); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { width: 32%; color: var(--muted); font-weight: 600; }
.legal-table-wrap { overflow-x: auto; }
.legal a { color: var(--blue); }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,0.35);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ===== Modal convenio ===== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,14,26,0.6); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: 100%; max-width: 46rem; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 1.5rem; box-shadow: 0 30px 80px rgba(10,14,26,0.3); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.modal-head p { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--muted); }
.modal-close { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 0; background: #eef1f7; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-body { padding: 1.5rem; }
.modal-body fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-body legend { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 0.6rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; }
.done-banner { text-align: center; padding: 1.25rem; border-radius: 1rem; background: rgba(11,174,63,0.08); border: 1px solid rgba(11,174,63,0.3); margin-bottom: 1.25rem; }
.done-banner h4 { margin: 0.5rem 0 0.25rem; font-size: 1.1rem; }
.done-banner p { margin: 0; font-size: 0.85rem; color: var(--muted-2); }

/* ===== Documento del convenio ===== */
.contract { border: 1px solid #cbd5e1; border-radius: 1rem; overflow-x: auto; }
.c-doc { position: relative; background: #fff; color: #1e293b; padding: 2rem; font-family: Georgia, 'Times New Roman', serif; font-size: 11px; line-height: 1.6; min-width: 0; }
.c-doc p { margin: 0.35rem 0; }
.c-doc ul { margin: 0.3rem 0; padding-left: 1.25rem; }
.c-doc li { margin: 0.2rem 0; }
.c-doc .c-h { font-weight: 700; color: #0f172a; margin-top: 0.9rem; }
.c-ribbon { position: absolute; top: 0; right: 0; background: var(--blue); color: #fff; font: 700 9px/1 var(--font); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.4rem 0.9rem; border-bottom-left-radius: 0.75rem; }
.c-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.9rem; border-bottom: 1px solid #e2e8f0; font-family: var(--font); font-size: 12px; }
.c-ref { color: #64748b; font-size: 10px; }
.c-title { text-align: center; font-family: var(--font); margin: 1rem 0; }
.c-title h2, .c-title h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.c-title h4 { margin: 0.25rem 0 0; font-size: 11px; font-weight: 700; color: #334155; }
.c-title p { margin: 0.25rem 0 0; color: #475569; }
.c-fill { background: #fef3c7; padding: 0 0.2rem; font-weight: 700; }
.c-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.5rem; font-family: var(--font); text-align: center; }
.c-signs > div { border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.75rem; background: #f8fafc; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.c-signs strong { font-size: 10px; }
.c-signs small { font-size: 9px; color: #475569; overflow-wrap: anywhere; }
.c-sign-box { height: 2.75rem; display: flex; align-items: center; justify-content: center; font-size: 10px; font-style: italic; color: #94a3b8; }
.c-annex { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid #cbd5e1; }
.c-table { overflow-x: auto; margin: 0.5rem 0; font-family: var(--font); font-size: 10px; }
.c-table table { width: 100%; border-collapse: collapse; }
.c-table th, .c-table td { border: 1px solid #cbd5e1; padding: 0.35rem 0.45rem; text-align: left; vertical-align: top; }
.c-table th { background: #f1f5f9; }
.c-foot { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; text-align: center; font: 10px var(--font); color: #94a3b8; }
@media (max-width: 560px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-panel { max-height: 100vh; border-radius: 0; }
  .c-doc { padding: 1.25rem; }
  .c-signs { grid-template-columns: 1fr; }
}
@media print {
  body > *:not(#convenioModal) { display: none !important; }
  .modal, .modal-panel { position: static; max-height: none; overflow: visible; box-shadow: none; }
  .modal-backdrop, .modal-head, .done-banner, .modal-actions { display: none !important; }
  .contract { border: 0; }
}
