:root {
  --bg-primary: #171D20;
  --bg-secondary: #1D2529;
  --bg-card: #26383D;
  --accent-blue: #355A60;
  --accent-teal: #668A88;
  --text-light: #C1D0C9;
  --text-muted: #8FA39E;
  --text-white: #F4F7F6;
  --border-subtle: rgba(102, 138, 136, 0.22);
  --glass-bg: rgba(38, 56, 61, 0.65);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

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

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

body {
  background: radial-gradient(circle at 15% 15%, #1E282D 0%, var(--bg-primary) 60%);
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

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

/* Header & Navegación */
header {
  background: rgba(23, 29, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-teal);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
  color: var(--text-white);
  border-bottom-color: var(--accent-teal);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* Contenedor Principal */
main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.25;
}

h1 { font-size: 3rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.1rem; margin: 3rem 0 1.25rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.6rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

/* Footer */
footer {
  background: #12171A;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 5% 2.5rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accesibilidad */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--text-white); color: var(--bg-primary); padding: 0.5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 3px; }
