/* Ajustes acotados para la copia de trabajo de ReformaClave. */

.rc-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-consent .form-check-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100% - 2em);
}

.lead-consent .form-check-input {
  margin-top: 0.875rem;
}
html {
  scroll-behavior: smooth;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--primaryFont);
  font-size: 15px;
  letter-spacing: 0.035em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-wordmark > span {
  color: var(--primaryColor);
  font-family: var(--secondaryFont);
  font-size: 1.75em;
  line-height: 1;
}

/* El subtítulo del hero es un párrafo por semántica; iguala la caja del h6 de Renius. */
.hero-area.style-one .hero-content .section-subtitle {
  margin-bottom: 12px;
  line-height: 1.2;
}

@media (min-width: 1600px) {
  .hero-area.style-one .hero-content h1 {
    max-width: 650px;
  }
}

body.page-not-found .navbar-area.style-one {
  background-color: var(--optionalColor);
}

/* La imagen absoluta del hero sobresalía entre 10 y 30 px del viewport. */
.hero-area.style-one {
  overflow: hidden;
  overflow: clip;
}

#inicio,
#servicios,
#detalle-servicios,
#nosotros,
#contacto,
#contacto-info {
  scroll-margin-top: 7rem;
}

.footer-area .footer-large-text {
  justify-content: center;
  overflow: hidden;
  font-size: clamp(2.4rem, 10vw, 9rem);
  letter-spacing: -0.055em;
  text-align: center;
}

/* Contraste legible para los acentos sobre superficies claras y el rótulo del pie. */
main .section-subtitle.text_primary,
main .link.style-one,
#navbar .menu a.active {
  color: #b34716 !important;
}

.move-text.style-two ul li {
  color: #74676c;
}

.footer-area .footer-large-text {
  color: #9b888f;
}

.cta-area.style-one {
  background-image: url("../img/cta/cta-bg-1.jpg");
  background-image: image-set(
    url("../img/optimized/cta-bg-1-960.webp") type("image/webp") 1x,
    url("../img/optimized/cta-bg-1-1920.webp") type("image/webp") 2x
  );
}

.menu-mobile-trigger,
.menu-mobile-close,
.menu-mobile-arrow {
  min-width: 44px;
  min-height: 44px;
}

/* Match the filled play glyph while keeping the circle decorative until video exists. */
.hero-area.style-one .circle-text-wrap .circle-play-icon,
.hero-area.style-one .circle-text-wrap .circle-play-icon path {
  fill: currentColor;
  stroke: none;
}

/* ScrollCue's stylesheet hides cue elements. Hide only after successful init. */
body:not(.scroll-cues-ready) [data-cue],
body:not(.scroll-cues-ready) [data-cues] > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-cue],
  [data-cues] > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-inner {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-cue],
  [data-cues] > *,
  .move-top,
  .move-bottom,
  .move-left,
  .move-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Fase 8: área interna administrativa, sobre los patrones tipográficos Renius existentes. */
.admin-shell { min-height: 65vh; }
.admin-shell .container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.admin-login-card { max-width: 540px !important; padding: clamp(24px, 5vw, 48px); background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / 7%); }
.admin-eyebrow { margin: 0 0 8px; color: #bf8c5b; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1, .admin-login-card h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
.admin-heading p { margin-bottom: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-form { display: grid; gap: 12px; margin-top: 22px; }
.admin-form .form-control { min-height: 48px; width: 100%; }
.admin-submit, .admin-secondary, .password-toggle { min-height: 48px; }
.admin-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.admin-checkbox input { width: 20px; height: 20px; }
.password-control { display: flex; gap: 8px; }
.password-toggle { flex: 0 0 auto; padding: 0 16px; border: 1px solid #c9c9c9; border-radius: 5px; background: #fff; }
.admin-field-error { color: #9d2424; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e5e5e5; border-radius: 8px; }
.admin-table { width: 100%; min-width: 940px; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid #ededed; text-align: left; vertical-align: top; }
.admin-table th { background: #f5f3f1; font-size: .88rem; }
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 20px 0; }
.admin-empty { padding: 24px; border-radius: 8px; background: #f5f3f1; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-panel { min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
.admin-panel h2 { margin: 0 0 14px; font-size: 1.25rem; }
.admin-data { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 10px 14px; margin: 0; }
.admin-data dt { font-weight: 700; }
.admin-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.admin-timeline { display: grid; gap: 14px; padding-left: 22px; }
.admin-timeline li { padding-left: 4px; }
.admin-timeline time { display: block; color: #666; font-size: .88rem; }
.admin-timeline p { margin: 6px 0 0; overflow-wrap: anywhere; }

.admin-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.admin-metric { display: grid; gap: 8px; padding: 24px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
.admin-metric strong { font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.admin-metric-list { display: grid; gap: 8px; margin: 0; }
.admin-metric-list div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid #ededed; }
.admin-metric-list dd { margin: 0; font-weight: 700; }
@media (max-width: 767px) {
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-metric-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-data { grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr); }
  .admin-pagination { gap: 12px; font-size: .9rem; }
  .admin-table { min-width: 880px; }
}
