/* ============================================
   PrendaMex Tiendas — Design System
   Guía informativa no oficial
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --color-bg: #F7F9FC;
  --color-bg-alt: #EEF2F6;
  --color-primary: #0C3B5D;
  --color-primary-dark: #112236;
  --color-accent: #D6A648;
  --color-accent-light: #E9C96E;
  --color-text: #1F2933;
  --color-text-light: #52606D;
  --color-text-muted: #7B8794;
  --color-success: #168A61;
  --color-warning: #E9B949;
  --color-white: #FFFFFF;
  --color-border: #D9E2EC;
  --color-border-light: #E4E7EB;
  --color-hero-gradient-start: #0C3B5D;
  --color-hero-gradient-end: #112236;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

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

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1200px;
  --container-narrow: 900px;
  --container-wide: 1400px;

  --header-height: 86px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

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

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

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  line-height: 1.3;
  font-weight: var(--fw-bold);
}

.section--dark h1, .section--dark h2, .section--dark h3,
.section--primary h1, .section--primary h2, .section--primary h3 {
  color: var(--color-white);
}

h1 { font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); margin-bottom: var(--spacing-lg); }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--fs-xl); margin-bottom: var(--spacing-md); }
h4 { font-size: var(--fs-lg); margin-bottom: var(--spacing-sm); }

p { margin-bottom: var(--spacing-md); color: var(--color-text-light); }

.section--dark p, .section--primary p { color: rgba(255,255,255,0.85); }

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto var(--spacing-2xl);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--warning {
  background-color: rgba(233, 185, 73, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(214, 166, 72, 0.3);
}

.badge--info {
  background-color: rgba(12, 59, 93, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(12, 59, 93, 0.2);
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: linear-gradient(135deg, #FFF8E7, #FEF3CD);
  border-bottom: 2px solid var(--color-accent);
  padding: 10px 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.disclaimer-banner strong {
  color: var(--color-primary-dark);
}

.disclaimer-banner .icon-info {
  margin-right: 6px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__logo img {
  height: 60px;
  width: auto;
  transform: scale(1.35);
  transform-origin: center left;
}

.header__logo-badge {
  font-size: 9px;
  padding: 2px 8px;
  background: rgba(214, 166, 72, 0.15);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid rgba(214, 166, 72, 0.25);
  margin-left: 55px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-primary);
  background: rgba(12, 59, 93, 0.06);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-primary-dark) !important;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: all var(--transition-fast);
}

.header__cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 166, 72, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .hamburger { display: flex; }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 20px) 24px 24px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
    gap: 0;
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    padding: 14px 16px;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
  }

  .header__cta {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 20px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-hero-gradient-start) 0%, var(--color-hero-gradient-end) 100%);
  color: var(--color-white);
  padding: var(--spacing-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214, 166, 72, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 138, 97, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__content.hero__content--center {
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--fs-4xl);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.hero__disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero__content--center .hero__buttons {
  justify-content: center;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--spacing-md) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: var(--fs-sm);
}

.breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs__list li:not(:last-child)::after {
  content: '›';
  color: var(--color-text-muted);
  font-size: var(--fs-md);
}

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

.breadcrumbs__list a:hover {
  color: var(--color-primary);
}

.breadcrumbs__list li:last-child {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 50px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 166, 72, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

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

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

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

.btn--dark:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 59, 93, 0.3);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-sm);
  min-height: 42px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--fs-md);
  min-height: 56px;
}

.btn--block {
  width: 100%;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

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

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(12, 59, 93, 0.08), rgba(12, 59, 93, 0.04));
  color: var(--color-primary);
  font-size: var(--fs-xl);
  margin-bottom: var(--spacing-md);
}

.card__title {
  font-size: var(--fs-lg);
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--fw-semibold);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
}

.card__link:hover {
  color: var(--color-primary);
  gap: 10px;
}

/* Quick access pills */
.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.quick-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  transition: all var(--transition-fast);
  font-size: var(--fs-sm);
}

.quick-pill:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.quick-pill__icon {
  font-size: 1.3em;
  flex-shrink: 0;
}

/* City grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.city-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.city-card__icon {
  font-size: 1.2em;
  color: var(--color-accent);
  flex-shrink: 0;
}

.city-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

/* State grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--spacing-md);
}

.state-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.state-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.state-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(214, 166, 72, 0.15), rgba(214, 166, 72, 0.05));
  color: var(--color-accent);
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.state-card__info h3 {
  font-size: var(--fs-base);
  margin-bottom: 2px;
  color: var(--color-primary-dark);
}

.state-card__info span {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 15px rgba(12, 59, 93, 0.2);
}

.step h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--spacing-sm);
}

.step p {
  font-size: var(--fs-sm);
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table-wrapper th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 18px;
  text-align: left;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.table-wrapper td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-light);
}

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

.table-wrapper tr:nth-child(even) {
  background: var(--color-bg);
}

/* --- FAQ / Accordions --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(12, 59, 93, 0.03);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(12, 59, 93, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: var(--fs-lg);
  color: var(--color-primary);
}

.faq-item.active .faq-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer__inner {
  padding: 0 22px 22px;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: var(--fs-sm);
}

.faq-answer__inner p {
  margin-bottom: var(--spacing-sm);
}

.faq-answer__inner ul, .faq-answer__inner ol {
  padding-left: 20px;
  margin-bottom: var(--spacing-md);
}

.faq-answer__inner li {
  list-style: disc;
  margin-bottom: 6px;
}

.faq-answer__inner ol li {
  list-style: decimal;
}

.faq-answer__inner a {
  color: var(--color-accent);
  font-weight: var(--fw-medium);
}

/* --- Info Box / Alert --- */
.info-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-box--warning {
  background: linear-gradient(135deg, #FFF8E7, #FEF3CD);
  border-left: 4px solid var(--color-accent);
}

.info-box--info {
  background: linear-gradient(135deg, #E8F0FE, #D6E4F0);
  border-left: 4px solid var(--color-primary);
}

.info-box--success {
  background: linear-gradient(135deg, #E6F7EF, #D4EDDA);
  border-left: 4px solid var(--color-success);
}

.info-box__icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
  line-height: 1;
}

.info-box__content {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.info-box__content strong {
  color: var(--color-primary-dark);
}

/* --- Verification Badge --- */
.verification {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(22, 138, 97, 0.08);
  border: 1px solid rgba(22, 138, 97, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--color-success);
  font-weight: var(--fw-medium);
}

/* --- Article Content --- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border-light);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: var(--spacing-xl);
}

.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: var(--spacing-lg);
}

.article-content li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--color-text-light);
}

.article-content ol li {
  list-style: decimal;
}

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

/* --- Items Grid (Articles accepted) --- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.item-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.item-card__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.item-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
}

/* --- Trust Module --- */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.trust-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  text-align: center;
}

.trust-card__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.trust-card h4 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.trust-card p {
  font-size: var(--fs-sm);
}

/* --- Chips --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
  font-weight: var(--fw-medium);
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(12, 59, 93, 0.04);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
  font-size: var(--fs-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12, 59, 93, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--spacing-4xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__col h4 {
  color: var(--color-white);
  font-size: var(--fs-base);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer__col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer__col a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__col a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__disclaimer {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer__disclaimer p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.footer__bottom {
  padding: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

.footer__bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer__bottom-links a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

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

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.8);
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-banner p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* --- Sucursal Card --- */
.sucursal-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-fast);
}

.sucursal-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.sucursal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.sucursal-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
}

.sucursal-card__data {
  display: grid;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.sucursal-card__data-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.sucursal-card__data-item span:first-child {
  flex-shrink: 0;
  font-size: 1.1em;
}

.sucursal-card__actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* --- Simulador Section --- */
.sim-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.sim-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.sim-cat-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.sim-cat-card__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(214, 166, 72, 0.12), rgba(214, 166, 72, 0.04));
  flex-shrink: 0;
}

.sim-cat-card__info h4 {
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.sim-cat-card__info span {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --- Link Section (internal linking modules) --- */
.link-section {
  padding: var(--spacing-2xl) 0;
}

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

/* --- Legal Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-3xl) 0;
}

.legal-content h2 {
  margin-top: var(--spacing-2xl);
  font-size: var(--fs-xl);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-bg-alt);
}

.legal-content h3 {
  margin-top: var(--spacing-xl);
  font-size: var(--fs-lg);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: var(--spacing-lg);
}

.legal-content li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.legal-content ol li {
  list-style: decimal;
}

/* --- Sitemap Page --- */
.sitemap-section h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-bg-alt);
}

.sitemap-list {
  padding-left: 0;
}

.sitemap-list li {
  margin-bottom: 8px;
  list-style: none;
  padding-left: 20px;
  position: relative;
}

.sitemap-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.sitemap-list a {
  font-weight: var(--fw-medium);
}

.sitemap-list .sub-list {
  margin-top: 8px;
  padding-left: 20px;
}

.sitemap-list .sub-list li::before {
  content: '↳';
}

/* --- Simulator Widget --- */
.simulator-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-2xl) auto;
  max-width: 650px;
  border: 1px solid var(--color-border-light);
}

.simulator-widget__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.simulator-widget__header h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary-dark);
}

.simulator-widget__header p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.sim-field-group {
  margin-bottom: var(--spacing-md);
  display: none;
  animation: fadeIn var(--transition-base);
}

.sim-field-group.active, .sim-field-group--always {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-result {
  background: linear-gradient(135deg, rgba(22, 138, 97, 0.1), rgba(22, 138, 97, 0.02));
  border: 1px solid rgba(22, 138, 97, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  margin-top: var(--spacing-lg);
  display: none;
  animation: fadeIn 0.4s ease;
}

.sim-result h4 {
  font-size: var(--fs-sm);
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
}

.sim-result .monto {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.sim-result p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1280px) {
  .hero h1 { font-size: var(--fs-3xl); }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;
  }

  .hero {
    padding: var(--spacing-3xl) 0;
  }

  .header__logo img {
    height: 44px;
    transform: scale(1.2);
    transform-origin: center left;
  }

  .header__logo-badge {
    margin-left: 20px;
  }

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

  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

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

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

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

  .quick-access {
    grid-template-columns: 1fr 1fr;
  }

  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

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

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  h1 { font-size: var(--fs-xl); }
  h2 { font-size: var(--fs-lg); }

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

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

  .quick-access {
    grid-template-columns: 1fr;
  }

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

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

  .sim-categories {
    grid-template-columns: 1fr;
  }

  .trust-cards {
    grid-template-columns: 1fr;
  }

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

  .link-section__grid {
    grid-template-columns: 1fr;
  }

  .hero__disclaimer {
    font-size: var(--fs-xs);
    text-align: center;
    justify-content: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* --- Print --- */
@media print {
  .header, .footer, .cookie-banner, .disclaimer-banner { display: none; }
  .hero { background: none; color: var(--color-text); padding: 20px 0; }
  .hero h1 { color: var(--color-text); }
}
