/* =========================================================
   PLATAFORMA WEB — CENSO Y REGISTRO DE MASCOTAS
   H. Ayuntamiento de El Grullo, Jalisco
   Gobierno Municipal 2024-2027 · La Ciudad de la Gente
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  /* Paleta oficial El Grullo */
  --orange:        #F27A00;
  --orange-dark:   #C96200;
  --orange-light:  #FF9A2E;
  --orange-pale:   #FFF3E6;
  --orange-rgb:    242, 122, 0; /* mismo naranja que --orange, en "R, G, B" para usar con rgba() en vez de tener el color repetido y fijo por todo el sitio */

  /* Degradado oscuro de paneles de marca (hero, login) — tono oscuro
     del naranja oficial. Tema visual los recalcula si el admin elige
     otro color principal. */
  --brand-dark-1:  #1A0F00;
  --brand-dark-2:  #3D1F00;
  --brand-dark-3:  #5C3000;
  --brand-dark-4:  #7A3D00;

  /* Neutrales */
  --dark:          #1A1A1A;
  --dark-2:        #2D2D2D;
  --gray-1:        #4A4A4A;
  --gray-2:        #7A7A7A;
  --gray-3:        #B0B0B0;
  --gray-4:        #E0E0E0;
  --surface:       #F8F8F8;
  --white:         #FFFFFF;

  /* Estatus */
  --green:         #2E7D32;
  --green-light:   #E8F5E9;
  --red:           #C62828;
  --red-light:     #FFEBEE;
  --blue:          #1565C0;
  --blue-light:    #E3F2FD;
  --amber:         #F57F17;
  --amber-light:   #FFF8E1;

  /* Sombras */
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:     0 16px 48px rgba(0,0,0,.18);

  /* Radio */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  /* Transición */
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* nada debe poder forzar scroll lateral en el sitio */
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Accesibilidad: saltar al contenido ──
   Oculto hasta que alguien navegando con teclado (Tab) lo enfoca — así
   no aparece visualmente para el resto de las personas, pero permite
   saltar el menú lateral repetitivo sin tener que tabular por cada
   enlace en cada página. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  z-index: 10000;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-green   { background: var(--green-light);  color: var(--green); }
.badge-red     { background: var(--red-light);    color: var(--red); }
.badge-amber   { background: var(--amber-light);  color: var(--amber); }
.badge-orange  { background: var(--orange-pale);  color: var(--orange-dark); }
.badge-blue    { background: var(--blue-light);   color: var(--blue); }
.badge-gray    { background: var(--gray-4);       color: var(--gray-1); }

/* ── Íconos de línea (reemplazan emojis en navegación, botones y
   campos principales — heredan el color del texto vía currentColor) ── */
.icon-line {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
}
.icon-line.icon-fill { fill: currentColor; stroke: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--orange-rgb),.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--orange-rgb),.45);
}
.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange-pale);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--orange-dark);
}
.btn-white:hover {
  background: var(--orange-pale);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-1);
  border-color: var(--gray-4);
}
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #B71C1C; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-4);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo .logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
}
.navbar-logo .logo-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.navbar-logo .logo-text { line-height: 1.1; }
.navbar-logo .logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
}
.navbar-logo .logo-subtitle {
  font-size: .72rem;
  color: var(--gray-2);
  font-weight: 500;
}
.navbar-brand-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.aside-brand-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-brand-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-1);
  transition: var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--orange-pale);
  color: var(--orange-dark);
}
.navbar-nav a.navbar-nav-mobile-login { display: none; border-top: 1px solid var(--gray-4); margin-top: 6px; padding-top: 12px; }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--brand-dark-1) 0%, var(--brand-dark-2) 40%, var(--brand-dark-3) 70%, var(--brand-dark-4) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(var(--orange-rgb),.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(var(--orange-rgb),.15) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--orange-rgb),.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--orange-rgb),.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--orange-rgb),.2);
  border: 1px solid rgba(var(--orange-rgb),.4);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange-light);
}
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 4px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mascot-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 360px;
  width: 100%;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-mascot-icon {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(var(--orange-rgb),.5));
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-mascot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-mascot-title {
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
}
.hero-mascot-steps { display: flex; flex-direction: column; gap: 12px; }
.hero-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.hero-step-num {
  width: 28px; height: 28px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: .8rem; font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.hero-step-text { color: rgba(255,255,255,.82); font-size: .85rem; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-dark {
  background: linear-gradient(135deg, #1A0F00, #3D1F00);
  color: var(--white);
}

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.section-dark .section-title { color: var(--white); }
.section-desc {
  font-size: 1rem;
  color: var(--gray-2);
  max-width: 560px;
}
.section-dark .section-desc { color: rgba(255,255,255,.65); }
.section-header.center .section-desc { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.card-body { padding: 24px; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-4);
  position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition);
}
.step-card:hover::after { opacity: 1; }
.step-num {
  width: 56px; height: 56px;
  background: var(--orange-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.step-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.step-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.step-desc { font-size: .9rem; color: var(--gray-2); }

/* ── Campaigns ── */
.campaigns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.campaign-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.campaign-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.campaign-banner {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.campaign-icon { font-size: 3rem; }
.campaign-banner-text { color: var(--white); }
.campaign-banner-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 4px;
}
.campaign-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.campaign-body {
  background: var(--white);
  padding: 20px 24px;
}
.campaign-desc { font-size: .88rem; color: var(--gray-1); margin-bottom: 16px; line-height: 1.5; }
.campaign-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.campaign-date { font-size: .78rem; color: var(--gray-2); }

/* ── Eventos próximos ── */
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.event-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.event-date-badge {
  background: var(--orange-pale);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
}
.event-date-month { font-size: .68rem; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; }
.event-date-day { font-size: 1.5rem; font-weight: 800; color: var(--orange-dark); font-family: 'Outfit', sans-serif; line-height: 1.1; }
.event-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.event-meta { font-size: .8rem; color: var(--gray-2); }
.event-desc { font-size: .82rem; color: var(--gray-1); margin-top: 8px; line-height: 1.5; }

/* ── Articles ── */
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.article-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.article-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-excerpt {
  font-size: .83rem;
  color: var(--gray-2);
  line-height: 1.5;
}
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 12px;
  transition: var(--transition);
}
.article-link:hover { gap: 8px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-item.open .faq-question { color: var(--orange); }
.faq-arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: .7rem;
}
.faq-item.open .faq-arrow { background: var(--orange); color: var(--white); transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--gray-1);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '🐾';
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: .12;
}
.cta-banner-text { position: relative; z-index: 1; }
.cta-banner-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.cta-banner-desc { color: rgba(255,255,255,.8); font-size: .95rem; }
.cta-banner-actions { display: flex; gap: 12px; flex-shrink: 0; z-index: 1; }

/* ── Footer ── */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.footer-logo-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.footer-logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
}
.footer-logo-subtitle { font-size: .7rem; color: var(--gray-3); }
.footer-desc { font-size: .85rem; line-height: 1.6; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
  overflow: hidden;
}
.footer-social:hover { background: var(--orange); }
.footer-social img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange-light); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── Auth Page ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: linear-gradient(135deg, var(--brand-dark-1), var(--brand-dark-3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  align-self: start;
  overflow: hidden;
  box-sizing: border-box;
}
.auth-aside::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--orange-rgb),.3), transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.auth-aside-content {
  position: relative;
  z-index: 1;
  margin: auto 0;
  width: 100%;
}
.auth-aside-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-aside-logo-icon {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.auth-aside-logo-text .title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
}
.auth-aside-logo-text .subtitle { font-size: .78rem; color: rgba(255,255,255,.6); }
.auth-aside h2 {
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.18;
}
.auth-aside p { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.5; }
.auth-aside-features { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.auth-feature-icon {
  width: 32px; height: 32px;
  background: rgba(var(--orange-rgb),.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.auth-feature-text { font-size: .82rem; color: rgba(255,255,255,.85); }

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: var(--white);
}
.auth-form-wrap { max-width: 420px; margin: 0 auto; width: 100%; }
.auth-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: calc(var(--radius) - 4px);
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-2);
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: var(--shadow-sm);
}
.auth-form { display: none; }
.auth-form.active { display: flex; flex-direction: column; gap: 16px; }
.auth-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
  color: var(--dark);
}
.auth-subtitle { font-size: .88rem; color: var(--gray-2); margin-bottom: 8px; }

/* ── Form Controls ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-1);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-4);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb),.12);
}
.form-control::placeholder { color: var(--gray-3); }
.input-group { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-3);
  font-size: .95rem;
  pointer-events: none;
}
.input-group .form-control { padding-left: 40px; }
.form-control.has-toggle { padding-right: 40px; }
.pw-wrap { position: relative; }
.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-3);
  cursor: pointer;
  font-size: .9rem;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}
.input-toggle:hover { color: var(--orange); }
.input-toggle svg { width: 18px; height: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--gray-2); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--gray-3);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-4);
}

/* ── Dashboard Layout ── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .85rem;
  line-height: 1.1;
}
.sidebar-logo-sub { font-size: .68rem; color: var(--gray-3); }
.sidebar-section {
  padding: 8px 12px 4px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-3);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  margin: 2px 8px;
  cursor: pointer;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: var(--white); }
.sidebar-link.active {
  background: rgba(var(--orange-rgb),.2);
  color: var(--orange-light);
}
.sidebar-link .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,.07); }
.sidebar-avatar {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: var(--white); }
.sidebar-user-role { font-size: .72rem; color: var(--gray-3); }

.dashboard-main {
  background: var(--surface);
  overflow-x: hidden;
}
.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-4);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dashboard-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}
.dashboard-subtitle { font-size: .82rem; color: var(--gray-2); margin-top: 2px; }
.dashboard-content { padding: 32px; }
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
}
.sidebar-backdrop.open { display: block; }
.dashboard-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-4);
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--dark);
}

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card-label { font-size: .78rem; color: var(--gray-2); }
.stat-card-trend { font-size: .75rem; font-weight: 600; color: var(--green); }

/* ── Pet Cards ── */
.pets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pet-card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pet-card-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.pet-card-body { padding: 20px; }
.pet-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pet-card-info { font-size: .82rem; color: var(--gray-2); margin-bottom: 12px; }
.pet-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pet-card-folio {
  font-size: .75rem;
  color: var(--gray-2);
  font-family: monospace;
  background: var(--surface);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.pet-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-card-actions .btn { min-width: 80px; }

/* ── Table ── */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-4);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.search-box { position: relative; }
.search-box .form-control { padding-left: 36px; padding-right: 12px; width: 260px; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-3);
  font-size: .85rem;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-2);
  border-bottom: 1px solid var(--gray-4);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  font-size: .88rem;
  border-bottom: 1px solid var(--gray-4);
  color: var(--dark);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
.table-pet-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.table-pet-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Combo (buscador desplegable, ej. Colonia en Mi perfil) ── */
.combo { position: relative; }
.combo-list {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto;
  background: var(--white); border: 1.5px solid var(--orange);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 999;
}
.combo-list.open { display: block; }
.combo-option {
  padding: 10px 14px;
  font-size: .86rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--gray-4);
  transition: background .12s;
}
.combo-option:last-child { border-bottom: none; }
.combo-option:hover, .combo-option.active { background: var(--orange-pale); }
.combo-option-cp { color: var(--gray-2); font-size: .74rem; white-space: nowrap; }
.combo-empty { padding: 14px; font-size: .82rem; color: var(--gray-2); text-align: center; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-in .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  margin-bottom: 20px;
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-1);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-4); }
.modal-body { padding: 0 28px 28px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--gray-4);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Photo Upload ── */
.photo-upload {
  border: 2px dashed var(--gray-4);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.photo-upload:hover { border-color: var(--orange); background: var(--orange-pale); }
.photo-upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.photo-upload-text { font-size: .85rem; color: var(--gray-2); }
.photo-upload-text strong { color: var(--orange); }

/* ── Report Charts ── */
.chart-bar-container { display: flex; flex-direction: column; gap: 10px; }
.chart-bar-item { display: grid; grid-template-columns: 80px 1fr 50px; align-items: center; gap: 12px; }
.chart-bar-label { font-size: .82rem; color: var(--gray-1); text-align: right; }
.chart-bar-track { height: 10px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.chart-bar-val { font-size: .82rem; font-weight: 600; color: var(--dark); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .25s cubic-bezier(.4,0,.2,1);
  min-width: 280px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--orange); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Counter animation ── */
.counter { transition: all .1s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .grid-4         { grid-template-columns: repeat(2, 1fr); }
  .articles-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .hero-content      { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual       { display: none; }
  .steps-grid        { grid-template-columns: 1fr; }
  .campaigns-grid    { grid-template-columns: 1fr; }
  .events-grid       { grid-template-columns: 1fr; }
  .articles-grid     { grid-template-columns: 1fr; }
  .pets-grid         { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: 1fr 1fr; }
  .auth-page         { grid-template-columns: 1fr; }
  .auth-aside        { display: none; }
  .dashboard-layout  { grid-template-columns: 1fr; }

  /* Sidebar del dashboard/admin: en vez de desaparecer sin dejar forma de
     navegar, se convierte en un panel que se desliza desde la izquierda. */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .dashboard-mobile-toggle { display: flex !important; }
  /* El header (título + subtítulo + acciones a la derecha) es una sola
     fila sin wrap en escritorio — en celular el subtítulo largo ("Mapa
     de mascotas · Gráficas · Seguimiento en tiempo real", etc.) y un
     botón de ancho fijo (.btn tiene white-space:nowrap) no cabían y
     quedaban cortados contra el borde de la pantalla. Se oculta el
     subtítulo (mismo criterio que ya usa el navbar) y se permite que las
     acciones bajen a su propia línea si hace falta. */
  .dashboard-header {
    padding: 14px 20px;
    gap: 10px 12px;
    flex-wrap: wrap;
    /* space-between (el valor de escritorio) con solo 2 de los 3
       elementos cabiendo en la primera línea mandaba el título pegado
       al borde derecho, lejos del botón ☰ — se veía "chueco". Con
       flex-start + el título creciendo (ver regla de abajo) quedan
       juntos a la izquierda, como una sola unidad. */
    justify-content: flex-start;
  }
  /* Bloque de título (título + subtítulo, el <div> sin clase entre el
     botón ☰ y las acciones): ocupa el espacio libre junto al botón en
     vez de encogerse a su contenido y saltar al extremo derecho. */
  .dashboard-header > div:first-of-type { flex: 1; min-width: 0; }
  /* Grupo de acciones (badge + botón, ej. "Admin" + "Exportar CSV"):
     baja a su propia fila completa y se alinea a la derecha, en vez de
     quedar flotando pegado al botón ☰ en el lado izquierdo. */
  .dashboard-header > .flex.gap-8.items-center { flex-basis: 100%; justify-content: flex-end; }
  .dashboard-title { font-size: 1.05rem; }
  .dashboard-subtitle { display: none; }
  .dashboard-content { padding: 20px 16px; }

  /* Pares de campos lado a lado (Nombre/Especie, Raza/Edad, etc.) — con
     dos columnas fijas quedaban demasiado angostos en un celular,
     sobre todo dentro de un modal (que además resta su propio padding). */
  .form-row { grid-template-columns: 1fr; }
  .modal-overlay { padding: 12px; }

  .cta-banner        { flex-direction: column; text-align: center; }
  .cta-banner-actions { flex-wrap: wrap; justify-content: center; }
  .footer-grid       { grid-template-columns: 1fr; }
  .navbar-nav        { display: none; }
  .navbar-hamburger  { display: flex; }
  .hero-stats        { grid-template-columns: 1fr 1fr; }
  .section           { padding: 48px 0; }

  /* ── Navbar móvil: la versión de escritorio (logo + subtítulo + nav +
     2 botones + hamburguesa, todo en una sola fila) no cabe en una
     pantalla angosta y forzaba scroll lateral en todo el sitio. ── */
  .navbar-logo .logo-text     { display: none; } /* en móvil solo el ícono, sin título/subtítulo */
  .navbar-actions .btn-ghost  { display: none; } /* "Iniciar sesión" pasa al menú ☰ */
  .navbar-actions .btn-primary.btn-sm { padding: 8px 14px; font-size: .82rem; white-space: nowrap; }
  .navbar-btn-full { display: none; } /* botón dice solo "Registrar" en vez de "Registrar mascota" */
  .navbar-nav a.navbar-nav-mobile-login { display: block; }
  .navbar-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-4);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 16px;
  }
  .navbar-nav a { padding: 12px 14px; }

  /* "El Grullo cuida a sus mascotas": las 2 gráficas de barra tenían un
     ancho mínimo (columnas de 80px+50px fijas) que no cabía a la mitad
     en pantallas angostas y forzaba scroll lateral en todo el sitio. */
  .census-charts-grid { grid-template-columns: 1fr !important; }

  /* El hero forzaba 88vh de alto (pensado para las 2 columnas de
     escritorio) y centraba el contenido corto de una sola columna
     dentro de eso, dejando un hueco vacío enorme arriba en celulares. */
  .hero { min-height: auto; padding: 32px 0 56px; }
}

/* ════════════════════════════════════════════
   Componentes de formulario
   ════════════════════════════════════════════ */

/* ── Toggle group (Especie, Sexo, Estatus) ── */
.toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-btn {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--gray-4); border-radius: var(--radius);
  background: white; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); color: var(--gray-1);
  min-width: 90px; font-family: 'Inter', sans-serif;
}
.toggle-btn:hover  { border-color: var(--orange); color: var(--orange); }
.toggle-btn.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ── Searchable select ── */
.searchable-select { position: relative; }
.ss-trigger {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid var(--gray-4); border-radius: var(--radius);
  padding: 10px 14px; cursor: pointer; background: white;
  font-size: .92rem; color: var(--dark); transition: var(--transition);
  min-height: 44px; user-select: none;
}
.ss-trigger:hover { border-color: var(--orange); }
.ss-trigger.open  { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--orange-rgb),.12); }
.ss-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: white; border: 1.5px solid var(--orange);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 999; overflow: hidden; display: none;
}
.ss-dropdown.open { display: block; }
.ss-search {
  width: 100%; padding: 10px 14px; border: none;
  border-bottom: 1px solid var(--gray-4); outline: none;
  font-size: .88rem; background: var(--surface); font-family: inherit;
}
.ss-list { max-height: 200px; overflow-y: auto; }
.ss-option {
  padding: 10px 14px; cursor: pointer; font-size: .88rem;
  transition: background .15s; display: flex; align-items: center; gap: 8px;
}
.ss-option:hover    { background: var(--orange-pale); }
.ss-option.selected { background: var(--orange-pale); color: var(--orange-dark); font-weight: 600; }
.ss-option::before  { content: '○'; font-size: .7rem; color: var(--gray-3); flex-shrink: 0; }
.ss-option.selected::before { content: '●'; color: var(--orange); }

/* ── Foto upload box ── */
.foto-upload-box {
  border: 2px dashed var(--gray-4); border-radius: var(--radius);
  min-height: 120px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition);
  overflow: hidden; position: relative;
}
.foto-upload-box:hover { border-color: var(--orange); background: var(--orange-pale); }
.foto-upload-placeholder { text-align: center; padding: 16px; pointer-events: none; }

/* ── Section label ── */
.section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-2);
  margin: 20px 0 12px; border-bottom: 1px solid var(--gray-4); padding-bottom: 6px;
}

/* ── ID badge ── */
.id-badge {
  background: var(--orange-pale); border: 1.5px solid rgba(var(--orange-rgb),.35);
  border-radius: var(--radius); padding: 10px 16px;
  font-family: monospace; font-weight: 700; font-size: 1rem;
  color: var(--orange-dark); letter-spacing: .05em;
}

.estatus-alta { background: var(--green-light) !important; color: var(--green) !important; }
.estatus-baja { background: #f5f5f5 !important; color: var(--gray-2) !important; }

