* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #f0f2f7;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card,
.form-card,
.card,
.table-card {
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.06);
}
.login-card {
  width: min(460px, 92%);
  padding: 28px;
}
.muted {
  color: #6b7280;
}
.hint {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0f172a;
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar h2 {
  margin-top: 0;
  margin-bottom: 28px;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #f1f5f9;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 16px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar a {
  color: #94a3b8;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar a:hover,
.sidebar a.active {
  background: #1e293b;
  color: #f1f5f9;
}
.main {
  padding: 28px 32px;
  overflow-x: hidden;
}
.topbar h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  padding: 20px;
}
.form-card {
  padding: 28px 32px;
  max-width: 1100px;
}
.table-card {
  padding: 20px 24px;
}
.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
input,
textarea,
button,
select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}
button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  width: auto;
  min-width: 160px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    background 0.15s,
    transform 0.1s;
}
button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}
.btn-disabled {
  opacity: 0.75;
  cursor: wait !important;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.contact-modal__dialog {
  position: relative;
  max-width: 420px;
  margin: min(12vh, 6rem) auto 0;
  width: min(calc(100vw - 2rem), 420px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 0;
  width: auto;
  margin-top: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.7rem;
  padding: 0;
  line-height: 1;
}

.contact-modal__close:hover {
  background: transparent;
  color: #0f172a;
}

.contact-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  margin-bottom: 1rem;
  font-size: 1.9rem;
}

.contact-modal.is-error .contact-modal__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.contact-modal.is-loading .contact-modal__icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.contact-modal__title {
  margin: 0 0 0.5rem;
}

.contact-modal__message {
  margin: 0 0 1.25rem;
  color: #475569;
}

.contact-modal__button {
  min-width: 160px;
  margin-top: 0;
}

@media (max-width: 640px) {
  .contact-modal__dialog {
    margin-top: 10vh;
    padding: 1.75rem 1.25rem 1.25rem;
  }
}
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.btn-link,
.btn-small {
  display: inline-block;
  text-decoration: none;
  color: #2563eb;
  font-weight: bold;
}
.btn-small {
  padding: 8px 12px;
  background: #eef2ff;
  border-radius: 8px;
  margin-right: 6px;
}
.btn-small.danger {
  background: #fee2e2;
  color: #991b1b;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}
code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  color: #4b5563;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.table-files {
  min-width: 980px;
}
.table-files th:nth-child(1),
.table-files td:nth-child(1) {
  width: 60px;
}
.table-files th:nth-child(2),
.table-files td:nth-child(2) {
  width: 96px;
}
.table-files th:nth-child(6),
.table-files td:nth-child(6) {
  width: 90px;
}
.table-files th:nth-child(8),
.table-files td:nth-child(8) {
  width: 90px;
}
.table-files th:nth-child(9),
.table-files td:nth-child(9) {
  width: 110px;
}

/* ───── Dash cards ───── */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.dash-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid #2563eb;
}
.dash-card.green {
  border-left-color: #16a34a;
}
.dash-card.orange {
  border-left-color: #ea580c;
}
.dash-card.purple {
  border-left-color: #7c3aed;
}
.dash-card h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  font-weight: 600;
}
.dash-num {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.dash-card-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
.dash-card .btn-link {
  font-size: 12.5px;
  margin-top: auto;
}

/* ───── Dash info / recent changes ───── */
.dash-info {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}
.dash-info h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #111827;
}
.dash-info p {
  margin: 6px 0;
  color: #4b5563;
}
.dash-changes {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-changes th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  padding: 0 12px 10px;
  border-bottom: 2px solid #f1f5f9;
}
.dash-changes td {
  padding: 10px 12px;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}
.dash-changes tr:last-child td {
  border-bottom: none;
}
.change-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-page {
  background: #eff6ff;
  color: #2563eb;
}
.badge-section {
  background: #f0fdf4;
  color: #16a34a;
}
.badge-file {
  background: #fff7ed;
  color: #ea580c;
}
.badge-card {
  background: #faf5ff;
  color: #7c3aed;
}

/* ───── Settings groups ───── */
.settings-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
}
.settings-group h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}
.settings-group-desc {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 4px;
}
.settings-group label:first-of-type {
  margin-top: 10px;
}

/* ───── Audit info ───── */
.audit-info {
  margin-top: 16px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 9px;
  font-size: 12.5px;
  color: #6b7280;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.audit-info strong {
  color: #374151;
}

/* ───── Btn view / preview ───── */
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #374151;
  background: #f1f5f9;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-view:hover {
  background: #e2e8f0;
}
.btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  margin-left: 8px;
  transition: background 0.15s;
}
.btn-preview:hover {
  background: #dbeafe;
}

/* ───── Toggle (checkbox) ───── */
.toggle-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 20px;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle input:checked + .toggle-slider {
  background: #2563eb;
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
}
.toggle-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
}

/* ───── Filter bar ───── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.filter-bar input,
.filter-bar select {
  width: auto;
  flex: 1;
  margin-top: 0;
}
.filter-bar select {
  max-width: 200px;
}

/* ───── Estado badge ───── */
.estado-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.estado-activo {
  background: #dcfce7;
  color: #166534;
}
.estado-inactivo {
  background: #fee2e2;
  color: #991b1b;
}

/* ───── Actions cell ───── */
.actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* ───── Section cards (page-edit) ───── */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}
.section-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #111827;
}
.section-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

/* ───── Card editor ───── */
.card-editor {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.card-editor-head {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.editor-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
}
.editor-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #111827;
}

/* ───── Readonly fields ───── */
.readonly-field {
  background: #f1f5f9 !important;
  color: #6b7280 !important;
  cursor: default;
  border-color: #e2e8f0 !important;
}

/* ───── Btn small ───── */
.btn-link,
.btn-small {
  display: inline-block;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 13px;
}
.btn-small {
  padding: 7px 13px;
  background: #eff6ff;
  border-radius: 8px;
  margin-right: 4px;
  transition: background 0.12s;
}
.btn-small:hover {
  background: #dbeafe;
}
.btn-small.danger {
  background: #fee2e2;
  color: #991b1b;
}
.btn-small.danger:hover {
  background: #fecaca;
}
.btn-small.success-btn {
  background: #dcfce7;
  color: #166534;
}
.btn-small.success-btn:hover {
  background: #bbf7d0;
}

/* ───── Alert ───── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

/* ───── Code ───── */
code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  color: #4b5563;
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .dash-cards {
    grid-template-columns: 1fr 1fr;
  }
  .section-cards {
    grid-template-columns: 1fr;
  }
}
.file-preview-wrap {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
}
.file-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-inline {
  margin-top: 0;
  min-width: auto;
  padding: 10px 14px;
}
/* ── Image picker ─────────────────────────────────────────────────────────── */
.img-picker-wrap {
  margin-top: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
}
.img-picker-preview {
  display: block;
  max-width: 200px;
  max-height: 160px;
  border-radius: 8px;
  object-fit: contain;
}
.editor-group {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.card-editor {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  background: #f8fbff;
}
.card-editor-head {
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Toggle / Switch ─────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: 0.25s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle input:checked + .toggle-slider {
  background: #2563eb;
}
.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.toggle-label {
  font-size: 14px;
  color: #374151;
}

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.modal-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1f2937;
}
.modal-box p {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-confirm {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}
.btn-confirm:hover {
  background: #1d4ed8;
}
.btn-confirm.danger {
  background: #dc2626;
}
.btn-confirm.danger:hover {
  background: #b91c1c;
}
.btn-confirm.success-btn {
  background: #16a34a;
}
.btn-confirm.success-btn:hover {
  background: #15803d;
}
.btn-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
  padding: 11px 26px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
.btn-cancel:hover {
  background: #e5e7eb;
}

/* ── Botón cerrar sección ────────────────────────────── */
.btn-close-section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #374151;
  border: 1.5px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  margin-left: 10px;
  min-width: auto;
  width: auto;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-close-section:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: none;
}

/* ── Settings grupos con icono ───────────────────────── */
.settings-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.settings-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.settings-group-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.settings-group-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}
.settings-group-icon.purple {
  background: #faf5ff;
  color: #7c3aed;
}
.settings-group-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}
.settings-group h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* ── Timeline de actividad reciente ─────────────────── */
.activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}
.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.activity-dot {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.activity-dot.page {
  background: #eff6ff;
  color: #2563eb;
}
.activity-dot.section {
  background: #f0fdf4;
  color: #16a34a;
}
.activity-dot.file {
  background: #fff7ed;
  color: #ea580c;
}
.activity-item-body {
  flex: 1;
  min-width: 0;
}
.activity-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-item-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.activity-item-meta strong {
  color: #6b7280;
}

/* ── Search / Filter bar ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar input,
.filter-bar select {
  width: auto;
  flex: 1;
  min-width: 160px;
  margin: 0;
}

/* ── Estado badge ────────────────────────────────────── */
.estado-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}
.estado-activo {
  background: #dcfce7;
  color: #166534;
}
.estado-inactivo {
  background: #fee2e2;
  color: #991b1b;
}
.btn-small.success-btn {
  background: #dcfce7;
  color: #166534;
}

/* ── Botón ver página pública ────────────────────────── */
.btn-view {
  background: #ecfdf5;
  color: #166534;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-view:hover {
  background: #dcfce7;
}
.actions-cell {
  white-space: nowrap;
}

/* ── Section cards (en page-edit) ────────────────────── */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.section-card {
  background: #f8fbff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.section-card-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}
.section-card-info {
  flex: 1;
  min-width: 0;
}
.section-card-title {
  font-weight: bold;
  color: #1d4ed8;
  font-size: 15px;
  margin: 0 0 2px;
}
.section-card-sub {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}
.section-card-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.section-card-link {
  font-size: 12px;
  color: #4b5563;
  word-break: break-all;
  background: #eef2ff;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
}
.section-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.badge-visible {
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}
.badge-hidden {
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}
.section-card-order {
  background: #eef2ff;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

/* ── Readonly fields ─────────────────────────────────── */
.readonly-field {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* ── Dashboard mejorado ──────────────────────────────── */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-left: 5px solid #2563eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-card.green {
  border-left-color: #16a34a;
}
.dash-card.orange {
  border-left-color: #d97706;
}
.dash-card.purple {
  border-left-color: #7c3aed;
}
.dash-card h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  font-weight: 600;
}
.dash-num {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}
.dash-card-label {
  font-size: 13px;
  color: #6b7280;
}
.dash-card .btn-link {
  margin-top: 10px;
  font-size: 13px;
}
.dash-info {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  margin-top: 0;
}
.dash-info h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #1f2937;
}
.dash-info p {
  margin: 6px 0;
  font-size: 13px;
  color: #6b7280;
}
.dash-info code {
  font-size: 12px;
}

/* ── Botón Ver en sitio (preview dentro de formulario) ── */
.btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.15s;
}
.btn-preview:hover {
  background: #dcfce7;
}

/* ── Bloque auditoría (última actualización) ─────────── */
.audit-info {
  margin-top: 14px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.audit-info strong {
  color: #1e293b;
}

@media (max-width: 900px) {
  .section-cards {
    grid-template-columns: 1fr;
  }
  .dash-cards {
    grid-template-columns: 1fr 1fr;
  }
}
/**
 * Plantilla: Mapa Interactivo
 * ID: T21_INTERACTIVE_MAP
 * Tipografía: DM Sans / DM Mono
 * Hero: interactive_map_hero
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500;600;700&display=swap");

/* ============================================
   TOKENS DE COLOR
   ============================================ */
:root {
  --color-primary: #00897b;
  --color-secondary: #00695c;
  --color-accent: #ff6e40;

  --color-primary-light: #00897b20;
  --color-primary-dark: #00695c;

  --font-primary: "DM Sans", sans-serif;
  --font-secondary: "DM Mono", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* ============================================
   NAVBAR - map_nav
   ============================================ */

.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ============================================
   HERO - interactive_map_hero
   ============================================ */

.hero {
  background: var(--color-primary);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

/* ============================================
   CARDS - pin_cards
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--color-primary);
}

/* ============================================
   NOTICIAS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-secondary);
  color: white;
}

.footer-grid {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
  transition: all 0.3s ease;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 400px;
  }

  .hero.split-content {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary);
}
.bg-primary {
  background: var(--color-primary);
}
.bg-light {
  background: #f5f5f5;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--color-primary);
}
/* TEMA VIIVALTY SAS ESP - Basado en colores del logo */

:root {
  /* Colores principales del logo - Verde y Azul */
  --color-primary: #2e7d32; /* Verde oscuro del logo */
  --color-primary-light: #4caf50; /* Verde claro */
  --color-primary-dark: #1b5e20; /* Verde muy oscuro */

  --color-secondary: #1976d2; /* Azul del logo */
  --color-secondary-light: #42a5f5;
  --color-secondary-dark: #0d47a1;

  --color-accent: #66bb6a; /* Verde acento */
  --color-accent-alt: #64b5f6; /* Azul acento */

  /* Colores de soporte */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  --color-info: #2196f3;

  /* Grises y neutros */
  --color-text: #212121;
  --color-text-light: #757575;
  --color-text-lighter: #9e9e9e;
  --color-background: #ffffff;
  --color-background-light: #f5f5f5;
  --color-background-dark: #e0e0e0;
  --color-border: #bdbdbd;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  --gradient-secondary: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  --gradient-hero: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.9) 0%,
    rgba(25, 118, 210, 0.9) 100%
  );

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Tipografía */
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

::selection {
  background: rgba(25, 118, 210, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--color-primary);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-company {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-background-light);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-background-light);
  font-weight: 700;
}

.navbar-item {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: var(--spacing-md);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-content a:hover {
  background-color: var(--color-background-light);
  color: var(--color-primary);
  padding-left: var(--spacing-lg);
}

.navbar-item:hover .dropdown-content {
  display: block;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* Hero */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-2xl);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

/* Botones */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Secciones */
.section {
  padding: var(--spacing-3xl) 0;
}

.section.bg-light {
  background-color: var(--color-background-light);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.section-title p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-lg);
}

.card h3 {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

/* Ajuste global de imágenes CMS para evitar espacios vacíos */
.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-image,
.coverage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  background: #eef3f7;
  margin-bottom: var(--spacing-md);
}

.card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-background-dark);
    box-shadow: var(--shadow-md);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar {
    position: sticky;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   REDISEÑO 2026 - ESTILO UNIFICADO
   ============================================ */

:root {
  --color-primary: #2e7d32;
  --color-primary-light: #4caf50;
  --color-primary-dark: #1b5e20;
  --color-secondary: #1976d2;
  --color-secondary-light: #42a5f5;
  --color-secondary-dark: #0d47a1;
  --color-text: #111813;
  --color-text-light: #4a5c50;
  --color-background: #f5f7fb;
  --color-background-light: #ffffff;
  --color-background-dark: #dce7f3;
  --color-border: #d9e3ef;
  --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #1976d2 100%);
  --gradient-secondary: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  --gradient-hero: linear-gradient(
    120deg,
    rgba(46, 125, 50, 0.92) 0%,
    rgba(25, 118, 210, 0.82) 100%
  );
  --shadow-sm: 0 6px 15px rgba(13, 71, 161, 0.08);
  --shadow-md: 0 12px 26px rgba(13, 71, 161, 0.12);
  --shadow-lg: 0 18px 35px rgba(13, 71, 161, 0.16);
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
}

.container {
  max-width: 1280px;
}

.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-title h2 {
  color: var(--color-text);
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
}

.section-title.left {
  text-align: left;
}

.section-title p {
  color: var(--color-text-light);
}

.navbar {
  background: rgba(246, 248, 246, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.nav-shell {
  min-height: 86px;
  gap: 1rem;
}

.navbar-brand {
  gap: 0.75rem;
}

.navbar-logo-modern {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand-text small {
  display: block;
  color: var(--color-text-light);
  font-size: 0.73rem;
  line-height: 1.1;
}

.navbar-company {
  color: var(--color-text);
  font-size: 1.12rem;
  font-weight: 800;
}

.navbar-company em {
  color: var(--color-secondary);
  font-style: normal;
}

.navbar-menu {
  gap: 0.35rem;
}

.nav-link {
  color: var(--color-text);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary-dark);
  background: #e8f1fb;
}

.nav-link.nav-link-cta {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
}

.nav-link.nav-link-cta:hover {
  filter: brightness(0.96);
}

.navbar-item {
  position: relative;
}

.dropdown-content {
  min-width: 260px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.dropdown-content a {
  font-size: 0.9rem;
}

.dropdown-content a.active {
  color: var(--color-secondary-dark);
  background: #e8f1fb;
  font-weight: 700;
}

.hero-modern {
  min-height: unset;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(66, 165, 245, 0.22),
      transparent 35%
    ),
    radial-gradient(circle at 5% 10%, rgba(76, 175, 80, 0.15), transparent 30%),
    var(--gradient-hero);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5.3vw, 4.15rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  color: var(--color-primary);
  font-style: italic;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-impact {
  position: absolute;
  left: -1rem;
  bottom: -1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: var(--color-text);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
}

.hero-impact i {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 118, 210, 0.15);
  color: var(--color-primary-dark);
}

.hero-impact p {
  margin: 0;
  line-height: 1.1;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.hero-impact strong {
  font-size: 1.1rem;
}

.card,
.value-card,
.sidebar-widget,
.law-section,
.pqr-type,
.component-card,
.subsidy-card,
.contrib-card,
.tool-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.modern-cards {
  gap: 1.25rem;
}

.service-card {
  text-align: left;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(46, 125, 50, 0.14);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card h3,
.tool-card h3 {
  color: var(--color-text);
}

.quick-route {
  background: var(--gradient-primary);
  color: #fff;
  padding: 2.5rem 0;
}

.quick-route-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.quick-route-wrap p {
  opacity: 0.84;
}

.quick-route-form {
  display: flex;
  gap: 0.5rem;
  width: min(520px, 100%);
}

.quick-route-form input {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.quick-route-form input:focus {
  outline: 3px solid rgba(16, 34, 22, 0.35);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: #fff;
}

.btn-outline {
  border-color: #c9dff7;
  color: var(--color-secondary);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  background: #eef6ff;
  color: var(--color-secondary-dark);
}

.page-header {
  color: #fff;
  text-align: left;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--gradient-primary) !important;
}

.page-header p {
  opacity: 0.88;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 1.2rem;
}

.content-main > article,
.content-main > .legal-content,
.pqr-form-section,
.intro-box,
.intro-tariff,
.service-components,
.tariff-tables,
.subsidies-section,
.channels-section,
.faq-section,
.commitment-section,
.response-times,
.tracking-section,
.rights-section,
.duties-section,
.procedures-section,
.municipality-grid,
.ccu-intro,
.table-wrap,
.document-categories,
.filters,
.certifications-grid,
.faq-grid {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.2vw, 1.7rem);
}

.content-main > article + article,
.content-main > article + section,
.content-main section + section,
.section .table-container,
.section .tariff-notes,
.section .response-card,
.section .tracking-form {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

table thead tr,
.coverage-table th,
.tariff-table th {
  background: #e9f7ed;
  color: var(--color-secondary);
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #edf3ee;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7e3db;
  background: #fff;
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.footer {
  background-color: #f8fbf8;
  background-image:
    linear-gradient(
      to bottom,
      rgba(248, 251, 248, 0.3) 0%,
      rgba(248, 251, 248, 0.18) 100%
    ),
    url("../../file.php?f=assets%2Fimg%2Fcesped.png");
  background-repeat: no-repeat, no-repeat;
  background-position:
    center top,
    top center;
  background-size:
    100% 100%,
    100% auto;
  background-attachment: scroll, scroll;
  width: 100%;
  color: #1f2937;
  margin-top: 0;
  padding-top: 2.8rem;
}

.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.footer-title {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-title h3 {
  color: #111827;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.footer-title p {
  color: #475569;
  margin: 0;
}

.footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: 75px;
  height: auto;
  display: block;
  filter: saturate(0.9);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-column h4 {
  color: #111827;
}

.footer-column a:not(.social-icon),
.footer-column p {
  color: #334155;
}

.footer-column a:not(.social-icon):hover {
  color: var(--color-primary);
}

.footer .footer-social .social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  text-decoration: none;
  flex-shrink: 0;
}

.footer .footer-social .social-icon:hover {
  background: var(--color-secondary);
  color: #fff;
}

.footer .footer-social .social-icon i {
  line-height: 1;
}

.footer-legal {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
  padding: 0.6rem 0;
  text-align: center;
}

.footer-bottom {
  position: relative;
  border-top: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  padding-bottom: 0;
}

.footer-bottom::before {
  content: none;
}

.footer-bottom::after {
  content: none;
}

.footer-bottom-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.footer-bottom-content,
.footer-legal-links a {
  color: #1f2937;
}

.footer-legal-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-shell {
    min-height: 72px;
  }

  .navbar-brand-text small {
    display: none;
  }

  .hero-grid,
  .quick-route-wrap,
  .quick-route-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-impact {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: var(--spacing-3xl) var(--spacing-lg);
  isolation: isolate;
}

.hero-mascot-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  z-index: 1;
}

.hero-mascot-bg img {
  width: 45%;
  height: auto;
}

body.theme-night .hero {
  background: linear-gradient(
    135deg,
    rgba(11, 45, 84, 0.92),
    rgba(12, 88, 57, 0.9)
  );
}

body.theme-night .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 2px
    );
  background-size: 180px 180px;
  pointer-events: none;
}

body.theme-night .hero-mascot-bg {
  opacity: 0.48;
  filter: blur(1.5px) saturate(0.98) brightness(0.88);
}

.hero-logo {
  height: clamp(110px, 14vw, 170px);
  width: auto;
  margin-bottom: var(--spacing-lg);
  filter: none;
  object-fit: contain;
  animation: floatSoft 5s ease-in-out infinite;
}

.hero picture {
  width: auto;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.hero-tagline {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-modern .hero-copy h1 {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-modern .hero-copy h1 span {
  color: #ffffff;
  font-style: normal;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-modern .hero-buttons .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
}

.hero-modern .hero-buttons .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  filter: none;
}

.eco-campaign {
  background: linear-gradient(
    180deg,
    rgba(46, 125, 50, 0.05) 0%,
    rgba(25, 118, 210, 0.05) 100%
  );
}

.eco-campaign-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.eco-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.eco-campaign-content h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.eco-campaign-content p {
  color: var(--color-text-light);
}

.eco-highlight {
  margin-top: var(--spacing-md);
  color: var(--color-text);
  font-weight: 600;
}

.eco-actions {
  margin-top: var(--spacing-xl);
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.eco-campaign-visual {
  text-align: center;
}

.eco-badge {
  width: min(330px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-xl);
  border: 8px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: pulseSoft 6s ease-in-out infinite;
}

.eco-badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-caption {
  margin-top: var(--spacing-md);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.seasonal-campaigns {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-xl);
}

.season-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-secondary);
  transition: transform var(--transition-base);
}

.season-card:hover {
  transform: translateY(-4px);
}

.season-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--gradient-secondary);
  margin-bottom: var(--spacing-sm);
}

.season-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.faq-section {
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.faq-item {
  background: var(--color-background-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
}

.faq-item h3 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

.faq-item a {
  color: var(--color-secondary);
  font-weight: 600;
}

.update-section {
  padding-top: 0;
}

.last-update {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: var(--color-background-light);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--color-text-light);
}

.last-update i {
  color: var(--color-primary);
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

.legal-banner {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--spacing-lg) 0;
}

.legal-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.legal-item {
  text-align: center;
  padding: var(--spacing-sm);
}

.operation-coverage {
  background: white;
}

.coverage-meta {
  text-align: center;
  margin: 0 auto var(--spacing-xl);
  max-width: 760px;
}

.coverage-badge {
  display: inline-block;
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-primary-dark);
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.coverage-meta p {
  color: var(--color-text-light);
}

.coverage-map {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.06),
    rgba(25, 118, 210, 0.06)
  );
}

.coverage-map h3 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.coverage-map-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: var(--spacing-lg);
}

.map-node {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.map-node-count {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.map-node h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
}

.map-node p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
}

.coverage-card {
  background: var(--color-background-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border-top: 4px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.coverage-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.coverage-header i {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
}

.coverage-header h3 {
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
}

.coverage-list {
  margin: 0;
  padding-left: var(--spacing-lg);
  color: var(--color-text);
}

.coverage-list li {
  padding: 0.2rem 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-features {
  list-style: none;
  margin: var(--spacing-md) 0;
  flex-grow: 1;
}

.service-features li {
  padding: var(--spacing-sm) 0;
  color: var(--color-text-light);
}

.service-features li i {
  color: var(--color-primary);
  margin-right: 8px;
}

.legal-section {
  background: white;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.legal-card {
  padding: var(--spacing-xl);
  background: var(--color-background-light);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-primary);
  text-align: center;
}

.legal-card.featured {
  background: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.1),
    rgba(46, 125, 50, 0.05)
  );
  border-top-color: var(--color-primary);
  border-width: 5px;
}

.legal-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.legal-icon i {
  color: var(--color-primary);
}

.legal-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.legal-link {
  display: inline-block;
  margin-top: var(--spacing-md);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.rights-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.right-highlight {
  text-align: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.right-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  margin: 0 auto var(--spacing-md);
}

.right-highlight h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.rights-cta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
}

.quick-access {
  background: white;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.access-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-background-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-base);
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.access-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--spacing-md);
  color: white;
}

.social-icon i {
  font-size: 1.1rem;
}

.access-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* CÓDIGO DE COLORES */
.color-code-visual {
  margin: var(--spacing-2xl) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: white;
}

.color-code-image {
  width: 100%;
  height: auto;
  display: block;
}

.color-code-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.detail-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.detail-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.8rem;
}

.detail-card h4 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
}

.detail-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* CAMPAÑAS EDUCATIVAS */
.educational-campaigns {
  background: linear-gradient(
    180deg,
    rgba(25, 118, 210, 0.03) 0%,
    rgba(46, 125, 50, 0.05) 100%
  );
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.campaign-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

.campaign-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.campaign-body {
  padding: var(--spacing-lg);
}

.campaign-body h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.campaign-body p {
  color: var(--color-text-light);
  margin: 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--spacing-lg);
}

.quick-link-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.quick-link-card {
  display: flex;
  flex-direction: column;
}

.quick-link-card p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.quick-link-card .btn {
  margin-top: auto;
  align-self: center;
}

.citizen-section {
  background: linear-gradient(
    180deg,
    rgba(46, 125, 50, 0.05) 0%,
    rgba(25, 118, 210, 0.04) 100%
  );
}

.citizen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--spacing-lg);
}

.citizen-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.citizen-card p {
  color: var(--color-text-light);
  margin: 0;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.contact-item {
  background: var(--color-background-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}

.contact-item h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-mascot-bg {
    width: clamp(180px, 44vw, 290px);
    right: -18px;
    bottom: -10px;
    opacity: 0.35;
    filter: blur(2px);
  }

  .eco-campaign-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .legal-content {
    flex-direction: column;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-map-track {
    grid-template-columns: 1fr;
  }

  .last-update {
    flex-direction: column;
    text-align: center;
  }

  .campaign-image {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .eco-badge,
  .season-card {
    animation: none !important;
    transition: none !important;
  }
}
/**
 * Plantilla: Mapa Interactivo
 * ID: T21_INTERACTIVE_MAP
 * Tipografía: DM Sans / DM Mono
 * Hero: interactive_map_hero
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500;600;700&display=swap");

/* ============================================
   TOKENS DE COLOR
   ============================================ */
:root {
  --color-primary: #00897b;
  --color-secondary: #00695c;
  --color-accent: #ff6e40;

  --color-primary-light: #00897b20;
  --color-primary-dark: #00695c;

  --font-primary: "DM Sans", sans-serif;
  --font-secondary: "DM Mono", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* ============================================
   NAVBAR - map_nav
   ============================================ */

.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ============================================
   HERO - interactive_map_hero
   ============================================ */

.hero {
  background: var(--color-primary);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

/* ============================================
   CARDS - pin_cards
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--color-primary);
}

/* ============================================
   NOTICIAS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-secondary);
  color: white;
}

.footer-grid {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
  transition: all 0.3s ease;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 400px;
  }

  .hero.split-content {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary);
}
.bg-primary {
  background: var(--color-primary);
}
.bg-light {
  background: #f5f5f5;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--color-primary);
}
/* TEMA VIIVALTY SAS ESP - Basado en colores del logo */

:root {
  /* Colores principales del logo - Verde y Azul */
  --color-primary: #2e7d32; /* Verde oscuro del logo */
  --color-primary-light: #4caf50; /* Verde claro */
  --color-primary-dark: #1b5e20; /* Verde muy oscuro */

  --color-secondary: #1976d2; /* Azul del logo */
  --color-secondary-light: #42a5f5;
  --color-secondary-dark: #0d47a1;

  --color-accent: #66bb6a; /* Verde acento */
  --color-accent-alt: #64b5f6; /* Azul acento */

  /* Colores de soporte */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  --color-info: #2196f3;

  /* Grises y neutros */
  --color-text: #212121;
  --color-text-light: #757575;
  --color-text-lighter: #9e9e9e;
  --color-background: #ffffff;
  --color-background-light: #f5f5f5;
  --color-background-dark: #e0e0e0;
  --color-border: #bdbdbd;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  --gradient-secondary: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  --gradient-hero: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.9) 0%,
    rgba(25, 118, 210, 0.9) 100%
  );

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Tipografía */
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

::selection {
  background: rgba(25, 118, 210, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--color-primary);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-company {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-background-light);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-background-light);
  font-weight: 700;
}

.navbar-item {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: var(--spacing-md);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-content a:hover {
  background-color: var(--color-background-light);
  color: var(--color-primary);
  padding-left: var(--spacing-lg);
}

.navbar-item:hover .dropdown-content {
  display: block;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* Hero */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--spacing-2xl);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

/* Botones */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Secciones */
.section {
  padding: var(--spacing-3xl) 0;
}

.section.bg-light {
  background-color: var(--color-background-light);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.section-title p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-lg);
}

.card h3 {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

/* Ajuste global de imágenes CMS para evitar espacios vacíos */
.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-image,
.coverage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  background: #eef3f7;
  margin-bottom: var(--spacing-md);
}

.card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: white;
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-background-dark);
    box-shadow: var(--shadow-md);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar {
    position: sticky;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   REDISEÑO 2026 - ESTILO UNIFICADO
   ============================================ */

:root {
  --color-primary: #2e7d32;
  --color-primary-light: #4caf50;
  --color-primary-dark: #1b5e20;
  --color-secondary: #1976d2;
  --color-secondary-light: #42a5f5;
  --color-secondary-dark: #0d47a1;
  --color-text: #111813;
  --color-text-light: #4a5c50;
  --color-background: #f5f7fb;
  --color-background-light: #ffffff;
  --color-background-dark: #dce7f3;
  --color-border: #d9e3ef;
  --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #1976d2 100%);
  --gradient-secondary: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  --gradient-hero: linear-gradient(
    120deg,
    rgba(46, 125, 50, 0.92) 0%,
    rgba(25, 118, 210, 0.82) 100%
  );
  --shadow-sm: 0 6px 15px rgba(13, 71, 161, 0.08);
  --shadow-md: 0 12px 26px rgba(13, 71, 161, 0.12);
  --shadow-lg: 0 18px 35px rgba(13, 71, 161, 0.16);
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
}

.container {
  max-width: 1280px;
}

.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-title h2 {
  color: var(--color-text);
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
}

.section-title.left {
  text-align: left;
}

.section-title p {
  color: var(--color-text-light);
}

.navbar {
  background: rgba(246, 248, 246, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.nav-shell {
  min-height: 86px;
  gap: 1rem;
}

.navbar-brand {
  gap: 0.75rem;
}

.navbar-logo-modern {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand-text small {
  display: block;
  color: var(--color-text-light);
  font-size: 0.73rem;
  line-height: 1.1;
}

.navbar-company {
  color: var(--color-text);
  font-size: 1.12rem;
  font-weight: 800;
}

.navbar-company em {
  color: var(--color-secondary);
  font-style: normal;
}

.navbar-menu {
  gap: 0.35rem;
}

.nav-link {
  color: var(--color-text);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary-dark);
  background: #e8f1fb;
}

.nav-link.nav-link-cta {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
}

.nav-link.nav-link-cta:hover {
  filter: brightness(0.96);
}

.navbar-item {
  position: relative;
}

.dropdown-content {
  min-width: 260px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.dropdown-content a {
  font-size: 0.9rem;
}

.dropdown-content a.active {
  color: var(--color-secondary-dark);
  background: #e8f1fb;
  font-weight: 700;
}

.hero-modern {
  min-height: unset;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(66, 165, 245, 0.22),
      transparent 35%
    ),
    radial-gradient(circle at 5% 10%, rgba(76, 175, 80, 0.15), transparent 30%),
    var(--gradient-hero);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5.3vw, 4.15rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  color: var(--color-primary);
  font-style: italic;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-impact {
  position: absolute;
  left: -1rem;
  bottom: -1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: var(--color-text);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
}

.hero-impact i {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 118, 210, 0.15);
  color: var(--color-primary-dark);
}

.hero-impact p {
  margin: 0;
  line-height: 1.1;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.hero-impact strong {
  font-size: 1.1rem;
}

.card,
.value-card,
.sidebar-widget,
.law-section,
.pqr-type,
.component-card,
.subsidy-card,
.contrib-card,
.tool-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.modern-cards {
  gap: 1.25rem;
}

.service-card {
  text-align: left;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(46, 125, 50, 0.14);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card h3,
.tool-card h3 {
  color: var(--color-text);
}

.quick-route {
  background: var(--gradient-primary);
  color: #fff;
  padding: 2.5rem 0;
}

.quick-route-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.quick-route-wrap p {
  opacity: 0.84;
}

.quick-route-form {
  display: flex;
  gap: 0.5rem;
  width: min(520px, 100%);
}

.quick-route-form input {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.quick-route-form input:focus {
  outline: 3px solid rgba(16, 34, 22, 0.35);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: #fff;
}

.btn-outline {
  border-color: #c9dff7;
  color: var(--color-secondary);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  background: #eef6ff;
  color: var(--color-secondary-dark);
}

.page-header {
  color: #fff;
  text-align: left;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--gradient-primary) !important;
}

.page-header p {
  opacity: 0.88;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 1.2rem;
}

.content-main > article,
.content-main > .legal-content,
.pqr-form-section,
.intro-box,
.intro-tariff,
.service-components,
.tariff-tables,
.subsidies-section,
.channels-section,
.faq-section,
.commitment-section,
.response-times,
.tracking-section,
.rights-section,
.duties-section,
.procedures-section,
.municipality-grid,
.ccu-intro,
.table-wrap,
.document-categories,
.filters,
.certifications-grid,
.faq-grid {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.2vw, 1.7rem);
}

.content-main > article + article,
.content-main > article + section,
.content-main section + section,
.section .table-container,
.section .tariff-notes,
.section .response-card,
.section .tracking-form {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

table thead tr,
.coverage-table th,
.tariff-table th {
  background: #e9f7ed;
  color: var(--color-secondary);
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #edf3ee;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7e3db;
  background: #fff;
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.footer {
  background-color: #f8fbf8;
  background-image:
    linear-gradient(
      to bottom,
      rgba(248, 251, 248, 0.3) 0%,
      rgba(248, 251, 248, 0.18) 100%
    ),
    url("../../file.php?f=assets%2Fimg%2Fcesped.png");
  background-repeat: no-repeat, no-repeat;
  background-position:
    center top,
    top center;
  background-size:
    100% 100%,
    100% auto;
  background-attachment: scroll, scroll;
  width: 100%;
  color: #1f2937;
  margin-top: 0;
  padding-top: 2.8rem;
}

.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.footer-title {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-title h3 {
  color: #111827;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.footer-title p {
  color: #475569;
  margin: 0;
}

.footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: 75px;
  height: auto;
  display: block;
  filter: saturate(0.9);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-column h4 {
  color: #111827;
}

.footer-column a:not(.social-icon),
.footer-column p {
  color: #334155;
}

.footer-column a:not(.social-icon):hover {
  color: var(--color-primary);
}

.footer .footer-social .social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  text-decoration: none;
  flex-shrink: 0;
}

.footer .footer-social .social-icon:hover {
  background: var(--color-secondary);
  color: #fff;
}

.footer .footer-social .social-icon i {
  line-height: 1;
}

.footer-legal {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
  padding: 0.6rem 0;
  text-align: center;
}

.footer-bottom {
  position: relative;
  border-top: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  padding-bottom: 0;
}

.footer-bottom::before {
  content: none;
}

.footer-bottom::after {
  content: none;
}

.footer-bottom-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.footer-bottom-content,
.footer-legal-links a {
  color: #1f2937;
}

.footer-legal-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-shell {
    min-height: 72px;
  }

  .navbar-brand-text small {
    display: none;
  }

  .hero-grid,
  .quick-route-wrap,
  .quick-route-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-impact {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.ccu-hero {
  color: white;
  text-align: center;
  padding: clamp(3.2rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.ccu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(255, 255, 255, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 32%
    );
  pointer-events: none;
}

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

.ccu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.ccu-hero h1 {
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.ccu-hero-lead {
  max-width: 860px;
  margin: 0 auto var(--spacing-lg);
  opacity: 0.97;
}

.ccu-hero-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.ccu-hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  font-size: var(--font-size-sm);
}

.ccu-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.ccu-hero-actions .btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.ccu-hero-actions .btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.ccu-intro {
  background: linear-gradient(
    135deg,
    rgba(46, 125, 50, 0.08) 0%,
    rgba(25, 118, 210, 0.08) 100%
  );
  border: 1px solid rgba(46, 125, 50, 0.2);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-2xl);
}

.ccu-intro-head h2 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.ccu-intro-head p {
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  max-width: 900px;
}

.ccu-intro-actions {
  margin-bottom: var(--spacing-md);
}

.ccu-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.ccu-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.8rem;
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  background: rgba(255, 255, 255, 0.65);
}

.ccu-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.ccu-groups {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.ccu-group {
  background: white;
  border: 1px solid rgba(25, 118, 210, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ccu-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
}

.ccu-group-title {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
}

.ccu-group-title i {
  color: var(--color-secondary);
}

.ccu-group-count {
  margin-left: auto;
  font-size: var(--font-size-xs);
  background: rgba(25, 118, 210, 0.1);
  color: var(--color-secondary-dark);
  border: 1px solid rgba(25, 118, 210, 0.3);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.ccu-group-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.ccu-card {
  padding: var(--spacing-lg);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.75) 0%,
    rgba(255, 255, 255, 1) 45%
  );
}

.ccu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ccu-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.ccu-municipios {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.ccu-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.ccu-card .ccu-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ccu-hero {
    padding: var(--spacing-2xl) 0;
  }

  .ccu-hero-badge {
    font-size: var(--font-size-xs);
  }

  .ccu-intro {
    padding: var(--spacing-lg);
  }

  .ccu-group {
    padding: var(--spacing-lg);
  }

  .ccu-group-title {
    font-size: var(--font-size-xl);
  }

  .ccu-group-count {
    margin-left: 0;
  }
}

/* Aislamiento admin para evitar colisiones con estilos publicos */
body.admin-panel {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #f0f2f7;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

body.admin-panel * {
  box-sizing: border-box;
}

body.admin-panel.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.admin-panel .login-card,
body.admin-panel .form-card,
body.admin-panel .card,
body.admin-panel .table-card {
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

body.admin-panel .layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

body.admin-panel .sidebar {
  background: #0f172a;
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

body.admin-panel .main {
  padding: 28px 32px;
  overflow-x: hidden;
}

body.admin-panel .topbar h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

body.admin-panel .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

body.admin-panel .card {
  padding: 20px;
  text-align: left;
}

body.admin-panel .form-card {
  padding: 28px 32px;
  max-width: 1100px;
}

body.admin-panel .table-card {
  padding: 20px 24px;
}

body.admin-panel input,
body.admin-panel textarea,
body.admin-panel button,
body.admin-panel select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
}

body.admin-panel input:focus,
body.admin-panel textarea:focus,
body.admin-panel select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.admin-panel textarea {
  min-height: 120px;
  resize: vertical;
}

body.admin-panel label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

body.admin-panel button {
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  width: auto;
  min-width: 160px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

body.admin-panel .table {
  width: 100%;
  border-collapse: collapse;
}

body.admin-panel .table th,
body.admin-panel .table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
}

body.admin-panel .table thead th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 900px) {
  body.admin-panel .layout {
    grid-template-columns: 1fr;
  }
}
