/* Talleres Novelda — propuesta de diseño (industrial) */
:root {
  --bg: #1C1C1E;
  --bg-alt: #26262A;
  --bg-card: #2E2E33;
  --yellow: #FFC72C;
  --yellow-dark: #E6AF12;
  --steel: #8A9199;      /* solo decorativo */
  --text: #F2F2F2;
  --muted: #C9CDD2;      /* texto secundario, contraste AA sobre fondos oscuros */
  --ink: #1C1C1E;        /* texto sobre amarillo */
  --line: #3A3A40;
  --radius: 4px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 72px; /* espacio para la barra móvil */
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--yellow); }
a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); font-weight: 600;
  padding: .7em 1em; border-radius: var(--radius); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 1.5rem; }

.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }

/* Rayas de advertencia */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}
.hazard--thin { height: 8px; }

/* Etiqueta */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--ink);
  background: var(--yellow);
  padding: .15em .6em;
  margin-bottom: 1rem;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.15rem; line-height: 1;
  padding: .85em 1.3em; min-height: 48px;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--ink); }
.btn--lg { font-size: 1.3rem; padding: .9em 1.5em; }
.btn--sm { font-size: 1rem; padding: .55em 1em; min-height: 40px; }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 28, 30, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--yellow); color: var(--ink); border-radius: var(--radius);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: .03em; margin: 0; line-height: 1;
}
.logo__text span { color: var(--yellow); }

.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer;
}
.menu-btn span { display: block; height: 3px; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: none; flex-direction: column; gap: .25rem;
  background: var(--bg-alt); padding: 1rem 20px 1.5rem;
  border-bottom: 4px solid var(--yellow);
}
.nav.open { display: flex; }
.no-js .nav { display: flex; position: static; }
.no-js .menu-btn { display: none; }
.no-js .header__inner { flex-wrap: wrap; height: auto; padding-block: .75rem; }
.nav a:not(.btn) {
  color: var(--text); text-decoration: none; padding: .7rem 0;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.2rem; border-bottom: 1px solid var(--line);
}
.nav a:not(.btn):hover { color: var(--yellow); }
.nav .btn { margin-top: .75rem; }

/* Portada */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 1.5rem; padding-block: 3rem 3.5rem; align-items: center; }
.hero__title {
  font-size: clamp(3rem, 14vw, 6rem);
  font-weight: 800;
  margin-bottom: .35em;
}
.hl { color: var(--yellow); }
.hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__art { max-width: 260px; justify-self: center; order: -1; }
.hero__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.spin { transform-origin: 160px 183px; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Secciones */
.section { padding-block: 4rem; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 2.25rem; }
.section__sub { color: var(--muted); max-width: 40em; }

/* Tarjetas de servicios */
.cards { display: grid; gap: 1rem; }
.card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 6px solid var(--steel);
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-left-color: var(--yellow); transform: translateY(-3px); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.card__ico { width: 40px; height: 40px; color: var(--yellow); margin-bottom: .75rem; }
.card--feature { background: var(--yellow); border-color: var(--yellow); border-left-color: var(--ink); }
.card--feature h3, .card--feature p, .card--feature .card__ico { color: var(--ink); }
.card--feature:hover { border-left-color: var(--ink); }

.ask {
  margin-top: 2.5rem;
  display: grid; gap: 1.25rem;
  padding: 1.75rem 1.4rem;
  border: 2px dashed var(--steel);
  border-radius: var(--radius);
}
.ask h3 { font-size: 1.75rem; color: var(--yellow); }
.ask p { color: var(--muted); margin: 0; }
.ask .btn { justify-self: start; }

/* Sobre nosotros */
.about { display: grid; gap: 2rem; align-items: center; }
.about__art { max-width: 340px; width: 100%; justify-self: center; }
.about__art svg { display: block; width: 100%; height: auto; }
.about__text > p:not(.tag) { color: var(--muted); }
.about__text strong { color: var(--text); }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.facts li {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--bg); padding: 1rem 1.1rem; border-radius: var(--radius);
}
.facts .ico { width: 28px; height: 28px; color: var(--yellow); margin-top: .1rem; }
.facts strong {
  display: block; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.15rem; color: var(--text);
}
.facts span { color: var(--muted); }

/* Horario */
.hours {
  display: grid; gap: 1.25rem;
  background: var(--bg-alt);
  border-top: 6px solid var(--yellow);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
}
.hours__ico { width: 56px; height: 56px; color: var(--yellow); }
.hours h2 { font-size: clamp(1.9rem, 7vw, 2.75rem); }
.hours p:not(.tag) { color: var(--muted); }

/* Reservas */
.booking {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--line);
  padding: 2.75rem 1.4rem 2.25rem;
  border-radius: var(--radius);
}
.booking__stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}
.booking__ico { width: 56px; height: 56px; color: var(--yellow); margin-bottom: .75rem; }
.booking__title {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 1.75rem; margin-bottom: .4rem;
}
.booking__text { color: var(--muted); max-width: 32em; margin: 0 auto 1.5rem; }
.booking .btn { max-width: 100%; white-space: normal; }

/* Mapa */
.map {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border: 4px solid var(--bg-alt); outline: 2px solid var(--steel);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* Contacto */
.contact { display: grid; gap: 1rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); color: var(--text); text-decoration: none;
  padding: 1.25rem 1.25rem; border-radius: var(--radius);
  border: 2px solid var(--line);
  transition: border-color .2s;
}
.contact__item:hover { border-color: var(--yellow); }
.contact__item > .ico { width: 36px; height: 36px; color: var(--yellow); }
.contact__item span { flex: 1; min-width: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact__item strong {
  display: block; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; color: var(--muted);
}
.contact__arrow { width: 24px; height: 24px; color: var(--yellow); flex: none; }

/* Pie */
.footer { background: #141416; }
.footer__inner { padding-block: 2rem; display: grid; gap: .5rem; text-align: center; color: var(--muted); font-size: .95rem; }
.footer__inner p { margin: 0; }
.footer__demo {
  justify-self: center; margin-top: .5rem !important;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink); background: var(--yellow); padding: .2em .8em; font-weight: 700;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border-top: 2px solid var(--yellow);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 60px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.2rem; color: var(--text);
}
.mobile-cta__btn--yellow { background: var(--yellow); color: var(--ink); }

/* Animaciones */
.reveal { opacity: 1; }
html:not(.no-js) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html:not(.no-js) .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
  .spin { animation: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* Tablet */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .ask { grid-template-columns: 1fr auto; align-items: center; padding: 2rem; }
  .ask .btn { justify-self: end; }
  .hours { grid-template-columns: auto 1fr; padding: 2.5rem; }
  .map { aspect-ratio: 16 / 9; }
}

/* Escritorio */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.5rem;
    background: none; padding: 0; border: 0;
  }
  .nav a:not(.btn) { border: 0; padding: .3rem 0; font-size: 1.1rem; border-bottom: 2px solid transparent; }
  .nav a:not(.btn):hover { border-bottom-color: var(--yellow); }
  .nav .btn { margin-top: 0; }
  .hero__grid { grid-template-columns: 1.3fr 1fr; padding-block: 5.5rem 6rem; gap: 3rem; }
  .hero__art { order: 0; max-width: 400px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .section { padding-block: 6rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .about { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .about__art { max-width: 420px; }
}
