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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-red: #cf2e2e;
  --brand-red-dark: #a82424;
  --brand-blue-dark: #1a2a3c;
  --white: #ffffff;
  --bg-soft: #f8fafc;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --radius-lg: 12px;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--text-main);
  line-height: 1.5;
}

.nav-bar {
  background: var(--white);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-red);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  color: var(--brand-blue-dark);
  font-size: 16px;
  font-weight: 700;
}

.logo-sub {
  color: var(--text-muted);
  font-size: 12px;
  display: block;
}

.nav-tag {
  background: #fff1f3;
  color: var(--brand-red);
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.hero {
  background: linear-gradient(120deg, var(--white) 0%, #fff5f5 100%);
  padding: 2.8rem 2rem 2.2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: #fff1f3;
  color: var(--brand-red);
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--brand-red);
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.7;
}

.main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
}

.about-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.about-block h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--brand-blue-dark);
}

.about-block p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.pill {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--brand-red);
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  transition: all 0.12s;
}

.tab:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.tab.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

.dl-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dl-section-header {
  background: #fff7f7;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-section-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.dl-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dl-list {
  padding: 0.2rem 0;
}

.dl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 1.25rem 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.dl-pagination[hidden] {
  display: none !important;
}

.dl-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #1d6fa4;
  background: var(--white);
  color: #1d6fa4;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.dl-pagination__nav:hover:not(:disabled) {
  background: rgba(29, 111, 164, 0.08);
  border-color: #105685;
  color: #105685;
}

.dl-pagination__nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.dl-pagination__status {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 118px;
  text-align: center;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.dl-item:last-child {
  border-bottom: none;
}

.dl-item:hover {
  background: #fff7f7;
}

.dl-arrow {
  width: 22px;
  height: 22px;
  border: 2px solid var(--brand-red);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.dl-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
}

.dl-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  width: 2px;
  height: 7px;
  background: var(--brand-red);
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-size: 1rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-item:hover .dl-name {
  color: var(--brand-red);
}

.dl-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dl-format {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 600;
  flex-shrink: 0;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overscroll-behavior: contain;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-file-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff1f3;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.modal-file-tag span {
  font-size: 1rem;
  color: var(--brand-red);
}

.modal-file-tag .tag-format {
  background: var(--brand-red);
  color: var(--white);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: var(--white);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.15);
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.privacy-row input[type="checkbox"] {
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-row p {
  font-size: 0.8rem;
  color: var(--color-text-secondary, var(--text-muted));
  line-height: 1.5;
}

.privacy-row a {
  color: var(--brand-red);
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--brand-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.15s;
}

.btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  opacity: 0.9;
}

.form-error {
  color: var(--brand-red);
  font-size: 12px;
  margin-top: 0.75rem;
  display: none;
}

.form-error.open {
  display: block;
}

.success-state {
  text-align: center;
  padding: 1.5rem 1rem;
  display: none;
}

.success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff1f3;
  border: 2px solid var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-check {
  width: 20px;
  height: 12px;
  border-left: 3px solid var(--brand-red);
  border-bottom: 3px solid var(--brand-red);
  transform: rotate(-45deg) translateY(-3px);
}

.success-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 0.5rem;
}

.success-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-dl-real,
.btn-submit-descarga {
  display: inline-block;
  text-decoration: none;
  padding: 10px 24px;
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease-in-out;
}

.btn-dl-real {
  background: var(--brand-red);
}

.btn-submit-descarga {
  background: var(--brand-blue-dark);
  margin-left: 6px;
}

.btn-dl-real:hover,
.btn-submit-descarga:hover {
  opacity: 0.9;
}

.footer {
  background: var(--brand-blue-dark);
  padding: 1.25rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.footer a {
  color: #fecdd3;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-block h2 {
    font-size: 1.6rem;
  }

  .dl-section-header h3 {
    font-size: 1.22rem;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 0.75rem 1rem;
  }

  .nav-tag {
    display: none;
  }

  .logo-image {
    height: 36px;
  }

  .hero {
    padding: 2rem 1rem 1.6rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .main {
    padding: 1rem;
  }

  .about-block {
    padding: 1.1rem;
  }

  .about-block h2 {
    font-size: 1.35rem;
  }

  .about-block p {
    font-size: 0.96rem;
  }

  .pill {
    font-size: 0.88rem;
    padding: 6px 10px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab {
    text-align: center;
    font-size: 0.9rem;
    padding: 8px;
  }

  .dl-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dl-section-header h3 {
    font-size: 1.05rem;
  }

  .dl-count {
    font-size: 0.78rem;
  }

  .dl-item {
    padding: 0.7rem 0.85rem;
    gap: 8px;
  }

  .dl-name {
    font-size: 0.92rem;
  }

  .dl-meta {
    font-size: 0.8rem;
  }

  .dl-format {
    font-size: 10px;
    padding: 2px 6px;
  }
}

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

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

  .btn-submit-descarga {
    margin-left: 0;
    margin-top: 8px;
  }
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background-tertiary: #f4f5f6;
  --color-background-primary: #ffffff;
  --color-background-secondary: #f8fafc;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-border-tertiary: #d7dce2;
  --color-border-secondary: #cbd5e1;
  --border-radius-lg: 12px;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
  line-height: 1.5;
}

.nav-bar {
  background: #111827;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: #1d6fa4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  color: #fff;
}

.logo-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  display: block;
}

.nav-tag {
  background: rgba(29, 111, 164, 0.18);
  color: #4fc3f7;
  border: 0.5px solid rgba(29, 111, 164, 0.4);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
}

.hero {
  background: #0d1b2a;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.hero-badge {
  display: inline-block;
  background: rgba(29, 111, 164, 0.18);
  color: #4fc3f7;
  border: 0.5px solid rgba(29, 111, 164, 0.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #4fc3f7;
}

.hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
}

.about-block {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.about-block h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.about-block p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 980px;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.pill {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  transition: all 0.12s;
}

.tab:hover {
  border-color: #1d6fa4;
  color: #4fc3f7;
}

.tab.active {
  background: rgba(29, 111, 164, 0.1);
  border-color: #1d6fa4;
  color: #4fc3f7;
}

.dl-section {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dl-section-header {
  background: var(--color-background-secondary);
  padding: 0.75rem 1.25rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-section-header h3 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-count {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.dl-list {
  padding: 0.25rem 0;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.25rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  cursor: pointer;
  transition: background 0.1s;
}

.dl-item:last-child {
  border-bottom: none;
}

.dl-item:hover {
  background: var(--color-background-secondary);
}

.dl-arrow {
  width: 22px;
  height: 22px;
  border: 2px solid #1d6fa4;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.dl-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #1d6fa4;
  border-bottom: 2px solid #1d6fa4;
}

.dl-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  width: 2px;
  height: 7px;
  background: #1d6fa4;
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-size: 1.15rem;
  color: #1d6fa4;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-item:hover .dl-name {
  text-decoration: underline;
}

.dl-meta {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.dl-format {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--color-background-primary);
  border-radius: var(--border-radius-lg);
  border: 0.5px solid var(--color-border-tertiary);
  padding: 1.75rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
}

.modal-file-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 111, 164, 0.08);
  border: 0.5px solid rgba(29, 111, 164, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.modal-file-tag span {
  font-size: 1rem;
  color: #1d6fa4;
}

.modal-file-tag .tag-format {
  background: #1d6fa4;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  padding: 8px 10px;
  border: 0.5px solid var(--color-border-secondary);
  border-radius: 6px;
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1d6fa4;
  box-shadow: 0 0 0 2px rgba(29, 111, 164, 0.12);
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.privacy-row input[type="checkbox"] {
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-row p {
  font-size: 0.9rem;
  color: var(--color-text-secondary, var(--text-muted));
  line-height: 1.5;
}

.privacy-row a {
  color: #1d6fa4;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #1d6fa4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.15s;
}

.btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  opacity: 0.88;
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 0.75rem;
  display: none;
}

.form-error.open {
  display: block;
}

.success-state {
  text-align: center;
  padding: 1.5rem 1rem;
  display: none;
}

.success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(29, 111, 164, 0.1);
  border: 2px solid #1d6fa4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-check {
  width: 20px;
  height: 12px;
  border-left: 3px solid #1d6fa4;
  border-bottom: 3px solid #1d6fa4;
  transform: rotate(-45deg) translateY(-3px);
}

.success-state h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.success-state p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-dl-real {
  padding: 10px 24px;
  background: #1d6fa4;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-submit-descarga {
  display: inline-block;
  text-decoration: none;
  padding: 10px 24px;
  background: #dc2626;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease-in-out;
}

.btn-submit-descarga:hover {
  opacity: 0.9;
}

.footer {
  background: #111827;
  padding: 1.75rem 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.footer a {
  color: rgba(79, 195, 247, 0.85);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2.5rem 2rem;
  align-items: start;
  margin-bottom: 1.35rem;
}

.footer-contact {
  margin-bottom: 0;
}

.footer-links {
  text-align: left;
}

.footer-links__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 0.7rem;
  letter-spacing: 0.01em;
}

.footer-links__row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.footer-links__row:hover {
  color: rgba(79, 195, 247, 0.98);
  text-decoration: underline;
}

.footer-links__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.footer-contact__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  text-align: left;
}

.footer-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  max-width: 26rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer-contact__text {
  text-align: left;
}

.footer-contact__text a {
  color: rgba(79, 195, 247, 0.95);
  text-decoration: none;
}

.footer-contact__text a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.25rem;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

/* Modal «¿Quiénes somos?» (footer) */
.modal--quienes {
  max-width: 800px;
  width: 100%;
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal--quienes {
    max-height: 100vh;
    margin: 0;
    width: 100%;
    border-radius: 0;
    padding: 1rem 0.85rem 1rem;
  }

  .modal--quienes .modal-header h3 {
    font-size: 1.4rem;
  }
}


.modal--quienes .modal-header {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.modal--quienes .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d6fa4;
  line-height: 1.2;
}

.quienes-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.quienes-card {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1rem;
}

.quienes-card:last-child {
  margin-bottom: 0;
}

.quienes-card__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.85rem;
}

.quienes-card__heading--accent {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #1d6fa4;
  margin: 1rem 0 0.4rem;
}

.quienes-card__heading--accent:first-child {
  margin-top: 0;
}

.quienes-card__heading--split {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.quienes-card__heading-sub {
  font-size: 0.95rem;
  font-weight: 700;
}

.quienes-card__lead {
  margin: 0 0 0.85rem;
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

.quienes-card__lead:last-of-type {
  margin-bottom: 0;
}

.quienes-card__row {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.quienes-card__row--img-right .quienes-card__text {
  flex: 1;
  min-width: 0;
}

.quienes-card__row--img-right .quienes-card__media {
  flex-shrink: 0;
}

.quienes-card__row--img-left .quienes-card__media {
  flex-shrink: 0;
}

.quienes-card__row--img-left .quienes-card__text {
  flex: 1;
  min-width: 0;
}

.quienes-card__text p {
  margin: 0 0 0.65rem;
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

.quienes-card__text p:last-child {
  margin-bottom: 0;
}

.quienes-card__media img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.quienes-card:first-child .quienes-card__media img {
  max-width: 100px;
}

.quienes-card__media--ptar img {
  max-width: 180px;
}

.quienes-valores__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2744;
  margin: 0 0 1rem;
  text-align: left;
}

.quienes-valores__layout {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 220px) 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
}

.quienes-valores__col {
  font-size: 12.5px;
  line-height: 1.45;
  color: #1e293b;
}

.quienes-valores__col p {
  margin: 0 0 0.75rem;
}

.quienes-valores__col p:last-child {
  margin-bottom: 0;
}

.quienes-valores__col--right {
  text-align: right;
}

.quienes-valores__graphic img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

.quienes-valores__c--red {
  color: #c62828;
  font-weight: 600;
}

.quienes-valores__c--blue {
  color: #1565c0;
  font-weight: 700;
}

.quienes-valores__c--gold {
  color: #b8860b;
  font-weight: 600;
}

.quienes-valores__c--grey {
  color: #546e7a;
}

.quienes-valores__c--purple {
  color: #6a1b9a;
  font-weight: 600;
}

.quienes-valores__c--orange {
  color: #e65100;
  font-weight: 600;
}

@media (max-width: 640px) {
  .footer {
    padding: 1.5rem 1rem 1.25rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-contact__list {
    max-width: none;
    font-size: 12.5px;
  }

  .quienes-card__row--img-right,
  .quienes-card__row--img-left {
    flex-direction: column;
    align-items: center;
  }

  .quienes-card__row--img-right .quienes-card__media,
  .quienes-card__row--img-left .quienes-card__media {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .quienes-card__row--img-left .quienes-card__media {
    order: -1;
  }

  .quienes-valores__layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .quienes-valores__col--right {
    text-align: left;
  }

  .quienes-valores__graphic {
    order: -1;
    margin-bottom: 0.25rem;
  }

  .quienes-valores__graphic img {
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .about-block h2 {
    font-size: 1.7rem;
  }

  .dl-section-header h3 {
    font-size: 1.38rem;
  }

  .about-block p,
  .dl-name {
    font-size: 1.02rem;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 2rem 1rem 1.6rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .main {
    padding: 1rem;
  }

  .about-block {
    padding: 1.1rem;
  }

  .about-block h2 {
    font-size: 1.45rem;
  }

  .about-block p {
    font-size: 0.98rem;
  }

  .pill {
    font-size: 0.92rem;
    padding: 6px 11px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab {
    text-align: center;
    font-size: 0.95rem;
    padding: 9px 8px;
  }

  .dl-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dl-section-header h3 {
    font-size: 1.12rem;
  }

  .dl-count {
    font-size: 0.82rem;
  }

  .dl-item {
    padding: 0.7rem 0.85rem;
    gap: 8px;
  }

  .dl-name {
    font-size: 0.95rem;
  }

  .dl-meta {
    font-size: 0.82rem;
  }

  .dl-format {
    font-size: 10px;
    padding: 2px 6px;
  }
}

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

  .hero h1 {
    font-size: 1.7rem;
  }

  .tabs {
    gap: 6px;
    grid-template-columns: 1fr;
  }
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background-tertiary: #f4f5f6;
  --color-background-primary: #ffffff;
  --color-background-secondary: #f8fafc;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-border-tertiary: #d7dce2;
  --color-border-secondary: #cbd5e1;
  --border-radius-lg: 12px;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
  line-height: 1.5;
}

.nav-bar {
  background: #111827;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: #1d6fa4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  color: #fff;
}

.logo-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  display: block;
}

.nav-tag {
  background: rgba(29, 111, 164, 0.18);
  color: #4fc3f7;
  border: 0.5px solid rgba(29, 111, 164, 0.4);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
}

.hero {
  background: #0d1b2a;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.hero-badge {
  display: inline-block;
  background: rgba(29, 111, 164, 0.18);
  color: #4fc3f7;
  border: 0.5px solid rgba(29, 111, 164, 0.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #4fc3f7;
}

.hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
}

/* About block */
.about-block {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.about-block h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.about-block p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 980px;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.pill {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

/* Category tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  transition: all 0.12s;
}

.tab:hover {
  border-color: #1d6fa4;
  color: #4fc3f7;
}

.tab.active {
  background: rgba(29, 111, 164, 0.1);
  border-color: #1d6fa4;
  color: #4fc3f7;
}

/* Downloads section — Pavco style */
.dl-section {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dl-section-header {
  background: var(--color-background-secondary);
  padding: 0.75rem 1.25rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-section-header h3 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-count {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.dl-list {
  padding: 0.25rem 0;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.25rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  cursor: pointer;
  transition: background 0.1s;
}

.dl-item:last-child {
  border-bottom: none;
}

.dl-item:hover {
  background: var(--color-background-secondary);
}

.dl-thumb {
  width: 100px;
  height: 110px;
  border-radius: 6px;
  border: 1px solid var(--color-border-tertiary);
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
  border-color: #1d6fa4;
}

.dl-thumb[src*="image_zip"] {
  object-fit: contain;
  padding: 6px;
}

.dl-thumb--placeholder {
  background: var(--color-background-secondary);
}

.dl-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Download arrow icon — pure CSS, no emoji */
.dl-arrow {
  width: 22px;
  height: 22px;
  border: 2px solid #1d6fa4;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.dl-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #1d6fa4;
  border-bottom: 2px solid #1d6fa4;
}

.dl-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  width: 2px;
  height: 7px;
  background: #1d6fa4;
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-size: 1.1rem;
  color: #1d6fa4;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-item:hover .dl-name {
  text-decoration: underline;
}

.dl-meta {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.dl-format {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--color-background-primary);
  border-radius: var(--border-radius-lg);
  border: 0.5px solid var(--color-border-tertiary);
  padding: 1.75rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 500px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
}

.modal-file-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 111, 164, 0.08);
  border: 0.5px solid rgba(29, 111, 164, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.modal-file-tag span {
  font-size: 1rem;
  color: #1d6fa4;
}

.modal-file-tag .tag-format {
  background: #1d6fa4;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  padding: 8px 10px;
  border: 0.5px solid var(--color-border-secondary);
  border-radius: 6px;
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1d6fa4;
  box-shadow: 0 0 0 2px rgba(29, 111, 164, 0.12);
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.privacy-row input[type="checkbox"] {
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-row p {
  font-size: 0.8rem;
  color: var(--color-text-secondary, var(--text-muted));
  line-height: 1.5;
}

.privacy-row a {
  color: #1d6fa4;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #1d6fa4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.15s;
}

.btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  opacity: 0.88;
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 0.75rem;
  display: none;
}

.form-error.open {
  display: block;
}

.success-state {
  text-align: center;
  padding: 1.5rem 1rem;
  display: none;
}

.success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(29, 111, 164, 0.1);
  border: 2px solid #1d6fa4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-check {
  width: 20px;
  height: 12px;
  border-left: 3px solid #1d6fa4;
  border-bottom: 3px solid #1d6fa4;
  transform: rotate(-45deg) translateY(-3px);
}

.success-state h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.success-state p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn-dl-real {
  padding: 10px 24px;
  background: #1d6fa4;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.footer {
  background: #111827;
  padding: 1.75rem 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.footer a {
  color: rgba(79, 195, 247, 0.85);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .about-block h2 {
    font-size: 1.7rem;
  }

  .dl-section-header h3 {
    font-size: 1.38rem;
  }

  .about-block p,
  .dl-name {
    font-size: 1.02rem;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 2rem 1rem 1.6rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .main {
    padding: 1rem;
  }

  .about-block {
    padding: 1.1rem;
  }

  .about-block h2 {
    font-size: 1.45rem;
  }

  .about-block p {
    font-size: 0.98rem;
  }

  .pill {
    font-size: 0.92rem;
    padding: 6px 11px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab {
    text-align: center;
    font-size: 0.95rem;
    padding: 9px 8px;
  }

  .dl-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dl-section-header h3 {
    font-size: 1.12rem;
  }

  .dl-count {
    font-size: 0.82rem;
  }

  .dl-item {
    padding: 0.7rem 0.85rem;
    gap: 8px;
  }

  .dl-name {
    font-size: 0.95rem;
  }

  .dl-meta {
    font-size: 0.82rem;
  }

  .dl-format {
    font-size: 10px;
    padding: 2px 6px;
  }
}

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

  .hero h1 {
    font-size: 1.7rem;
  }

  .tabs {
    gap: 6px;
    grid-template-columns: 1fr;
  }
}

/* login page */
body.bod-log {
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.login-logo img {
  height: 38px;
  width: auto;
}

.login-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.login-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 0.3rem;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.field input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.12);
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.btn-login:hover {
  opacity: 0.88;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.25rem;
}

.login-footer-links a {
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: none;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

.domain-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* admin page */
/* Super Admin — mismos colores que el sitio normal */
body.bod-admin {
  background: var(--bg-soft);
  overflow-x: hidden;
}

.admin-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.admin-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-name {
  font-size: 12px;
  color: #dfdfdf;
}

.admin-logout-link {
  background: #fff1f3;
  color: var(--brand-red);
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.admin-header {
  background: var(--brand-red);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border-left: 5px solid var(--brand-red-dark);
}

.admin-header h1 {
  margin: 0;
  font-size: 26px;
  color: #fff;
  font-weight: 700;
}

.admin-header .small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-top: 4px;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.admin-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Búsqueda global (tarjeta dedicada): barra unificada, chips y contador */
.admin-card--search .admin-global-search {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.admin-global-search__heading {
  margin: 0 0 0.65rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-global-search__row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 10px;
}

.admin-global-search__bar {
  flex: 0 0 60%;
  width: 60%;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  min-height: 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-global-search__bar:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.1);
}

.admin-global-search__loupe {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  color: #64748b;
}

.admin-global-search__input-zone {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding-right: 4px;
}

.admin-global-search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 10rem;
  max-width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 4px 10px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.admin-global-search-input::placeholder {
  color: #94a3b8;
}

.admin-global-search-input::-webkit-search-cancel-button {
  display: none;
}

.admin-card .admin-global-search__clear,
.admin-global-search__clear {
  flex: 0 0 5%;
  width: 5%;
  min-width: 22px;
  align-self: center;
  height: 28px;
  margin: 0 4px 0 0;
  padding: 0;
  border: 0 !important;
  outline: none;
  box-shadow: none;
  border-radius: 8px;
  background: transparent !important;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.admin-card .admin-global-search__clear:hover,
.admin-global-search__clear:hover {
  background: transparent !important;
  border: 0 !important;
  color: var(--brand-red);
  opacity: 1;
}

.admin-card .admin-global-search__clear:focus,
.admin-card .admin-global-search__clear:focus-visible,
.admin-global-search__clear:focus,
.admin-global-search__clear:focus-visible {
  outline: none;
  border: 0 !important;
  box-shadow: none;
}

.admin-global-search__divider {
  display: none;
}

.admin-global-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 15%;
  width: 15%;
  align-self: center;
  height: 39px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-global-search__submit:hover {
  background: #fff7f7;
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.admin-global-search__submit-loupe {
  display: flex;
  color: #64748b;
  line-height: 0;
}

.admin-global-search__submit-loupe svg {
  width: 12px;
  height: 12px;
  color: var(--brand-red);
}

.admin-global-search__submit:hover .admin-global-search__submit-loupe {
  color: var(--brand-red);
}

.admin-global-search__chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.admin-card__sublabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin: 0 0 8px;
}

.admin-card__divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 14px 0 16px;
}

.admin-section-hidden {
  display: none !important;
}

.admin-card .admin-chip,
.admin-section-nav .admin-chip,
button.admin-chip,
.admin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db !important;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-card .admin-chip:hover,
.admin-section-nav .admin-chip:hover,
button.admin-chip:hover,
.admin-chip:hover {
  border-color: var(--brand-red, #cd122d) !important;
  color: var(--brand-red, #cd122d);
  background: #fff;
}

.admin-card .admin-chip.is-active,
.admin-section-nav .admin-chip.is-active,
button.admin-chip.is-active,
.admin-chip.is-active {
  border-color: var(--brand-red, #cd122d) !important;
  color: var(--brand-red, #cd122d);
  background: #fff;
  font-weight: 600;
}

@media (max-width: 480px) {
  .admin-section-nav {
    gap: 6px;
    padding: 0;
  }

  .admin-card .admin-chip,
  .admin-section-nav .admin-chip,
  button.admin-chip,
  .admin-chip {
    flex: 1 1 100%;
    width: 100%;
    font-size: 12px;
    height: 32px;
    padding: 0 10px;
  }
}

.admin-global-search__counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-global-search__counter-icon {
  display: flex;
  color: #94a3b8;
}

.admin-global-search__counter-num {
  display: inline-block;
  min-width: 1.5rem;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
}

.admin-table tr.admin-global-filter-hidden {
  display: none !important;
}

.admin-table tr.admin-pagination-hidden {
  display: none !important;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.admin-pagination[hidden] {
  display: none !important;
}

.admin-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 30px;
  max-width: none;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--brand-red, #cd122d);
  background: #fff;
  color: var(--brand-red, #cd122d);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.admin-pagination__nav:hover:not(:disabled) {
  background: rgba(205, 18, 45, 0.06);
}

.admin-pagination__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-pagination__status {
  font-size: 12px;
  color: #475569;
  min-width: 108px;
  text-align: center;
}

.admin-table tr.js-admin-no-match td {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem 0.75rem;
}

@media (max-width: 640px) {
  .admin-global-search__row {
    flex-wrap: wrap;
  }

  .admin-global-search__bar {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .admin-global-search__input-zone {
    min-width: 0;
    flex: 1 1 0%;
  }

  .admin-global-search-input {
    min-width: 0;
  }

  .admin-global-search__submit {
    flex: 0 0 auto;
    width: auto;
    align-self: flex-start;
  }
}

.admin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.full {
  grid-column: 1 / -1;
}

.admin-card label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.admin-card input:not([type="file"]):not(.admin-global-search-input),
.admin-card select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: var(--white);
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.admin-card input:not([type="file"]):not(.admin-global-search-input):focus,
.admin-card select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.12);
}

.admin-file-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-file-field--compact {
  gap: 4px;
  margin-top: 8px;
}

.admin-file-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}

.admin-file-input:hover {
  background: #11182709;

}



.admin-file-input::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #111827;
  font-weight: 600;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-file-input::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #b9bdc2;
  font-weight: 600;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  background: rgba(105, 104, 104, 0.11);
  color: #111827;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-file-input:hover::file-selector-button,
.admin-file-input:hover::-webkit-file-upload-button {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

.admin-file-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-all;
}

.admin-card button:not(.admin-cat-dropdown__delete):not(.admin-cat-dropdown__toggle):not(.admin-modal__btn):not(.admin-modal__close):not(.admin-pagination__nav) {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--brand-red);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  background: #ffffff;
  color: var(--brand-red);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.admin-card button:not(.admin-cat-dropdown__delete):not(.admin-cat-dropdown__toggle):not(.admin-modal__btn):not(.admin-modal__close):not(.admin-pagination__nav):hover {
  opacity: 0.88;
  color: var(--brand-red);
}

.btn-secondary {
  background: #ffffff !important;
  border: 1px solid #2563eb !important;
  color: #2563eb !important;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.075) !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
  opacity: 1 !important;
}

.btn-warning {
  background: #ffffff !important;
  border: 1px solid var(--brand-red) !important;
  color: var(--brand-red) !important;
}

.btn-warning:hover {
  background: rgba(205, 18, 45, 0.075) !important;
  border-color: var(--brand-red) !important;
  color: var(--brand-red) !important;
  opacity: 1 !important;
}

.admin-card .admin-btn-save-product:hover {
  background: rgba(205, 18, 45, 0.075) !important;
  border-color: var(--brand-red) !important;
  color: var(--brand-red) !important;
  opacity: 1 !important;
}

.btn-ok {
  background: #ffffff !important;
  border: 1px solid rgb(22, 101, 52) !important;
  color: rgb(22, 101, 52) !important;
}

.btn-ok:hover {
  background: rgba(22, 101, 52, 0.075) !important;
  border-color: rgb(22, 101, 52) !important;
  color: rgb(22, 101, 52) !important;
  opacity: 1 !important;
}

.btn-danger {
  background: #ffffff !important;
  border: 1px solid rgb(205, 18, 46) !important;
  color: var(--brand-red) !important;
}

.btn-danger:hover {
  background: rgba(205, 18, 45, 0.075) !important;
  border-color: var(--brand-red) !important;
  color: var(--brand-red) !important;
  opacity: 1 !important;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.confirm-modal.is-open {
  display: flex;
}

.confirm-modal-box {
  width: min(100%, 460px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  padding: 22px;
}

.confirm-modal-box h3 {
  margin: 0 0 10px;
  color: var(--brand-blue-dark);
  font-size: 20px;
}

.confirm-modal-box p {
  margin: 0 0 18px;
  color: var(--text-main);
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-modal-actions button {
  width: auto;
  min-width: 145px;
  padding: 10px 14px;
}

.msg {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  transition: opacity 0.35s ease, transform 0.35s ease, margin 0.35s ease, padding 0.35s ease, max-height 0.35s ease, border-width 0.35s ease;
}

.msg.ok {
  background: #dcfce7;
  color: rgb(33, 99, 59);
  border: 1px solid #86efac;
}

.msg.error {
  background: #fee2e2;
  color: rgb(138, 33, 33);
  border: 1px solid #fca5a5;
}

.msg.msg--hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.admin-table th {
  background: #fff7f7;
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:hover td {
  background: #fff7f7;
}

.admin-table select,
.admin-table input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: var(--white);
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.admin-table select:focus,
.admin-table input[type="text"]:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.12);
}

.admin-inline-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-inline-edit .btn-secondary {
  width: 100%;
}

.admin-product-thumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  background: #fff;
}

.admin-table .admin-file-input {
  font-size: 12px;
  padding: 5px 8px;
}

.admin-table .admin-file-input::file-selector-button,
.admin-table .admin-file-input::-webkit-file-upload-button {
  padding: 6px 10px;
  font-size: 11px;
}

.admin-table .admin-file-hint {
  font-size: 10px;
}

.opt-new-cat,
select.js-category-select option.opt-new-cat {
  color: var(--brand-red);
  font-weight: 600;
}

select.js-category-select option.opt-cat-sep {
  color: #94a3b8;
  font-size: 4px;
  line-height: 0.5;
}

/* Dropdown personalizado de categorías */
.admin-cat-dropdown-wrap {
  position: relative;
}

.admin-cat-dropdown {
  position: relative;
}

.admin-cat-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: var(--white, #fff);
  color: var(--text-main, #334155);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.admin-cat-dropdown__toggle:hover,
.admin-cat-dropdown__toggle:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148,163,184,0.15);
}

.admin-cat-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.admin-cat-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background 0.1s;
}

.admin-cat-dropdown__item:hover {
  background: #f1f5f9 !important;
}

.admin-cat-dropdown__item.is-selected {
  background: #eff6ff;
  font-weight: 600;
}

.admin-cat-dropdown__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cat-dropdown__name--add {
  color: var(--brand-red);
  font-weight: 600;
}

.admin-cat-dropdown__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  border: 1.5px solid var(--brand-red, #cd122d);
  background: #fff;
  color: var(--brand-red, #cd122d);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  transition: color 0.15s, background 0.15s;
}

.admin-cat-dropdown__delete:hover {
  color: #fff;
  background: var(--brand-red, #cd122d);
}

.admin-cat-dropdown__sep {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 8px;
}

/* Modales flotantes del panel admin (añadir producto / eliminar definitivamente) */
.admin-modal .admin-modal__box {
  width: min(100%, 440px);
  padding: 28px 32px 26px;
  border-radius: 14px;
  border: 1px solid #e8eaef;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.admin-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-modal .admin-modal__title {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.admin-modal__close {
  flex-shrink: 0;
  margin: -4px -6px 0 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, color 0.15s;
}

.admin-modal__close:hover {
  background: #f1f5f9;
  color: var(--brand-blue-dark);
}

.admin-modal .admin-modal__message {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.admin-modal__field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.admin-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-modal__input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.admin-modal__input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.admin-modal__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.admin-modal__error {
  margin: 10px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  line-height: 1.4;
  color: #b91c1c;
}

.admin-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 4px;
}

.admin-modal .admin-modal__inline-form {
  margin: 0;
  display: inline-flex;
}

.admin-modal .admin-modal__btn-cancel {
  width: auto;
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-modal .admin-modal__btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.admin-modal .admin-modal__btn-primary {
  width: auto;
  min-width: 148px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--brand-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.admin-modal .admin-modal__btn-primary:hover {
  opacity: 0.9;
}

.admin-modal .admin-modal__btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-modal .admin-modal__btn-danger {
  width: auto;
  min-width: 148px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: rgb(175, 52, 52);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.admin-modal .admin-modal__btn-danger:hover {
  opacity: 0.92;
  background: rgb(155, 45, 45);
}

.actions {
  display: flex;
  gap: 6px;
}

.actions form {
  margin: 0;
  flex: 1;
}

/* Productos activos — columna Acciones: evita que “Mover a papelera” se parta en móvil */
.admin-th-actions,
.admin-td-actions {
  min-width: 9.75rem;
  width: 1%;
  vertical-align: middle;
}

.actions.actions--single {
  flex-direction: row;
}

.admin-td-actions .btn-move-trash {
  white-space: nowrap;
}

.trash-actions-cell {
  min-width: 156px;
  max-width: 198px;
  width: 12%;
  vertical-align: middle;
}

.actions.actions-trash {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
}

.actions.actions-trash form {
  flex: 0 0 auto;
  width: 100%;
}

.actions.actions-trash > .btn-danger {
  flex: 0 0 auto;
  width: 100%;
}

.actions.actions-trash .btn-ok,
.actions.actions-trash .btn-danger {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.small {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  body.bod-admin .nav-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  body.bod-admin .logo-area {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.bod-admin .logo-image {
    height: 36px;
  }

  body.bod-admin .admin-user-area {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    order: 2;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.bod-admin .admin-user-name {
    font-size: 14px;
    max-width: calc(100% - 130px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.bod-admin .admin-logout-link {
    flex-shrink: 0;
    padding: 6px 12px;
  }

  .admin-wrap {
    padding: 12px;
  }

  .admin-card {
    padding: 14px;
  }

  .admin-header {
    padding: 14px 16px;
  }

  .admin-header h1 {
    font-size: 22px;
  }

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

  .actions {
    flex-direction: column;
  }

  .actions.actions--single {
    flex-direction: row;
  }

  .admin-td-actions .btn-move-trash {
    font-size: 11px;
    padding: 8px 10px;
  }

  .actions.actions-trash { flex-direction: column; flex-wrap: nowrap; }

  .admin-table {
    min-width: 760px;
  }
}

@media (max-width: 420px) {
  .admin-wrap {
    padding: 10px;
  }

  .admin-card {
    padding: 12px;
  }

  .admin-header h1 {
    font-size: 20px;
  }
}

/* forgot password page */
body.bod-forgot {
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 0.3rem;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.field input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.12);
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.btn-login:hover {
  opacity: 0.88;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.25rem;
}

.login-footer-links a {
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: none;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

/* reset password page */
body.bod-reset {
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 0.3rem;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.field input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(205, 18, 45, 0.12);
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.btn-login:hover {
  opacity: 0.88;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.25rem;
}

.login-footer-links a {
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: none;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

.password-rules {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.6;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.password-rules strong {
  color: var(--brand-blue-dark);
}

/* Tarjeta adicional "¿Quiénes somos?" en home */
.about-block--quienes {
  border-left-width: 0;
}

.about-block__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 1.35rem;
  align-items: center;
}

.about-block__text p {
  margin-bottom: 0.8rem;
}

.about-block__text p:last-of-type {
  margin-bottom: 0;
}

.about-block__media {
  display: flex;
  justify-content: flex-end;
}

.about-block__media img {
  max-width: 100%;
  width: min(150px, 100%);
  height: auto;
  border-radius: 12px;
}

.about-block__link {
  margin-top: 1rem;
  border: none;
  background: transparent;
  color: #1d6fa4;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-block__link:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .about-block__row {
    grid-template-columns: 1fr;
  }

  .about-block__media {
    justify-content: center;
  }
}

.footer-links__title--sub {
  margin-top: 1.1rem;
}

.download-form-intro {
  font-size: 1rem;
  color: var(--color-text-secondary, var(--text-muted));
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Aviso temporal tras registro y descarga automática */
.download-toast {
  position: fixed;
  left: 50%;
  top: 1.5rem;
  bottom: auto;
  transform: translateX(-50%) translateY(-120%);
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.85rem 1.15rem;
  background: #22304e;
  color: #f9fafb;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 10px;
  box-shadow: 0 10px 40px #22304e;
  z-index: 120;
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}

.download-toast.download-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Buscador en la sección de descargas */
.dl-search-wrap {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 1.25rem 1rem;
  padding: 0.85rem 1rem;
  background: #fdf2f2;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 10px;
  box-sizing: border-box;
}

.dl-search-field {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
  background: #fff;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dl-search-field:focus-within {
  border-color: #7eb8dc;
  box-shadow: 0 0 0 3px rgba(122, 184, 220, 0.35);
}

.dl-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.55rem;
  color: #7c8f9d;
}

.dl-search-icon svg {
  display: block;
}

.dl-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.55rem 0.75rem 0.55rem 0.45rem;
  font-size: 0.95rem;
  color: #344756;
  min-height: 44px;
  box-sizing: border-box;
}

.dl-search-input::placeholder {
  color: #8a9bab;
}

.dl-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.dl-search-btn {
  flex: 0 0 auto;
  align-self: stretch;
  border: 1px solid #1d6fa4;
  background: #1d6fa4;
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dl-search-btn:hover {
  background: #105685;
  border-color: #1d6fa4;
}

.dl-search-btn:active {
  box-shadow: inset 0 2px 4px rgba(47, 94, 126, 0.15);
}

.dl-search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 184, 220, 0.45);
}

.dl-item--empty {
  cursor: default;
}

.dl-item--empty:hover {
  background: transparent;
}

.dl-item--empty .dl-name {
  color: var(--color-text-secondary, #6b7280);
  font-weight: 500;
}

@media (max-width: 640px) {
  .dl-search-wrap {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 8px;
    background: transparent;
    border: none;
  }

  .dl-search-field {
    flex: 1 1 100%;
    min-height: 40px;
    border-radius: 20px;
    padding-left: 0.5rem;
  }

  .dl-search-btn {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }
}

/* ── Modal de confirmación / alerta (admin) ── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: adminModalFadeIn 0.18s ease;
}

@keyframes adminModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes adminModalSlideIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-overlay > .admin-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  animation: adminModalSlideIn 0.22s ease;
}

.admin-modal-overlay .admin-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.admin-modal-overlay .admin-modal__close:hover {
  color: #334155;
  background: #f1f5f9;
}

.admin-modal-overlay .admin-modal__icon {
  margin-bottom: 14px;
}

.admin-modal-overlay .admin-modal__icon svg {
  width: 48px;
  height: 48px;
}

.admin-modal-overlay .admin-modal__icon--warning svg {
  color: #f59e0b;
}

.admin-modal-overlay .admin-modal__icon--error svg {
  color: var(--brand-red, #cd122d);
}

.admin-modal-overlay .admin-modal__icon--success svg {
  color: #22c55e;
}

.admin-modal-overlay .admin-modal__message {
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 22px;
}

.admin-modal-overlay .admin-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.admin-modal__btn {
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-modal__btn--cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.admin-modal__btn--cancel:hover {
  background: #e2e8f0;
}

.admin-modal__btn--confirm {
  background: var(--brand-red, #cd122d);
  color: #fff;
  border: 1px solid var(--brand-red, #cd122d);
}

.admin-modal__btn--confirm:hover {
  opacity: 0.88;
}

.admin-modal__btn--ok {
  background: var(--brand-red, #cd122d);
  color: #fff;
  border: 1px solid var(--brand-red, #cd122d);
  min-width: 100px;
}

.admin-modal__btn--ok:hover {
  opacity: 0.88;
}

/* ═══ Modal de registro / descarga (library) — diseño dedicado ═══ */
.modal.modal--quienes.modal--download {
  padding: 0;
  max-width: min(800px, calc(100vw - 1.5rem));
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(15, 23, 42, 0.22);
}

.modal--download .modal-header--download {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 1.25rem 1.4rem 1.4rem;
  background: linear-gradient(135deg, #1a6fa8 0%, #0c4a6e 52%, #0b3d5c 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal--download .modal-header-download__main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.modal-download-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-download-badge svg {
  display: block;
}

.modal--download .modal-header-download__text {
  min-width: 0;
}

.modal--download .modal-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
  margin: 0 0 0.35rem;
}

.modal--download .modal-header h3#form-dialog-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.modal--download .modal-header__kicker {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.88);
  margin: 0;
}

.modal--download .modal-close--download {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modal--download .modal-close--download:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.modal--download .quienes-modal__body--download {
  padding: 1.35rem 1.4rem 1.55rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 28%);
}

.modal--download .download-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modal--download .download-file-chip #modal-product-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.modal--download .download-file-chip .tag-format {
  background: linear-gradient(135deg, #1a6fa8, #0c4a6e);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
}

.modal--download .download-form-intro {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.1rem;
  line-height: 1.55;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #334155;
}

.modal--download .download-form-sections {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.modal--download .download-form-section {
  margin: 0;
}

.modal--download .download-form-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #64748b;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal--download .download-form-section__title--legal {
  border-bottom-color: #cbd5e1;
}

.modal--download .form-grid--download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.modal--download .form-group.full {
  grid-column: 1 / -1;
}

.modal--download .form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-transform: none;
  letter-spacing: normal;
}

.modal--download .form-group input,
.modal--download .form-group select {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.92rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.modal--download .form-group input:hover,
.modal--download .form-group select:hover {
  border-color: #cbd5e1;
}

.modal--download .form-group input:focus,
.modal--download .form-group select:focus {
  outline: none;
  background: #fff;
  border-color: #1a6fa8;
  box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.2);
}

.modal--download .privacy-row--download {
  margin: 0;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal--download .privacy-row--download:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(26, 111, 168, 0.08);
}

.modal--download .privacy-row--download input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a6fa8;
  margin-top: 2px;
}

.modal--download .privacy-row--download p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
}

.modal--download .privacy-row--download a {
  color: #0c4a6e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal--download .form-error {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.modal--download .form-error.open {
  display: block;
}

.modal--download .btn-submit--download {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #1d6fa4 0%, #1d6fa4 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px #1d6fa4;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.modal--download .btn-submit--download:not(:disabled):hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #0b3d5c;
}

.modal--download .btn-submit--download:active:not(:disabled) {
  transform: translateY(0);
}

.modal--download .btn-submit--download:disabled {
  opacity: 0.4;
  box-shadow: none;
  transform: none;
}

.modal--download .btn-submit__icon {
  display: inline-flex;
  opacity: 0.95;
}

@media (max-width: 520px) {
  .modal--download .form-grid--download {
    grid-template-columns: 1fr;
  }

  .modal--download .modal-header--download {
    padding: 1.1rem 1rem 1.15rem 1.1rem;
  }

  .modal--download .modal-download-badge {
    width: 40px;
    height: 40px;
  }

  .modal--download .modal-header h3#form-dialog-title {
    font-size: 1.2rem;
  }
}

/* Ubicación en formulario de descarga (cascada país → depto → ciudad) */
.modal--download .location-hint {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0.9rem;
  line-height: 1.55;
}

.modal--download .location-hint[hidden] {
  display: none !important;
}

.modal--download .form-label-static {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.modal--download .location-slot select,
.modal--download .location-slot input {
  width: 100%;
}

.modal--download .location-cascade-row {
  margin-top: 0.35rem;
}

/* ═══ Vista pública — Identidad Induma (azul #1a2a3c · rojo #cf2e2e · blanco) ═══ */
body.bod-public {
  --brand-blue: #1a2a3c;
  --brand-red: #cf2e2e;
  --brand-red-dark: #a82424;
  --brand-red-light: #fdf2f2;
  --brand-red-muted: rgba(207, 46, 46, 0.12);
  --brand-red-border: rgba(207, 46, 46, 0.32);
}

body.bod-public .nav-bar {
  background: linear-gradient(145deg, var(--brand-red) 0%, #243547 80%, var(--brand-blue) 100%);
}

body.bod-public .logo-text {
  color: #fff;
}

body.bod-public .logo-sub {
  color: rgba(255, 255, 255, 0.72);
}

body.bod-public .hero {
  background: linear-gradient(145deg, var(--brand-red) 0%, #243547 48%, var(--brand-blue) 100%);
  border-bottom: 4px solid var(--brand-red);
}

body.bod-public .hero-badge {
  background: rgba(207, 46, 46, 0.22);
  color: #fff;
  border: 1px solid rgba(207, 46, 46, 0.55);
}

body.bod-public .hero h1 {
  color: #fff;
}

body.bod-public .hero h1 span {
  color: var(--brand-red);
}

body.bod-public .hero p {
  color: rgba(255, 255, 255, 0.82);
}

body.bod-public .about-block {
  border-left: 4px solid var(--brand-red);
  border-color: var(--color-border-tertiary, #e5e7eb);
  border-left-color: var(--brand-red);
}

body.bod-public .about-block h2 {
  color: var(--brand-blue);
}

body.bod-public .about-block__link {
  color: var(--brand-red);
}

body.bod-public .about-block__link:hover {
  color: var(--brand-red-dark);
}

body.bod-public .tab:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

body.bod-public .tab.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

body.bod-public .dl-section {
  border-top: 3px solid var(--brand-red);
}

body.bod-public .dl-section-header {
  background: var(--brand-red-light);
  border-bottom: 1px solid var(--brand-red-border);
}

body.bod-public .dl-section-header h3 {
  color: var(--brand-blue);
}

body.bod-public .dl-search-field:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.18);
}

body.bod-public .dl-search-btn {
  background: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.bod-public .dl-search-btn:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

body.bod-public .dl-search-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.35);
}

body.bod-public .dl-item:hover {
  background: var(--brand-red-light);
}

body.bod-public .dl-arrow {
  border-color: var(--brand-red);
}

body.bod-public .dl-arrow::before {
  border-right-color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

body.bod-public .dl-arrow::after {
  background: var(--brand-red);
}

body.bod-public .dl-name {
  color: var(--brand-blue);
}

body.bod-public .dl-item:hover .dl-name {
  color: var(--brand-red);
  text-decoration: none;
}

body.bod-public .dl-format {
  background: var(--brand-red-light);
  border: 1px solid var(--brand-red-border);
  color: var(--brand-red);
  font-weight: 600;
}

body.bod-public .dl-thumb {
  border-color: #cf2e2e61;
}

body.bod-public .dl-pagination__nav {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

body.bod-public .dl-pagination__nav:hover:not(:disabled) {
  background: var(--brand-red-muted);
  border-color: var(--brand-red-dark);
  color: var(--brand-red-dark);
}

body.bod-public .footer {
  background: var(--brand-blue);
  border-top: 4px solid var(--brand-red);
}

body.bod-public .footer a,
body.bod-public .footer-contact__text a {
  color: #fca5a5;
}

body.bod-public .footer a:hover,
body.bod-public .footer-contact__text a:hover {
  color: #fff;
}

body.bod-public .footer-links__row:hover {
  color: #fecaca;
}

body.bod-public .footer-links__row:hover .footer-links__icon {
  color: var(--brand-red);
}

body.bod-public .modal--quienes .modal-header h3 {
  color: var(--brand-blue);
}

body.bod-public .modal--download .modal-header--download {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #243547 55%, var(--brand-red) 100%);
}

body.bod-public .modal--download .download-file-chip .tag-format {
  background: var(--brand-red);
}

body.bod-public .modal--download .download-form-intro {
  background: var(--brand-red-light);
  border-color: var(--brand-red-border);
  color: var(--brand-blue);
}

body.bod-public .modal--download .form-group input:focus,
body.bod-public .modal--download .form-group select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.18);
}

body.bod-public .modal--download .privacy-row--download {
  border-color: var(--brand-red-border);
  background: linear-gradient(135deg, var(--brand-red-light) 0%, #fff 100%);
}

body.bod-public .modal--download .privacy-row--download:hover {
  border-color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(207, 46, 46, 0.1);
}

body.bod-public .modal--download .privacy-row--download input[type="checkbox"] {
  accent-color: var(--brand-red);
}

body.bod-public .modal--download .privacy-row--download a {
  color: var(--brand-red);
}

body.bod-public .modal--download .btn-submit--download {
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-color: var(--brand-red-dark);
  box-shadow: 0 4px 14px rgba(207, 46, 46, 0.35);
}

body.bod-public .modal--download .btn-submit--download:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(207, 46, 46, 0.45);
}

body.bod-public .btn-submit,
body.bod-public .btn-dl-real {
  background: var(--brand-red);
}

body.bod-public .btn-submit-descarga {
  background: var(--brand-blue);
}

body.bod-public .form-group input:focus,
body.bod-public .form-group select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(207, 46, 46, 0.15);
}

body.bod-public .privacy-row a {
  color: var(--brand-red);
}

body.bod-public .success-circle {
  background: var(--brand-red-light);
  border-color: var(--brand-red);
}

body.bod-public .success-check {
  border-left-color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

body.bod-public .modal-file-tag {
  background: var(--brand-red-light);
  border-color: var(--brand-red-border);
}

body.bod-public .modal-file-tag span {
  color: var(--brand-red);
}

body.bod-public .modal-file-tag .tag-format {
  background: var(--brand-red);
}

body.bod-public .download-toast {
  background: var(--brand-blue);
  border-top: 3px solid var(--brand-red);
  box-shadow: 0 10px 40px rgba(26, 42, 60, 0.45);
}

body.bod-public .about-block--quienes {
  border-top: 4px solid var(--brand-red);
  border-left-width: 0;
}

body.bod-public .about-block--quienes h2 {
  color: var(--brand-blue);
}

body.bod-public .about-block--quienes h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand-red);
  margin-top: 0.45rem;
  border-radius: 2px;
}

body.bod-public .modal--quienes .modal-header h3 {
  color: var(--brand-blue);
}

body.bod-public .quienes-card__heading--accent {
  color: var(--brand-red);
}

body.bod-public .quienes-valores__title {
  color: var(--brand-blue);
}

body.bod-public .quienes-valores__c--red {
  color: var(--brand-red);
}

body.bod-public .quienes-valores__c--blue {
  color: var(--brand-blue);
}