/* Taller Mecánico Adrián — v3 "rótulo de taller"
   Barda pintada a mano, nota de servicio y parabrisas de combi. */

:root {
  --cal: #f2efe3;
  --cal-2: #e6e0cb;
  --lima: #b6ec2f;
  --monte: #17361f;
  --monte-2: #21492c;
  --tinta: #121812;
  --gris: #565d52;
  --rojo: #c9361f;
  --azul: #27508a;
  --pluma: #1b2b66;

  --slab: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--cal); color: var(--tinta); font: 400 1.0625rem/1.55 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--monte); color: #fff; padding: .6rem 1rem; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

/* Grano de pintura sobre las paredes */
.barda, .se, .trato, .ruta, .banco, .avisos { position: relative; isolation: isolate; }
.barda::before, .se::before, .trato::before, .ruta::before, .banco::before, .avisos::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grano);
}

/* Títulos de rotulista: script rojo + slab verde */
h2 { font: 400 clamp(2.3rem, 5.6vw, 4.1rem)/1 var(--slab); margin: 0; color: var(--monte); }
h2 .script {
  display: block; width: max-content; font: 400 .82em/1 var(--script); color: var(--rojo);
  margin: 0 0 -.02em .05em; transform: rotate(-4deg); transform-origin: left bottom;
}
.script { filter: url(#brocha); }

/* Botones */
.btn, .sello-btn {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; border: 0;
  background: var(--monte); color: var(--cal); font: 700 1.05rem/1 var(--sans);
  text-decoration: none; padding: 1rem 1.35rem; border-radius: 6px;
  box-shadow: 0 4px 0 var(--tinta); transition: transform .12s, box-shadow .12s;
}
.btn:hover, .sello-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--tinta); }
.btn:active, .sello-btn:active { transform: translateY(4px); box-shadow: none; }
.btn svg, .sello-btn svg { width: 22px; height: 22px; flex: none; }
.btn--lima { background: var(--lima); color: var(--monte); box-shadow: 0 4px 0 #6c9612; }
.btn--lima:hover { box-shadow: 0 2px 0 #6c9612; }
.link { font-weight: 700; color: var(--monte); text-decoration: underline; text-decoration-color: var(--lima); text-decoration-thickness: 5px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--monte); }

/* Encabezado */
.top { background: var(--monte); color: var(--cal); }
.top__in { display: flex; align-items: center; gap: 1.75rem; min-height: 70px; padding: 6px 0; }
.top__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.top__brand img { width: auto; height: 62px; }
.top__nav { margin-left: auto; display: flex; gap: 1.6rem; }
.top__nav a { text-decoration: none; font-weight: 500; color: #d3dccf; }
.top__nav a:hover { color: var(--lima); }
.top__wa { display: inline-flex; align-items: center; gap: .45rem; background: var(--lima); color: var(--monte); font-weight: 700; text-decoration: none; padding: .5rem .9rem; border-radius: 5px; }
.top__wa svg { width: 18px; height: 18px; }

/* La barda */
.barda { background: var(--lima); color: var(--monte); overflow: hidden; }
.barda__in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.barda__script {
  display: inline-block; position: relative; z-index: 1;
  font: 400 clamp(2.2rem, 4.6vw, 3.9rem)/1 var(--script); color: #fff;
  text-shadow: .035em .05em 0 var(--monte);
  margin: 0 0 -.18em .08em; transform: rotate(-5deg); transform-origin: left bottom;
  filter: url(#brocha);
}
.barda__name {
  margin: 0; font: 400 clamp(4rem, 9.6vw, 8.6rem)/.95 var(--slab); letter-spacing: -.01em;
  color: var(--monte); text-shadow: .035em .04em 0 var(--cal);
  filter: url(#brocha);
}
.barda__place { margin-top: 1.4rem; font: 600 1rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.barda__place b { font: 400 1.5em/1 var(--slab); letter-spacing: 0; text-transform: none; margin-right: .2em; }
.barda__say { margin: 1rem 0 1.6rem; max-width: 30rem; font-size: 1.15rem; line-height: 1.5; }
.barda__say strong { background: var(--monte); color: var(--lima); padding: .05em .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Ilustración: carro con el cofre abierto */
.cofre { position: relative; margin: 0; display: grid; place-items: center; }
.cofre::before {
  content: ""; position: absolute; inset: 6% 4% 2%; border-radius: 50%;
  background: var(--monte); transform: rotate(-4deg); filter: url(#brocha);
}
.cofre::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 3%; height: 7%;
  background: rgba(0, 0, 0, .28); border-radius: 50%; filter: blur(6px);
}
.cofre img { position: relative; z-index: 1; width: min(100%, 520px); height: auto; animation: llega .9s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes llega { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .cofre img { animation: none; } }

.guardapolvo { background: var(--monte); color: var(--lima); }
.guardapolvo p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: 1.15rem 0; font: 400 clamp(.95rem, 1.45vw, 1.2rem)/1.4 var(--slab); text-transform: uppercase; letter-spacing: .03em; filter: url(#brocha); }
.guardapolvo i { font-style: normal; color: var(--cal); }

/* Servicios */
.se { background: var(--cal); padding: clamp(4rem, 8vw, 7rem) 0; }
.se__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: .5rem; border-bottom: 4px solid var(--monte); }
.se__head p { max-width: 24rem; color: var(--gris); }
.se__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.se__list li { display: flex; }
.card {
  flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.3rem 1.2rem;
  background: #fbf9f1; border: 2px solid var(--monte); border-radius: 6px; box-shadow: 5px 5px 0 var(--monte);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.card__ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: .4rem; border-radius: 50%; background: var(--lima); color: var(--monte); border: 2px solid var(--monte); }
.card__ico svg { width: 28px; height: 28px; }
.card b { font: 400 1.45rem/1.1 var(--slab); color: var(--monte); transition: color .15s; }
.card__txt { color: var(--gris); font-size: .97rem; line-height: 1.5; }
.card__go { margin-top: auto; padding-top: .6rem; font: 700 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--monte); }
.card:hover, .card:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--monte); }
.card:hover b, .card:focus-visible b { color: var(--rojo); }
.card:hover .card__ico, .card:focus-visible .card__ico { background: var(--monte); color: var(--lima); }
@media (max-width: 1100px) { .se__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* El trato */
.trato { background: var(--lima); color: var(--monte); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.trato h2 .script { color: #fff; text-shadow: .035em .05em 0 var(--monte); }
.trato__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 2.5rem 4rem; align-items: start; }
.trato ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; counter-reset: paso; }
.trato li { counter-increment: paso; position: relative; padding-left: 3.4rem; font-size: 1.08rem; }
.trato li::before { content: counter(paso); position: absolute; left: 0; top: -.15rem; font: 400 2.8rem/1 var(--slab); color: var(--monte); text-shadow: .05em .05em 0 var(--cal); }
.trato b { display: block; font-size: 1.2rem; margin-bottom: .15rem; }

/* La ruta */
.ruta { background: var(--cal-2); padding: clamp(4rem, 8vw, 7rem) 0; }
.ruta__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.ruta__txt p { color: var(--gris); max-width: 36ch; margin: 1.4rem 0 1.5rem; }
.parabrisas {
  position: relative; background: #121413; padding: 12px;
  border-radius: 46px 46px 24px 24px; transform: perspective(900px) rotateX(9deg);
  box-shadow: 0 34px 40px -28px rgba(0, 0, 0, .55);
}
.parabrisas__vidrio {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 36px 36px 16px 16px;
  background: linear-gradient(172deg, #46534f 0%, #222b29 48%, #2c3735 100%);
  padding: clamp(1.5rem, 3.5vw, 2.4rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4.5vw, 3.2rem);
}
.parabrisas__vidrio::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 28%, rgba(255,255,255,.13) 36%, transparent 44%, transparent 58%, rgba(255,255,255,.06) 62%, transparent 68%);
}
.parabrisas p { filter: url(#brocha); }
.parabrisas__top { font: 400 clamp(1.4rem, 4vw, 2.9rem)/1 var(--slab); color: var(--lima); text-transform: uppercase; letter-spacing: .02em; text-shadow: .045em .05em 0 #000; }
.parabrisas__mid { margin-top: .75rem; font: 700 clamp(.9rem, 2vw, 1.35rem)/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #fff; }
.parabrisas__bot { margin-top: .35rem; font: 400 clamp(1.7rem, 3.6vw, 2.6rem)/1 var(--script); color: #fff; }
.calca {
  position: absolute; right: -12px; top: -20px; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--rojo); color: #fff; border: 3px solid #fff;
  font: 700 .78rem/1.05 var(--sans); text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(12deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}

/* El banco: nota de servicio */
.banco { background: var(--monte); color: var(--cal); padding: clamp(4rem, 8vw, 7rem) 0; }
.banco h2 { color: var(--cal); }
.banco h2 .script { color: var(--lima); }
.banco__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.banco__txt p { color: #c4d0c0; max-width: 30ch; margin-top: 1.4rem; font-size: 1.12rem; }

.nota {
  position: relative; background: #fbf6dc; color: var(--azul);
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.15rem, 3vw, 2.1rem) clamp(1.25rem, 3vw, 1.8rem);
  box-shadow: 0 2px 0 #ddd3a6, 0 24px 44px -20px rgba(0, 0, 0, .65);
}
.nota::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 8px 6px, var(--monte) 4px, transparent 4.6px) 0 0 / 16px 12px repeat-x;
}
.nota__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .85rem; border-bottom: 2px solid var(--azul); }
.nota__name { font: 400 clamp(1.15rem, 2.4vw, 1.45rem)/1.05 var(--slab); }
.nota__sub { margin-top: .3rem; font-size: .84rem; font-weight: 500; }
.nota__folio { color: var(--rojo); font: 700 1rem/1 "Courier New", ui-monospace, monospace; white-space: nowrap; }
.nota__folio span { font-size: 1.45rem; letter-spacing: .04em; }
.nota__title { margin: .9rem 0 1.15rem; text-align: center; font: 700 .78rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.nota__row { display: flex; gap: 1.25rem; }
.nota__f { display: flex; align-items: flex-end; gap: .6rem; margin-bottom: 1.1rem; font-weight: 600; font-size: .92rem; }
.nota__f--grow { flex: 1; min-width: 0; }
.nota__f--anio { width: 8.5rem; flex: none; }
.nota__f > span { white-space: nowrap; padding-bottom: .4rem; }
.nota__f:has(textarea) { flex-direction: column; align-items: stretch; gap: .1rem; }
.nota__f:has(textarea) > span { padding-bottom: 0; }
.nota input, .nota textarea {
  width: 100%; min-width: 0; border: 0; border-radius: 0; color: var(--pluma);
  font: 500 1.15rem/1.4 var(--sans); padding: .2rem .15rem;
}
.nota input { flex: 1; background: transparent; border-bottom: 1.5px solid var(--azul); }
.nota textarea {
  resize: vertical; min-height: 6rem; line-height: 2rem; padding-top: 0;
  background: transparent repeating-linear-gradient(to bottom, transparent 0 calc(2rem - 1.5px), var(--azul) calc(2rem - 1.5px) 2rem);
  background-attachment: local;
}
.nota ::placeholder { color: #8f97b3; opacity: 1; }
.nota input:focus, .nota textarea:focus { outline: none; background-color: rgba(39, 80, 138, .08); }
.nota input:focus { border-bottom-width: 3px; }
.nota__err { margin: -.5rem 0 1rem; color: var(--rojo); font-weight: 600; }
.nota__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.15rem; margin-top: .4rem; border-top: 1.5px dashed #bdb388; }
.nota__foot p { max-width: 22ch; font-size: .86rem; color: #6c6a58; }
.sello-btn { font-family: var(--slab); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }

/* Avisos */
.avisos { background: var(--cal); padding: clamp(4rem, 8vw, 7rem) 0; }
.avisos h2 { margin-bottom: 2.5rem; }
.avisos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.lamina {
  --t: radial-gradient(circle, #a6a497 0 2.5px, #6f6e64 3px 3.5px, transparent 4px);
  padding: 2.4rem 2.5rem 2.3rem; background:
    var(--t) 4px 4px / 9px 9px no-repeat,
    var(--t) calc(100% - 4px) 4px / 9px 9px no-repeat,
    var(--t) 4px calc(100% - 4px) / 9px 9px no-repeat,
    var(--t) calc(100% - 4px) calc(100% - 4px) / 9px 9px no-repeat,
    #fbfaf3;
  box-shadow: inset 0 0 0 15px #fbfaf3, inset 0 0 0 18px var(--monte), 0 2px 0 #cfc8b0, 0 14px 22px -16px rgba(0, 0, 0, .35);
}
.lamina dt { font: 400 1.35rem/1.15 var(--slab); color: var(--monte); margin-bottom: .6rem; }
.lamina dd { margin: 0; color: #3c4239; }

/* Pie */
.pie { background: var(--tinta); color: #c9d1c5; padding: 3rem 0; }
.pie__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.pie img { width: 190px; height: auto; }
.pie b { color: #fff; }
.pie__small { margin-top: .6rem; font-size: .85rem; opacity: .7; }

/* WhatsApp flotante (móvil) */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; background: var(--lima); color: var(--monte);
  border: 3px solid var(--monte); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.fab svg { width: 28px; height: 28px; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Responsivo */
@media (max-width: 900px) {
  .barda__in { grid-template-columns: minmax(0, 1fr); }
  .cofre img { width: min(100%, 420px); }
  .barda__name { font-size: clamp(4rem, 19vw, 8.6rem); }
  .trato__in, .ruta__in, .banco__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top__wa { margin-left: auto; }
  .guardapolvo p { justify-content: flex-start; gap: .15rem .6rem; }
  .barda__place b { display: block; margin-bottom: .35rem; }
  .avisos__grid { grid-template-columns: minmax(0, 1fr); }
  .pie { padding-bottom: 6rem; }
  .pie__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .fab { display: grid; }
}
@media (max-width: 560px) {
  .trato ol { grid-template-columns: minmax(0, 1fr); }
  .top__wa span { display: none; }
  .top__wa { padding: .55rem; }
  .nota__row { flex-direction: column; gap: 0; }
  .nota__f--anio { width: 100%; }
  .sello-btn { width: 100%; justify-content: center; font-size: .95rem; }
  .calca { right: -6px; top: -26px; width: 72px; height: 72px; font-size: .7rem; }
  .lamina { padding: 2.2rem 2rem 2.1rem; }
}

@media (max-width: 600px) {
  .se__list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem; padding: 1.1rem 1rem; }
  .card__ico { grid-row: 1 / 4; margin: 0; width: 48px; height: 48px; }
  .card__ico svg { width: 24px; height: 24px; }
  .card b { font-size: 1.3rem; }
  .card__go { padding-top: .2rem; }
}
.pie__small a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
