/**
 * TRANSPORT MD3 LLC — BASE & RESET CSS
 * Enfoque en accesibilidad, tipografía fluida y estándares 2026
 */

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

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

/* Margen superior para anclas con navbar fijo */
section[id] {
  scroll-margin-top: calc(var(--header-height, 70px) + 1rem);
}

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

/* Selección de texto con la identidad de marca */
::selection {
  background-color: var(--color-turquesa);
  color: var(--color-blanco);
}

/* Tipografía jerárquica */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-petroleo);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

ul, ol {
  list-style: none;
}

/* Accesibilidad de foco */
:focus-visible {
  outline: 2px solid var(--color-turquesa);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Utilidades de contenedores */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-4xl);
  position: relative;
}

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

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

.section-petroleo {
  background-color: var(--color-petroleo);
  color: var(--color-marfil);
}

.section-petroleo h1,
.section-petroleo h2,
.section-petroleo h3 {
  color: var(--color-blanco);
}

/* Badges e Insignias */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-turquesa {
  background-color: rgba(28, 154, 139, 0.12);
  color: var(--color-turquesa);
  border: 1px solid rgba(28, 154, 139, 0.25);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-blanco);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Botones Clean Luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-turquesa);
  color: var(--color-blanco);
  box-shadow: var(--shadow-sm), 0 4px 12px rgba(28, 154, 139, 0.3);
}

.btn-primary:hover {
  background: var(--color-turquesa-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 20px rgba(28, 154, 139, 0.4);
}

.btn-secondary {
  background: var(--color-blanco);
  color: var(--color-petroleo);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-marfil);
  border-color: rgba(18, 59, 70, 0.2);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-blanco);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: var(--color-blanco);
  color: var(--color-petroleo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: var(--text-base);
}
