/* Se conservan el encabezado, los colores y el pie de la gestoría original. */
[hidden] { display: none !important; }
.negative-service {
  width: 100%;
  background: #f5f5f5;
  font-family: Roboto, Arial, sans-serif;
  color: #333;
}
.service-heading { background: #e5e5e5; padding: 48px 24px 28px; }
.local-negative-service #page, .local-negative-service .ast-container { width: 100%; max-width: none; }
.service-heading-inner { width: 100%; margin: 0 auto; }
.service-heading h1 { font: 700 36px/1.25 Roboto, Arial, sans-serif; color: #333; margin: 0 0 30px; }
.service-heading p { margin: 0; font-size: 16px; line-height: 1.6; }
.service-body { padding: 46px 24px; }
.service-panel { box-sizing: border-box; width: 100%; max-width: none; margin: 0 auto; padding: 32px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 14px #00000005; }
.service-panel h2 { margin: 0 0 18px; color: #333; font: 700 24px/1.35 Roboto, Arial, sans-serif; }
.service-panel h3 { margin: 30px 0 12px; color: #333; font: 700 19px/1.4 Roboto, Arial, sans-serif; }
.service-panel p, .service-list { font-size: 16px; line-height: 1.7; }
.service-panel p { margin: 0 0 16px; }
.service-list { margin: 0 0 20px 20px; padding: 0; }
.service-list li { padding-left: 4px; margin-bottom: 9px; }
.validity-note { display: grid; gap: 6px; padding: 18px 20px; border-left: 3px solid #014898; background: #e9eef5; margin: 24px 0; font-size: 15px; line-height: 1.6; }
.negative-service .service-button { display: block; width: 100%; min-height: 46px; margin-top: 26px; padding: 14px 20px; border: 1px solid #014898; border-radius: 4px; background: #014898; color: white; font: 700 16px/1.25 Roboto, Arial, sans-serif; text-align: center; cursor: pointer; transition: background .15s; }
.negative-service .service-button:hover { background: #00356f; }
.negative-service :focus-visible { outline: 3px solid #7fc6f4; outline-offset: 3px; }
.service-panel .private-service-note { margin: 18px 0 0; color: #5c5c5c; font-size: 13px; line-height: 1.6; text-align: center; }
.service-panel .service-source { margin: 14px 0 0; color: #5c5c5c; font-size: 12px; text-align: center; }
.service-source a { color: #014898; text-decoration: underline; }
.negative-service .service-back { display: inline-block; background: transparent; color: #014898; padding: 0; border: 0; margin: 0 0 26px; font: 400 14px/1.5 Roboto, Arial, sans-serif; cursor: pointer; text-align: left; }
.service-panel .form-intro { margin-bottom: 30px; }
.service-field { margin: 0 0 28px; min-width: 0; }
.service-field label { display: block; color: #444; font: 700 16px/1.5 Roboto, Arial, sans-serif; margin-bottom: 6px; }
.service-field input, .service-field select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 52px; padding: 12px 15px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #333; font: 400 16px/1.5 Roboto, Arial, sans-serif; }
.service-field input[aria-invalid="true"], .service-field select[aria-invalid="true"] { border-color: #b3261e; }
.service-field .field-help { margin: 7px 0 0; color: #666; font-size: 13px; }
.negative-service .field-error { margin: 8px 0 0; color: #b3261e; font-size: 14px; }
.service-period { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.service-period legend { font-size: 17px; font-weight: 700; margin-bottom: 16px; padding: 0; }
.period-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.period-fields .service-field { margin: 0; }
.service-period .period-help { margin: 0 0 20px; color: #555; font-size: 14px; line-height: 1.6; }
.period-boundary { min-width: 0; margin: 0; padding: 14px 16px 18px; border: 1px solid #d4dce6; border-radius: 6px; }
.period-boundary legend { width: auto; margin: 0; padding: 0 6px; color: #014898; font-size: 17px; }
.period-boundary .period-boundary-help { margin: 0 0 14px; color: #666; font-size: 13px; line-height: 1.5; }
.period-selects { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.period-selects .service-field label { font-size: 14px; }
.negative-service .period-selects select { appearance: none; padding: 10px 26px 10px 10px; min-height: 48px; font-size: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 11px 8px; }
.service-period .period-single-month { margin: 16px 0 0; }
.service-period .period-summary { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid #014898; border-radius: 0 4px 4px 0; background: #e9eef5; color: #014898; font-size: 15px; font-weight: 600; line-height: 1.6; }
.negative-service .service-button:disabled { opacity: .65; cursor: wait; }
.service-panel .consultation-progress { margin: 14px 0 0; font-size: 14px; color: #014898; }
.consultation-error { margin-top: 20px; padding: 16px; border: 1px solid #e1b5ae; border-radius: 6px; background: #fff4f2; color: #7c241e; }
.service-panel .consultation-error p { margin-bottom: 10px; font-size: 15px; }
.consultation-error a { color: #014898; font-size: 14px; text-decoration: underline; }
.consultation-result { border-top: 1px solid #d4dce6; margin-top: 28px; padding-top: 8px; }
.result-details { margin: 20px 0; font-size: 15px; }
.result-details div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; margin: 10px 0; }
.result-details dt { font-weight: 700; }
.result-details dd { margin: 0; overflow-wrap: anywhere; }
#result-observations { margin: 16px 0 0 18px; font-size: 15px; line-height: 1.6; }
.gestion-footer { background: #014898; color: #fff; padding: 40px 24px 20px; font-family: Roboto, Arial, sans-serif; }
.gestion-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; width: 100%; margin: 0 auto; }
.gestion-footer img { display: block; max-width: 240px; width: 100%; height: auto; margin-bottom: 20px; }
.gestion-footer p { color: #fff; font-size: 13px; line-height: 1.7; margin: 0 0 10px; max-width: 520px; }
.gestion-footer nav { display: grid; align-content: start; gap: 18px; padding-top: 8px; }
.gestion-footer a { color: #fff; font-size: 14px; text-decoration: none; }
.gestion-footer a:hover { text-decoration: underline; }
.gestion-footer-copyright { width: 100%; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #ffffff36; font-size: 12px; }
/* Corrige un desborde del pie Astra que también existe en la web de origen. */
.local-negative-service .site-footer .ast-builder-grid-row-container-inner { width: 100%; margin-left: auto; margin-right: auto; }
.local-negative-service .site-footer .ast-builder-grid-row-container-inner,
.local-negative-service .site-footer .ast-builder-footer-grid-columns,
.local-negative-service .site-footer .site-footer-section,
.local-negative-service .site-footer .footer-widget-area { min-width: 0; max-width: 100%; }
.local-negative-service .site-footer img { max-width: min(240px, 100%) !important; }
@media (max-width: 600px) {
  .gestion-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .service-heading { padding: 40px 20px 28px; }
  .service-heading h1 { font-size: 28px; margin-bottom: 22px; }
  .service-body { padding: 30px 20px; }
  .service-panel { padding: 24px 20px; }
  .service-panel h2 { font-size: 22px; }
  .service-panel h3 { font-size: 18px; }
  .period-fields { grid-template-columns: 1fr; gap: 24px; }
  .period-selects { gap: 10px; }
  .local-negative-service .site-footer [style*="min-width: 280px"] { min-width: 0 !important; }
  .local-negative-service .site-primary-footer-inner-wrap { padding-left: 0; padding-right: 0; }
}
