:root {
  --navy: #080080;
  --navy-dark: #050053;
  --orange: #fe5001;
  --orange-light: #fe7b40;
  --ink: #1a1a2e;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(8, 0, 128, 0.08);
  --shadow-lg: 0 20px 60px rgba(8, 0, 128, 0.15);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* El pie queda siempre al fondo, aunque la página tenga poco contenido. */
body:not(.admin-body) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:not(.admin-body) main { flex: 1 0 auto; }
body:not(.admin-body) .site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(254, 80, 1, 0.3); }
.btn-primary-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-primary-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-block { width: 100%; background: var(--white); color: var(--navy); border-color: var(--border); justify-content: flex-start; text-align: left; padding: 14px 18px; }
/* Las direcciones largas deben partirse en líneas en vez de ensanchar la página en el celular. */
#openMapBtn { white-space: normal; align-items: flex-start; line-height: 1.4; border-radius: 16px; min-width: 0; }
#openMapBtn i { margin-top: 3px; flex-shrink: 0; }
#mapBtnLabel { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.form-card, .form-step, .form-row { min-width: 0; max-width: 100%; }
.btn-outline-block:hover { border-color: var(--navy); }
.btn-cta { background: var(--white); color: var(--navy); font-size: 17px; padding: 16px 36px; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: all 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 16px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: 40px; object-fit: contain; }
/* Logotipo horizontal "HIRAM RESPONDE" del encabezado de la sección */
.brand-logo-full { height: 44px; width: auto; object-fit: contain; display: block; }
.brand-text { font-size: 19px; font-weight: 700; color: var(--navy); }
.brand-text strong { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--gray); transition: color 0.2s ease; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-bottom-color: var(--orange); }

/* Hero */
.hero {
  position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); padding: 90px 0 130px; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(254,80,1,0.25), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(254,123,64,0.2), transparent 45%);
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,0.15); padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
.hero h1 span { color: var(--orange-light); }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0 auto 32px; max-width: 600px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }
.hero-wave path { fill: var(--white); }

/* Sections */
.section { padding: 64px 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-heading.center { margin-left: auto; margin-right: auto; }
.section-heading .eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.section-heading h2 { font-size: clamp(24px, 4vw, 34px); color: var(--navy); margin: 8px 0 0; font-weight: 800; }
.section-heading p { color: var(--gray); margin-top: 12px; }

/* Categories */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px;
}
.category-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; font-family: var(--font); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.category-card::after {
  content: ''; position: absolute; inset: auto auto 0 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.category-card:hover { border-color: var(--orange); transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card:hover::after { transform: scaleX(1); }
.category-card i { font-size: 28px; color: var(--navy); transition: color .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.category-card:hover i { color: var(--orange); transform: translateY(-3px) scale(1.12); }
.category-card span { font-size: 14px; font-weight: 600; text-align: center; color: var(--ink); }

.category-card.is-selected { border-color: var(--orange); box-shadow: 0 8px 26px rgba(254,80,1,.18); }
.category-card.is-selected::after { transform: scaleX(1); }
.category-card.is-selected i { color: var(--orange); }
.category-card .category-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.category-card .category-check i { font-size: 11px; color: #fff; transform: none; }
.category-card:hover .category-check i { transform: none; }
.category-card.is-selected .category-check { opacity: 1; transform: scale(1); }

/* Form card */
.form-section { background: var(--gray-light); }
.form-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 40px; max-width: 760px; margin: 0 auto; }
.form-progress { display: flex; align-items: center; margin-bottom: 32px; }
.progress-step { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gray); font-size: 14px; }
.progress-step span { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-light); color: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s ease; }
.progress-step.active { color: var(--navy); }
.progress-step.active span { background: var(--orange); color: var(--white); }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 16px; }

.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row-wide { grid-column: 1 / -1; }
.form-row label { font-weight: 600; font-size: 14px; color: var(--ink); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row input[type="password"], .form-row input[type="number"], .form-row select, .form-row textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px;
  font-family: var(--font); transition: border-color 0.2s ease; width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); }
.form-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.form-actions-split { justify-content: space-between; }

.photos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.photo-upload { position: relative; }
.photo-upload label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.photo-upload input[type="file"] { position: absolute; inset: 0; top: 26px; opacity: 0; cursor: pointer; height: 140px; }
.photo-preview {
  height: 140px; border: 2px dashed var(--border); border-radius: 12px; display: flex;
  align-items: center; justify-content: center; color: var(--gray); font-size: 26px; overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--success); font-size: 13px; font-weight: 600; text-align: center; padding: 10px;
}
.photo-fallback i { font-size: 26px; }

.verify-phone-box { background: var(--gray-light); border-radius: 12px; padding: 20px; margin: 24px 0; }
.verify-phone-box p { margin: 0 0 14px; font-weight: 600; font-size: 14px; color: var(--navy); }
.verified-badge { color: var(--success); font-weight: 700; display: flex; align-items: center; gap: 8px; }
#recaptchaContainer { margin-top: 8px; }

.turnstile-row { margin: 20px 0; display: flex; justify-content: center; }
.confirm-note { font-size: 13px; color: var(--gray); text-align: center; }

.form-success { text-align: center; padding: 20px 0; }
.form-success i { font-size: 56px; color: var(--success); margin-bottom: 16px; }
.form-success h3 { font-size: 26px; color: var(--navy); margin: 0 0 8px; }
.tracking-code { font-size: 32px; font-weight: 800; color: var(--orange); letter-spacing: 0.05em; margin: 16px 0; }
.form-success .btn { margin: 8px 6px 0; }

/* Map modal */
.map-modal { position: fixed; inset: 0; background: rgba(8,0,128,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.map-modal-inner { background: var(--white); border-radius: 16px; width: 100%; max-width: 640px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.map-modal-header h3 { margin: 0; color: var(--navy); }
.map-modal-header button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); }
.map-search-input { width: calc(100% - 40px); margin: 14px 20px 0; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: var(--font); }
.map-canvas { height: 340px; width: 100%; margin-top: 14px; }
.map-modal-footer { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.map-address-label { flex: 1; font-size: 13px; color: var(--gray); min-width: 140px; }

/* Tracking */
.tracking-container { max-width: 560px; }
.tracking-form { display: flex; gap: 10px; margin-bottom: 32px; }
.tracking-form input { flex: 1; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; text-transform: uppercase; }
.tracking-result { background: var(--gray-light); border-radius: var(--radius); padding: 28px; }
.tracking-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.tracking-code-badge { font-weight: 800; color: var(--navy); font-size: 18px; letter-spacing: 0.03em; }
.tracking-code-badge.small { font-size: 13px; }
.status-badge { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-nuevo { background: #dbeafe; color: #1d4ed8; }
.status-en_progreso { background: #fef3c7; color: #b45309; }
.status-resuelto { background: #dcfce7; color: #15803d; }
.status-no_procede { background: #fee2e2; color: #b91c1c; }
.tracking-date { color: var(--gray); font-size: 13px; }
.tracking-description { background: var(--white); padding: 14px; border-radius: 10px; margin-top: 12px; }
.tracking-empty { text-align: center; color: var(--gray); padding: 30px 0; }
.tracking-empty i { font-size: 36px; margin-bottom: 12px; color: var(--orange); display: block; }

.public-updates { margin-top: 20px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.public-updates h3 { margin: 0 0 16px; color: var(--navy); font-size: 16px; }
.updates-timeline { display: flex; flex-direction: column; gap: 14px; }
.update-item { background: var(--gray-light); border-radius: 10px; padding: 14px 16px; }
.update-item-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.update-comment { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }

/* Legal */
.legal-container { max-width: 760px; }
.legal-section h1 { color: var(--navy); font-size: 32px; }
.legal-updated { color: var(--gray); font-size: 13px; margin-bottom: 28px; }
.legal-section h2 { color: var(--navy); font-size: 19px; margin-top: 32px; }
.legal-section p { line-height: 1.7; color: var(--ink); }

/* 404 */
.not-found-inner { text-align: center; padding: 80px 0; }
.not-found-inner i { font-size: 56px; color: var(--orange); margin-bottom: 16px; }
.not-found-inner h1 { font-size: 64px; color: var(--navy); margin: 0; }

/* Flash */
.flash { padding: 14px 20px; border-radius: 10px; margin: 16px auto; max-width: 1100px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.flash-success { background: #dcfce7; color: #15803d; }
.flash-error { background: #fee2e2; color: #b91c1c; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 720px) {
  .main-nav { gap: 16px; font-size: 13px; }
  .main-nav a[target="_blank"] { display: none; }

  /* Pie de página: cada elemento en su propia línea y centrado */
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
  .footer-inner p { line-height: 1.6; }
  .footer-links { flex-direction: column; align-items: center; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .photos-row { grid-template-columns: 1fr; }
  .form-progress { font-size: 12px; }
  .hero { padding: 60px 0 100px; }
}

/* ============================================================
   Desktop compacto: hero + tipos de reporte en una sola pantalla
   ============================================================ */
@media (min-width: 992px) {
  .hero { padding: 54px 0 92px; }
  .hero h1 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 14px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-subtitle { font-size: 16.5px; margin-bottom: 24px; }
  .hero-wave svg { height: 56px; }

  .categories-section { padding: 34px 0 46px; }
  .categories-section .section-heading { margin-bottom: 26px; }
  .categories-section .section-heading h2 { font-size: 28px; }

  .categories-grid { grid-template-columns: repeat(7, 1fr); gap: 12px; }
  .category-card { padding: 16px 8px; gap: 8px; border-radius: 12px; }
  .category-card i { font-size: 23px; }
  .category-card span { font-size: 12.5px; line-height: 1.3; }
}

@media (min-width: 992px) and (max-width: 1180px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Animaciones
   ============================================================ */

/* Orbes flotantes del hero */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.orb-1 { width: 380px; height: 380px; background: rgba(254,80,1,.45); top: -120px; left: -80px; animation: drift1 18s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: rgba(254,123,64,.35); bottom: -140px; right: -60px; animation: drift2 22s ease-in-out infinite; }
.orb-3 { width: 260px; height: 260px; background: rgba(90,120,255,.3); top: 40%; left: 55%; animation: drift3 26s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(.9); }
}

/* Entrada escalonada del hero */
.hero-anim { opacity: 0; animation: heroIn .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-accent { position: relative; display: inline-block; }

/* Flecha del CTA */
.bounce-soft { animation: bounceSoft 2s ease-in-out infinite; }
@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Revelado al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0ms);
}

/* Brillo que recorre los botones primarios */
.btn-primary, .btn-cta { position: relative; overflow: hidden; }
.btn-primary::after, .btn-cta::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after, .btn-cta:hover::after { left: 130%; }

/* Barra de progreso del formulario */
.progress-line { position: relative; overflow: hidden; }
.progress-line::after {
  content: ''; position: absolute; inset: 0; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.form-progress.step-2 .progress-line::after { transform: scaleX(1); }

/* Pulso del indicador de paso activo */
.progress-step.active span { animation: stepPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes stepPop {
  from { transform: scale(.7); }
  to { transform: scale(1); }
}

/* Vista previa de fotos */
.photo-preview img { animation: photoIn .45s cubic-bezier(.22,1,.36,1); }
@keyframes photoIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

/* Confirmación de envío */
.form-success i { animation: successPop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes successPop {
  0% { opacity: 0; transform: scale(.3) rotate(-15deg); }
  60% { transform: scale(1.15) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.tracking-code { animation: heroIn .5s cubic-bezier(.22,1,.36,1) .15s both; }

/* Tarjetas de resultado en seguimiento */
.update-item { transition: transform .2s ease, box-shadow .2s ease; }
.update-item:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(8,0,128,.06); }

/* Modal de avisos */
.app-modal {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 0, 128, .5); backdrop-filter: blur(3px);
  animation: modalFade .2s ease;
}
.app-modal-card {
  background: var(--white); border-radius: 18px; padding: 32px 28px 26px; width: 100%; max-width: 400px;
  text-align: center; box-shadow: var(--shadow-lg); animation: modalPop .35s cubic-bezier(.34,1.56,.64,1);
}
.app-modal-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  background: #fee2e2; color: var(--danger);
}
.app-modal[data-type="success"] .app-modal-icon { background: #dcfce7; color: var(--success); }
.app-modal[data-type="info"] .app-modal-icon { background: #dbeafe; color: #1d4ed8; }
.app-modal-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; font-weight: 800; }
.app-modal-card p { margin: 0 0 22px; color: var(--gray); font-size: 14.5px; line-height: 1.6; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.code-hint { color: var(--gray); font-size: 12.5px; line-height: 1.5; }
.code-hint strong { color: var(--navy); }

/* Aviso de emergencias 911 */
.emergency-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 22px; color: #7f1d1d;
  font-size: 13.5px; line-height: 1.55;
}
.emergency-notice i { color: #dc2626; font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.emergency-notice strong { color: #b91c1c; }

/* Advertencia sobre el contenido de las fotos */
.photo-warning {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: 13px 16px; margin: 4px 0 20px; color: #78350f;
  font-size: 12.8px; line-height: 1.55;
}
.photo-warning i { color: #d97706; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.photo-warning strong { color: #92400e; }

/* Casillas de declaración */
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--orange); }
.check-row span { font-size: 13.8px; line-height: 1.5; color: var(--ink); }
.check-row a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.confirm-row { background: var(--gray-light); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
#reportedEntityRow { margin-top: 12px; }

/* Banner de borrador recuperado */
.draft-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fef3c7; color: #92400e; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 22px; font-size: 13.5px; font-weight: 600;
  animation: heroIn .4s cubic-bezier(.22,1,.36,1);
}
.draft-banner button {
  margin-left: auto; background: transparent; border: 1.5px solid rgba(146,64,14,.35);
  color: #92400e; font-family: var(--font); font-weight: 700; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .2s ease;
}
.draft-banner button:hover { background: rgba(146,64,14,.1); }

/* Aviso de ubicación tomada de la foto */
.photo-location-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: #dcfce7; color: #15803d; border-radius: 10px;
  padding: 10px 14px; margin-top: 10px; font-size: 12.5px; line-height: 1.5; font-weight: 600;
  animation: heroIn .4s cubic-bezier(.22,1,.36,1);
}

/* Enlace discreto tipo botón */
.photo-location-note.warn { background: #fef3c7; color: #92400e; }

.link-btn {
  background: none; border: none; padding: 6px 0 0; margin: 0;
  color: var(--gray); font-family: var(--font); font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease; align-self: flex-start;
}
.link-btn:hover { color: var(--orange); }

/* Modal de ayuda con pestañas */
.help-card { max-width: 470px; text-align: left; padding: 24px 24px 22px; }
.help-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.help-header h3 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 800; }
.help-header button { background: none; border: none; font-size: 19px; color: var(--gray); cursor: pointer; }
.help-intro { margin: 0 0 18px; color: var(--gray); font-size: 13.5px; line-height: 1.6; }
.help-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.help-tab {
  flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--gray); font-family: var(--font);
  font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.help-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.help-panel { display: none; }
.help-panel.active { display: block; animation: heroIn .3s cubic-bezier(.22,1,.36,1); }
.help-panel ol { margin: 0 0 20px; padding-left: 20px; color: var(--ink); font-size: 13.5px; line-height: 1.75; }
.help-panel li { margin-bottom: 6px; }
.help-panel strong { color: var(--navy); }

/* --- Ajustes para móvil / táctil --- */

/* En pantallas táctiles no hay hover: la respuesta visual va en el toque. */
.category-card { -webkit-tap-highlight-color: transparent; }
.category-card:active { transform: scale(.96); transition-duration: .1s; }
.btn:active { transform: scale(.97); }

@media (hover: none) {
  .category-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .category-card:hover i { transform: none; color: var(--navy); }
  .category-card:hover::after { transform: scaleX(0); }
  .category-card.is-selected:hover { border-color: var(--orange); box-shadow: 0 8px 26px rgba(254,80,1,.18); }
  .category-card.is-selected:hover i { color: var(--orange); }
  .category-card.is-selected:hover::after { transform: scaleX(1); }
}

@media (max-width: 720px) {
  /* Orbes más pequeños y con menos blur: el desenfoque grande consume GPU en celulares. */
  .orb { filter: blur(42px); opacity: .45; }
  .orb-1 { width: 220px; height: 220px; top: -70px; left: -60px; }
  .orb-2 { width: 190px; height: 190px; bottom: -80px; right: -50px; }
  .orb-3 { display: none; }

  [data-reveal] { transform: translateY(18px); }
  .hero-anim { animation-duration: .65s; }
}

/* Respeta la preferencia de menos movimiento del sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .hero-anim { opacity: 1 !important; transform: none !important; }
}
.consent-row { border: 1.5px dashed var(--border); border-radius: 12px; padding: 12px 16px; margin: -8px 0 20px; }
.consent-row .check-row span { font-size: 13px; line-height: 1.55; color: var(--gray); }
.consent-row strong { color: var(--navy); }

/* Documentos legales: índice, recuadros y listas */
.legal-callout {
  background: #eef2ff; border-left: 4px solid var(--navy); border-radius: 12px;
  padding: 14px 18px; margin: 18px 0 22px;
}
.legal-callout p { margin: 0 0 8px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout-danger { background: #fef2f2; border-left-color: #dc2626; }
.legal-callout-danger strong { color: #991b1b; }
.legal-toc {
  background: var(--gray-light, #f1f5f9); border-radius: 12px; padding: 16px 20px; margin: 0 0 28px;
}
.legal-toc > strong { display: block; margin-bottom: 8px; color: var(--navy); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; font-size: 14px; }
.legal-toc a { color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--orange); text-decoration: underline; }
.legal-container h2 { scroll-margin-top: 96px; }
.legal-container h3 { font-size: 16px; color: var(--navy); margin: 16px 0 6px; }
.legal-container ul { padding-left: 22px; }
.legal-container ul ul { margin-top: 6px; }
.legal-container li { margin: 6px 0; line-height: 1.6; }
.legal-container code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}
