/**
 * BASE CSS & RESET - TERMINAL DE TRANSPORTES
 */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Tipografía Base ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  color: var(--color-dark-700);
  line-height: 1.7;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-green-dark);
}

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

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

/* ── Contenedores de Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Estructura Principal ── */
#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
}

/* ── Estilos de Contenido Editorial y Páginas Internas (.entry-content) ── */
.page-header-banner {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
  padding: 2.25rem 0 1.75rem 0;
  margin-bottom: 2rem;
}

.page-header-banner .page-title {
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark-900);
}

.page-content-wrapper {
  background-color: var(--color-white);
  padding-bottom: 4rem;
}

.entry-content {
  color: var(--color-dark-700);
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--color-dark-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
  color: var(--color-dark-700);
}

.entry-content ul,
.entry-content ol {
  margin: 1.25rem 0 1.75rem 1.75rem;
  padding: 0;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--color-dark-700);
}

.entry-content li::marker {
  color: var(--brand-green);
}

.entry-content img {
  border-radius: var(--radius-lg);
  margin: 1.75rem auto;
  box-shadow: var(--shadow-sm);
}

.entry-content blockquote {
  border-left: 4px solid var(--brand-green);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--brand-green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-dark-800);
}

/* ── Compatibilidad Elementor ── */
.elementor-page #main-content {
  padding: 0;
}

.elementor-element ul,
.elementor-widget-text-editor ul {
  list-style: disc;
  margin: 1.25rem 0 1.75rem 1.75rem;
  padding: 0;
}

.elementor-element ol,
.elementor-widget-text-editor ol {
  list-style: decimal;
  margin: 1.25rem 0 1.75rem 1.75rem;
  padding: 0;
}

.elementor-element li,
.elementor-widget-text-editor li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--color-dark-700);
}

.elementor-element li::marker,
.elementor-widget-text-editor li::marker {
  color: var(--brand-green);
}

/* ── AOS Fallbacks & Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media print {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
