/* Erika · Flash Carwash — hoja de estilos única, sin dependencias externas */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #1a1f26;
  --color-text-muted: #4a5560;
  --color-border: #d7dde3;
  --color-brand: #0b5fa5;
  --color-brand-dark: #08477d;
  --color-focus: #d1470c;
  --color-link: #0b5fa5;
  --color-link-visited: #6b3fa0;
  --max-width: 42rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #12161b;
    --color-bg-alt: #1a2027;
    --color-text: #e8edf2;
    --color-text-muted: #aab4bf;
    --color-border: #333c47;
    --color-brand: #6fb2e8;
    --color-brand-dark: #9ccbf0;
    --color-link: #6fb2e8;
    --color-link-visited: #c39bef;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 0.25rem 0;
}

.skip-link:focus {
  left: 0;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--color-link-visited);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand:visited {
  color: var(--color-text);
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.main-nav a {
  text-decoration: underline;
  font-size: 0.95rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.wide main {
  max-width: 48rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-top: 0;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

p, li {
  color: var(--color-text);
}

.lede {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.callout {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.card-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.card-links a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 0.4rem;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
}

.card-links a:hover,
.card-links a:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-bg-alt);
}

.card-links span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

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

.meta-block {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

address {
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-inner nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.error-page main {
  text-align: center;
  padding-top: 4rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
