
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:        #4F46E5;
  --primary-dark:   #3730A3;
  --primary-light:  #818CF8;
  --primary-bg:     #EEF2FF;
  --accent:         #F59E0B;
  --accent-dark:    #D97706;
  --accent-bg:      #FFFBEB;
  --success:        #059669;
  --danger:         #DC2626;
  --warning:        #D97706;
  --info:           #0284C7;

  --dark:           #0F172A;
  --gray-800:       #1E293B;
  --gray-700:       #334155;
  --gray-600:       #475569;
  --gray-500:       #64748B;
  --gray-400:       #94A3B8;
  --gray-300:       #CBD5E1;
  --gray-200:       #E2E8F0;
  --gray-100:       #F1F5F9;
  --gray-50:        #F8FAFC;
  --white:          #FFFFFF;

  --font-display:   'Onest', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md:      0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.14);

  --transition:     .18s cubic-bezier(.4,0,.2,1);
  --transition-slow:.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar-rl {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.navbar-rl .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1rem;
}

/* Brand */
.navbar-brand-rl {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-rl .brand-logo {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -.5px;
  flex-shrink: 0;
}

.navbar-brand-rl .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -.3px;
}

.navbar-brand-rl .brand-text span {
  color: var(--accent);
}

/* Zonas pill — visible desktop */
.navbar-zones {
  display: none;
  align-items: center;
  gap: .3rem;
}

.zone-pill {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.1);
  letter-spacing: .3px;
  transition: all var(--transition);
  white-space: nowrap;
}

.zone-pill:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}

/* Nav links desktop */
.navbar-links {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-link-rl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: rgba(255,255,255,.75) !important;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link-rl:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,.08);
}

/* Nav actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-nav-ghost {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .83rem;
  color: rgba(255,255,255,.8);
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.btn-nav-ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}

.btn-nav-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .83rem;
  color: var(--dark);
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.btn-nav-primary:hover {
  background: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-1px);
}

/* Hamburger */
.btn-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition);
  flex-shrink: 0;
}

.btn-hamburger:hover { background: rgba(255,255,255,.14); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  background: var(--gray-800);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .75rem 1rem 1rem;
}

.mobile-menu.open { display: block; }

.mobile-zones {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mobile-menu .nav-link-rl {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.8) !important;
  border-radius: var(--radius-sm);
}

.mobile-menu .nav-link-rl:hover {
  background: rgba(255,255,255,.07);
  color: var(--white) !important;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: .5rem 0;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  margin-bottom: .25rem;
}

.mobile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.mobile-user-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--white);
}

.mobile-user-role {
  font-size: .75rem;
  color: var(--gray-400);
}

/* Dropdown desktop */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  border: 1px solid var(--gray-200);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}

.nav-dropdown-item.danger { color: var(--danger); }
.nav-dropdown-item.danger:hover { background: #FEF2F2; }

.nav-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: .35rem 0;
}

/* Desktop: mostrar zonas y links */
@media (min-width: 768px) {
  .navbar-zones { display: flex; }
  .btn-hamburger { display: none; }
}

@media (min-width: 992px) {
  .navbar-rl .container { height: 64px; }
  .navbar-links { display: flex; }
  .navbar-zones { gap: .4rem; }
  .zone-pill { font-size: .75rem; }
}

/* ── Flash messages ────────────────────────────────────── */
.flash-bar {
  padding: .7rem 1rem;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.flash-bar.success { background: #DCFCE7; color: #166534; border-bottom: 2px solid #86EFAC; }
.flash-bar.error   { background: #FEE2E2; color: #991B1B; border-bottom: 2px solid #FCA5A5; }
.flash-bar.info    { background: #DBEAFE; color: #1E40AF; border-bottom: 2px solid #93C5FD; }
.flash-bar.warning { background: #FEF9C3; color: #854D0E; border-bottom: 2px solid #FDE047; }

/* ── Botones ───────────────────────────────────────────── */
.btn-rl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-rl:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Cards ─────────────────────────────────────────────── */
.card-rl {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card-rl:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Formularios ───────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--gray-700);
  margin-bottom: .35rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
  color: var(--gray-500);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .95rem;
  pointer-events: none;
  z-index: 1;
}

.input-wrapper .form-control {
  padding-left: 2.6rem;
}

.input-wrapper .input-action {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: .2rem;
  font-size: .95rem;
  transition: color var(--transition);
}
.input-wrapper .input-action:hover { color: var(--gray-600); }

.invalid-msg {
  font-size: .8rem;
  color: var(--danger);
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ── Auth pages ────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,.2) 0%, transparent 70%),
    linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 480px) {
  .auth-card { padding: 2.5rem 2.25rem; }
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
  text-decoration: none;
}

.auth-logo-mark .mark {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
}

.auth-logo-mark .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
}

.auth-logo-mark .wordmark em {
  font-style: normal;
  color: var(--accent-dark);
}

.auth-header h2 {
  font-size: 1.4rem;
  margin-bottom: .3rem;
}

.auth-header p {
  color: var(--gray-500);
  font-size: .9rem;
}

.auth-submit {
  width: 100%;
  padding: .8rem;
  font-size: .95rem;
  margin-top: .5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--gray-500);
}

.auth-footer a {
  font-weight: 600;
  color: var(--primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gray-400);
  font-size: .8rem;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Alertas ───────────────────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}

.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FEF9C3; color: #854D0E; border: 1px solid #FDE68A; }

/* ── Mi cuenta sidebar ─────────────────────────────────── */
.cuenta-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.sidebar-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  border: 3px solid rgba(255,255,255,.25);
}

.sidebar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: .15rem;
}

.sidebar-role {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-nav { padding: .5rem; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: .1rem;
}

.sidebar-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: .1rem .45rem;
}

.sidebar-link.danger { color: var(--danger); }
.sidebar-link.danger:hover { background: #FEF2F2; }

.sidebar-divider {
  height: 1px;
  background: var(--gray-200);
  margin: .35rem .5rem;
}

/* ── Badges de estado ──────────────────────────────────── */
.badge-rl {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.badge-pendiente { background: #FEF9C3; color: #854D0E; }
.badge-aprobado  { background: #DCFCE7; color: #166534; }
.badge-rechazado { background: #FEE2E2; color: #991B1B; }
.badge-primary   { background: var(--primary-bg); color: var(--primary-dark); }
.badge-accent    { background: var(--accent-bg); color: var(--accent-dark); }

/* ── Estrellas ─────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
  font-size: .85rem;
}

/* ── Hero (index) ──────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 100% 80% at 60% 120%, rgba(245,158,11,.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(79,70,229,.25) 0%, transparent 60%),
    linear-gradient(160deg, #0F172A 0%, #1E293B 55%, #1e1b4b 100%);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-full);
  padding: .3rem .85rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,.65);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Zonas en el hero */
.hero-zones {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.hero-zone-chip {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  padding: .45rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition);
}

.hero-zone-chip:hover {
  background: rgba(79,70,229,.3);
  border-color: rgba(79,70,229,.5);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-zone-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-zone-chip .dot.rosario { background: #818CF8; }
.hero-zone-chip .dot.funes   { background: #34D399; }
.hero-zone-chip .dot.roldan  { background: #FB923C; }

/* Buscador hero */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: .5rem;
  display: flex;
  gap: .5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  max-width: 540px;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: .6rem .85rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--gray-800);
  background: transparent;
  min-width: 0;
}

.hero-search input::placeholder { color: var(--gray-400); }

.hero-search button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: .65rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.hero-search button:hover { background: var(--primary-dark); }

/* Stats hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.hero-stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: .15rem;
  display: block;
}

/* ── Sección Rubros ────────────────────────────────────── */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (min-width: 480px) {
  .rubros-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .rubros-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

@media (min-width: 1024px) {
  .rubros-grid { grid-template-columns: repeat(6, 1fr); }
}

.rubro-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.rubro-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rubro-chip .rubro-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-500);
  transition: all var(--transition);
}

.rubro-chip:hover .rubro-icon {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ── Sección Zonas cards ───────────────────────────────── */
.zones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
}

.zone-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.zone-card.rosario {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 100%);
  color: var(--white);
}
.zone-card.funes {
  background: linear-gradient(135deg, #065F46 0%, #059669 100%);
  color: var(--white);
}
.zone-card.roldan {
  background: linear-gradient(135deg, #92400E 0%, #F59E0B 100%);
  color: var(--dark);
}

.zone-card .zone-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.zone-card .zone-count {
  font-size: .82rem;
  opacity: .75;
  font-weight: 500;
}

.zone-card .zone-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

/* ── Section headings ──────────────────────────────────── */
.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--dark);
  margin-bottom: .3rem;
}

.section-heading p {
  color: var(--gray-500);
  font-size: .9rem;
}

.section-heading .see-all {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ── Footer ────────────────────────────────────────────── */
.footer-rl {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  text-decoration: none;
}

.footer-brand-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.footer-brand-name em {
  font-style: normal;
  color: var(--accent);
}

.footer-desc {
  font-size: .85rem;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.45);
}

.footer-zones {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.footer-zone-tag {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .75rem;
}

.footer-links-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .4rem;
  transition: color var(--transition);
}

.footer-links-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}

/* ── Utilidades ────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent-dark) !important; }
.text-muted    { color: var(--gray-500) !important; }
.text-dark     { color: var(--dark) !important; }
.text-white    { color: var(--white) !important; }
.fw-700        { font-weight: 700 !important; }
.fw-800        { font-weight: 800 !important; }
.font-display  { font-family: var(--font-display) !important; }

.section-pad   { padding: 3rem 0; }
.section-pad-lg { padding: 4rem 0; }

/* ── Responsive utilities ──────────────────────────────── */
@media (min-width: 768px) {
  .auth-wrapper { min-height: calc(100vh - 64px); }
}