/*
Theme Name: La Estación Teruel Completa · Ligera
Author: La Estación Teruel
Description: Tema completo, accesible y responsive para la Estación de Autobuses de Teruel y sus páginas de servicios.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: estacion-teruel
License: GNU General Public License v2 or later
*/

:root {
  --wine: oklch(43% 0.17 19);
  --wine-dark: oklch(29% 0.11 19);
  --wine-soft: oklch(95% 0.018 19);
  --ink: oklch(23% 0.018 24);
  --muted: oklch(43% 0.02 24);
  --line: oklch(87% 0.012 24);
  --white: oklch(99% 0.003 20);
  --focus: oklch(79% 0.15 82);
  --max: 1180px;
  --shadow: 0 18px 50px rgb(69 10 27 / 12%);
  --hero-art: url("assets/images/estacion-linea.webp");
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  top: .75rem;
  left: .75rem;
  z-index: 50;
  background: var(--white);
  color: var(--wine-dark);
}
.wrap { width: calc(100% - 2rem); max-width: var(--max); margin-inline: auto; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 24%);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-prefix { font-size: 1rem; font-weight: 400; }
.brand-name { font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 750; }
.brand-city { font-size: .88rem; font-weight: 500; opacity: .85; letter-spacing: .03em; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-link { text-decoration: none; font-weight: 650; }
.desktop-nav { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav > a, .nav-services > summary { color: inherit; font-weight: 650; text-decoration: none; }
.desktop-nav > a:hover, .nav-services > summary:hover { text-decoration: underline; text-underline-offset: .35rem; }
.nav-services { position: relative; }
.nav-services > summary { cursor: pointer; list-style: none; }
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services > summary::after { content: "⌄"; margin-left: .35rem; font-size: .8em; }
.nav-services[open] > summary::after { content: "⌃"; }
.nav-panel {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: 250px;
  padding: .65rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav-panel a { display: block; padding: .62rem .7rem; border-radius: .2rem; text-decoration: none; }
.nav-panel a:hover { color: var(--wine-dark); background: var(--wine-soft); }
.mobile-nav { display: none; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.phone-link svg { width: 1.15rem; height: 1.15rem; }
.hero {
  position: relative;
  min-height: 710px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgb(57 6 21 / 85%) 0%, rgb(112 10 39 / 48%) 43%, rgb(112 10 39 / 2%) 74%), var(--hero-art);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  z-index: -1;
  background: linear-gradient(transparent, rgb(63 7 24 / 28%));
}
.hero-content { min-width: 0; padding-block: 10.5rem 8rem; max-width: 670px; }
.hero h1 {
  max-width: 11ch;
  margin: 0 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 54ch;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: oklch(96% 0.012 20);
  text-wrap: pretty;
}
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--wine-dark); background: var(--white); }
.button-ghost { color: var(--white); border-color: rgb(255 255 255 / 55%); background: rgb(255 255 255 / 8%); }
.quick-info {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
}
.quick-info-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  box-shadow: var(--shadow);
}
.quick-item { padding: clamp(1.4rem, 3vw, 2rem); }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-item strong { display: block; margin-bottom: .15rem; color: var(--wine-dark); font-size: 1.08rem; }
.quick-item span { color: var(--muted); }
.section { padding-block: clamp(5rem, 9vw, 8.5rem); }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.section h2 {
  margin: 0;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--wine-dark);
  text-wrap: balance;
}
.section-copy { max-width: 65ch; }
.section-copy > p:first-child { margin-top: 0; font-size: 1.2rem; }
.facts { margin: 2.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); }
.facts strong { color: var(--ink); text-align: right; }
.notices { background: var(--wine-soft); }
.notices .section-copy { padding-top: .5rem; }
.notices-note { margin-bottom: 1.7rem; color: var(--muted); }
.facebook-link { color: var(--wine-dark); border-bottom: 1px solid currentColor; font-weight: 750; text-decoration: none; }
.home-services { padding-block: clamp(4.5rem, 8vw, 7rem); color: var(--white); background: var(--wine-dark); }
.home-services-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 8rem); }
.home-services h2 { max-width: 12ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.home-service-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 25%); }
.home-service-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / 25%); color: var(--white); font-size: 1.08rem; font-weight: 650; text-decoration: none; }
.home-service-links a::after { content: "→"; transition: transform 180ms cubic-bezier(.22, 1, .36, 1); }
.home-service-links a:hover::after { transform: translateX(.3rem); }
.page-hero {
  position: relative;
  min-height: 570px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgb(59 5 22 / 92%) 0%, rgb(78 6 28 / 72%) 44%, rgb(78 6 28 / 20%) 100%), var(--page-image);
  background-size: cover;
  background-position: var(--page-position, center);
  transform: scale(1.01);
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 12rem; z-index: -1; background: linear-gradient(transparent, rgb(41 3 15 / 52%)); }
.page-hero-content { padding-block: 10.5rem 5.5rem; }
.page-hero h1 { max-width: 11ch; margin: 0 0 1.15rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.15rem, 7vw, 5.9rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.page-hero p { max-width: 59ch; margin: 0; color: oklch(96% 0.012 20); font-size: clamp(1.08rem, 2vw, 1.25rem); text-wrap: pretty; }
.page-nav { color: var(--muted); background: var(--white); border-bottom: 1px solid var(--line); }
.page-nav-inner { display: flex; align-items: center; gap: .6rem; min-height: 58px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.page-nav a { color: var(--wine-dark); font-weight: 650; text-decoration: none; }
.page-nav span { opacity: .55; }
.service-highlights { position: relative; z-index: 2; margin-top: 0; }
.service-highlights-inner { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: var(--shadow); }
.service-highlight { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); }
.service-highlight + .service-highlight { border-left: 1px solid var(--line); }
.service-highlight strong { display: block; color: var(--wine-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.1; }
.service-highlight span { display: block; margin-top: .35rem; color: var(--muted); }
.service-section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.service-section:nth-of-type(even) { background: var(--wine-soft); }
.service-section-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.service-section h2 { max-width: 13ch; margin: 0; color: var(--wine-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.5vw, 3.85rem); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.service-body { max-width: 67ch; }
.service-body > p:first-child { margin-top: 0; font-size: 1.13rem; }
.service-body p { text-wrap: pretty; }
.service-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.service-list strong { color: var(--wine-dark); }
.service-links { margin: 1.8rem 0 0; padding: 0; list-style: none; }
.service-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--wine-dark); font-weight: 700; text-decoration: none; }
.service-links a::after { content: "→"; }
.service-figure { margin: 2.5rem 0 0; }
.service-figure img { display: block; width: 100%; max-height: 480px; object-fit: cover; box-shadow: var(--shadow); }
.service-figure figcaption { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.service-contact { padding-block: clamp(3rem, 6vw, 5rem); color: var(--white); background: var(--wine-dark); }
.service-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.service-contact h2 { margin: 0 0 .45rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.service-contact p { max-width: 55ch; margin: 0; color: oklch(87% 0.02 18); }
.service-contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
.service-phone { color: var(--white); font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 750; text-decoration: none; white-space: nowrap; }
.generic-page { padding-block: 8rem; }
.partners { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--white); }
.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 8vw, 7rem);
}
.partners-copy { max-width: 31rem; }
.partners-copy h2 {
  margin: 0 0 .65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--wine-dark);
  text-wrap: balance;
}
.partners-copy p { margin: 0; color: var(--muted); }
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2rem, 5vw, 4rem);
  flex: 1 1 auto;
}
.partner-logo { display: block; width: auto; object-fit: contain; }
.partner-logo-pava { height: clamp(2.9rem, 5vw, 4rem); }
.partner-logo-vectalia { height: clamp(2.5rem, 4.5vw, 3.5rem); }
.contact-strip { color: var(--white); background: var(--wine-dark); }
.contact-inner {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3.5rem;
}
.contact-inner h2 { margin: 0 0 .5rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; }
.contact-inner p { margin: 0; color: oklch(87% 0.02 18); }
.contact-phone { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 750; text-decoration: none; white-space: nowrap; }
.site-footer { padding-block: 1.5rem; color: var(--muted); background: var(--white); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--wine-dark); }

@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .brand-prefix, .brand-city, .desktop-nav, .phone-link { display: none; }
  .header-actions { display: block; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav > summary { cursor: pointer; list-style: none; font-weight: 750; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav-panel { position: absolute; top: calc(100% + 1rem); right: 0; width: min(320px, calc(100vw - 2rem)); padding: .75rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-nav-panel a { display: block; padding: .7rem; border-bottom: 1px solid var(--line); text-decoration: none; }
  .mobile-nav-panel a:last-child { border-bottom: 0; }
  .hero { min-height: 650px; }
  .hero::before { background-image: linear-gradient(90deg, rgb(62 6 23 / 87%), rgb(105 9 38 / 35%)), var(--hero-art); background-position: 58% center; }
  .hero-content { padding-block: 9rem 7.5rem; }
  .hero h1 { max-width: 9ch; }
  .quick-info-inner { grid-template-columns: 1fr; }
  .quick-item + .quick-item { border-left: 0; border-top: 1px solid var(--line); }
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-services-grid, .service-section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { min-height: 540px; }
  .page-hero-content { padding-block: 9rem 4.5rem; }
  .service-highlights-inner { grid-template-columns: 1fr; }
  .service-highlight + .service-highlight { border-left: 0; border-top: 1px solid var(--line); }
  .service-contact-inner { align-items: flex-start; flex-direction: column; }
  .service-contact-actions { justify-content: flex-start; }
  .section h2 { max-width: 15ch; }
  .contact-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .partners-inner { align-items: flex-start; flex-direction: column; }
  .partner-logos { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .partner-logo-pava { height: 2.7rem; }
  .partner-logo-vectalia { height: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
