/* === CALZADO DE SEGURIDAD — Industrial Dark Theme === */
/* CSS Variables */
:root {
  --bg-primary: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #242836;
  --bg-input: #242836;
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.1);
  --success: #22c55e;
  --danger: #ef4444;
  --border: #2a2d3a;
  --border-light: #3a3d4a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --max-width: 1200px;
  --nav-height: 64px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === NAVIGATION === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0a0c12;
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg-primary) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO === */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #1a1510 0%, var(--bg-primary) 100%);
  border-bottom: 3px solid var(--accent);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === CTA BUTTONS === */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  text-align: center;
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.cta-btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* === TRUST BAR === */
.trust-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trust-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

/* === SECTION === */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 3px solid var(--accent);
  transition: all 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Two-column grid */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Four-column grid */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === CONTENT AREA === */
.content-area {
  padding: 60px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  align-self: start;
}

.sidebar-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.sidebar-block h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: var(--text-muted);
  margin: 0 8px;
}

.breadcrumbs .current {
  color: var(--text-secondary);
}

/* === TOC (Table of Contents) === */
.toc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.toc h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s;
}

.toc a:hover,
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc .toc-h3 {
  padding-left: 24px;
}

/* === ARTICLE CONTENT === */
.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article ul, .article ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article strong {
  color: var(--text-primary);
}

.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === TABLE === */
.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.styled-table thead {
  background: var(--accent);
}

.styled-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--bg-primary);
  font-size: 0.9rem;
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.styled-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

/* === FAQ ACCORDION === */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-child details[open] {
  /* First item auto-open via JS */
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  border-left: 3px solid var(--accent);
}

.faq-item summary:hover {
  background: var(--bg-card-hover);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item details[open] summary::after {
  content: '−';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 16px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #1a1510, #2a1d08);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.cta-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Banner ad wrapper */
.banner-wrapper {
  text-align: center;
  margin: 32px 0;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.banner-wrapper img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* === HOW IT WORKS / STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.step-item {
  text-align: center;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* === COMPARISON TABLE / BLOCKS === */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin: 32px 0;
  align-items: start;
}

.comparison-col {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.comparison-col h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.cross-list li::before {
  content: '✗';
  color: var(--danger);
}

/* === EVIDENCE NOTES === */
.evidence-notes {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.9rem;
}

.evidence-notes h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.evidence-notes p {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.evidence-notes strong {
  color: var(--text-primary);
}

/* === RELATED PAGES === */
.related-pages {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.related-pages h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.related-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.related-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* === SIZE CALCULATOR === */
.size-calc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  border: 1px solid var(--border);
}

.size-calc h3 {
  margin-bottom: 20px;
  color: var(--accent);
}

.size-calc label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.size-calc input[type="number"],
.size-calc select {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.size-calc input:focus,
.size-calc select:focus {
  outline: none;
  border-color: var(--accent);
}

.size-calc button {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.size-calc button:hover {
  background: var(--accent-hover);
}

.size-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: none;
}

.size-result.visible {
  display: block;
}

.size-result p {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.size-result .size-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* === PUBLISH INFO / META === */
.publish-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background: #0a0c12;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #0a0c12;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .comparison-block {
    grid-template-columns: 1fr;
  }
  .comparison-vs {
    padding: 12px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cards-grid,
  .cards-grid-2,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .cta-btn, .cta-btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .section {
    padding: 40px 0;
  }
  .article h2 {
    font-size: 1.3rem;
  }
  .cta-banner {
    padding: 24px;
  }
}

/* === PRINT === */
@media print {
  .navbar,
  .nav-toggle,
  .footer,
  .cta-btn,
  .cta-btn-secondary,
  .cta-banner,
  .banner-wrapper,
  .content-sidebar,
  .toc,
  .trust-bar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.5;
  }
  .hero {
    background: #f5f5f5;
    border-bottom: 2px solid #333;
    padding: 20px 0;
  }
  .hero h1, .hero h1 span {
    color: #000;
    font-size: 18pt;
  }
  .hero-subtitle {
    color: #333;
  }
  .article h2 {
    color: #000;
    border-bottom: 1px solid #999;
  }
  .article h3 {
    color: #333;
  }
  .article p, .article li {
    color: #000;
  }
  .section {
    padding: 20px 0;
  }
  .card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  .card h3, .card p {
    color: #000;
  }
  .faq-item {
    background: #f9f9f9;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .faq-item summary {
    color: #000;
    font-weight: bold;
  }
  .faq-answer {
    color: #333;
  }
  .styled-table thead {
    background: #e0e0e0;
  }
  .styled-table th {
    color: #000;
  }
  .styled-table td {
    color: #333;
    border-bottom: 1px solid #ccc;
  }
  .evidence-notes {
    background: #f5f5f5;
    border-left: 3px solid #999;
  }
  .evidence-notes h4 {
    color: #666;
  }
  .breadcrumbs {
    color: #666;
  }
  .breadcrumbs a {
    color: #666;
  }
  .print-keep {
    display: block !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  a[href^="#"]::after {
    content: "";
  }
}
