/* =========================================================
   Taller Suárez Hermanos - sitio público
   Paleta: celeste y blanco de base, azul profundo como tinta
   y un ámbar "sol" con toques de óxido como acento cálido.
   Contrastes verificados para texto normal (WCAG AA).
========================================================= */
:root {
    --azul: #13325b;
    --azul-2: #0d2442;
    --celeste: #74acdf;
    --celeste-claro: #e4f0fa;
    --celeste-linea: #b9d7f0;
    --texto-sobre-azul: #d6e4f3;
    --blanco: #ffffff;
    --papel: #fbf8f1;
    --tinta: #182338;
    --tinta-suave: #4a5568;
    --sol: #f2a93b;
    --sol-hover: #f7bd5f;
    --sol-oscuro: #8a4a00;
    --oxido: #b4532a;
    --radio: 10px;
    --radio-mano: 6px 16px 8px 14px;
    --ancho: 1160px;
    --titulos: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --cuerpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mano: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

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

html { scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--cuerpo);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tinta);
    background: var(--papel);
}

h1, h2, h3 {
    font-family: var(--titulos);
    line-height: 1.05;
    margin: 0 0 .5em;
    letter-spacing: .01em;
    color: var(--azul);
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--azul);
    outline-offset: 3px;
}
.seccion--oscura :focus-visible,
.servicio--destacado :focus-visible,
.pie :focus-visible { outline-color: var(--sol); }

.contenedor {
    width: min(100% - 2.5rem, var(--ancho));
    margin-inline: auto;
}

.visualmente-oculto {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.saltar {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .7rem 1rem;
    background: var(--sol);
    color: var(--azul-2);
    font-weight: 600;
    border-radius: var(--radio);
}
.saltar:focus { top: 1rem; }

.etiqueta {
    font-family: var(--titulos);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sol-oscuro);
    margin-bottom: .8rem;
}

/* Anotaciones "a mano": pocas y cortas, para que no pierdan gracia */
.nota-mano {
    font-family: var(--mano);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--oxido);
    transform: rotate(-2deg);
    transform-origin: left center;
}

/* ---------- Botones ---------- */
.boton {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    font-family: var(--titulos);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--azul-2);
    background: var(--sol);
    border: 2px solid var(--azul);
    border-radius: var(--radio);
    box-shadow: 3px 3px 0 var(--azul);
    transition: background .2s, transform .15s, box-shadow .15s;
}
.boton:hover { background: var(--sol-hover); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--azul); }
.boton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--azul); }
.boton--contorno { background: var(--blanco); color: var(--azul); }
.boton--contorno:hover { background: var(--celeste-claro); }
.boton--chico { padding: .4rem .85rem; font-size: 1.05rem; box-shadow: 2px 2px 0 var(--azul); }
.boton--grande { font-size: clamp(1.3rem, 3vw, 1.6rem); padding: .95rem 1.5rem; }
.icono { width: 1.3em; height: 1.3em; fill: currentColor; flex-shrink: 0; }

/* ---------- Encabezado ---------- */
.encabezado {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, .97);
    border-bottom: 2px solid var(--azul);
    box-shadow: 0 3px 0 var(--celeste-claro);
    color: var(--azul);
}
.encabezado__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}

.marca {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}
/* Sigla como parche bordado de mameluco */
.marca__sigla {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    font-family: var(--titulos);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: var(--blanco);
    background: var(--azul);
    border: 3px solid var(--celeste);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--azul);
    transform: rotate(-6deg);
}
.marca__texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca__texto strong { font-family: var(--titulos); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.marca__texto small { color: var(--tinta-suave); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

.menu__lista {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.menu__lista a:not(.boton) {
    display: block;
    padding: .55rem .8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}
.menu__lista a:not(.boton):hover { background: var(--celeste-claro); }

.menu__boton {
    display: none;
    width: 46px; height: 46px;
    background: transparent;
    border: 2px solid var(--azul);
    border-radius: 8px;
    cursor: pointer;
    color: var(--azul);
}
.menu__icono, .menu__icono::before, .menu__icono::after {
    display: block;
    width: 22px; height: 2px;
    margin: auto;
    background: currentColor;
    position: relative;
    transition: transform .2s;
}
.menu__icono::before, .menu__icono::after { content: ""; position: absolute; left: 0; }
.menu__icono::before { top: -7px; }
.menu__icono::after { top: 7px; }
.menu__boton[aria-expanded="true"] .menu__icono { background: transparent; }
.menu__boton[aria-expanded="true"] .menu__icono::before { transform: translateY(7px) rotate(45deg); }
.menu__boton[aria-expanded="true"] .menu__icono::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.portada {
    position: relative;
    background: var(--celeste-claro);
    overflow: hidden;
}
/* Borde dentado, como el corte de una orden de trabajo */
.portada::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background:
        linear-gradient(to top right, var(--papel) 50%, transparent 50%) 0 0 / 18px 10px repeat-x,
        linear-gradient(to top left, var(--papel) 50%, transparent 50%) 0 0 / 18px 10px repeat-x;
}
.portada__grilla {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.portada h1 {
    font-size: clamp(2.9rem, 8vw, 5.6rem);
    font-weight: 800;
    line-height: .95;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}
.portada h1 span { position: relative; display: inline-block; }
.subrayado {
    position: absolute;
    left: -2%;
    bottom: -.16em;
    width: 104%;
    height: .24em;
    fill: none;
    stroke: var(--sol);
    stroke-width: 7;
    stroke-linecap: round;
    overflow: visible;
}
.subrayado path { vector-effect: non-scaling-stroke; }
.portada__bajada { max-width: 37rem; font-size: 1.2rem; color: var(--tinta-suave); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.portada__donde { margin: 1.5rem 0 0; color: var(--tinta-suave); }
.portada__donde strong { color: var(--azul); white-space: nowrap; }

/* La rueda queda chica y detrás de la nota: un detalle, no el protagonista */
.portada__pieza { position: relative; }
.engranaje {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: clamp(130px, 17vw, 210px);
    height: auto;
    pointer-events: none;
    fill: none;
    stroke: var(--celeste);
    stroke-width: 3;
    stroke-linejoin: round;
}
.engranaje__aro { stroke: var(--sol); stroke-width: 9; }

.portada__nota {
    position: relative;
    z-index: 1;
    margin: clamp(3.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem) 0 0;
    padding: 1.5rem 1.4rem 1.4rem;
    background: var(--blanco);
    border: 2px solid var(--azul);
    border-radius: var(--radio-mano);
    box-shadow: 6px 6px 0 var(--celeste);
    transform: rotate(-1.5deg);
}
.portada__nota .nota-mano { margin-bottom: .8rem; }
/* Cinta de papel que "sostiene" la nota */
.portada__nota::before,
.senales > div::before,
.contacto__tarjeta::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 84px;
    height: 22px;
    margin-left: -42px;
    background: rgba(116, 172, 223, .55);
    transform: rotate(3deg);
}
.portada__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.portada__chips li {
    padding: .3rem .8rem;
    font-family: var(--titulos);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--azul);
    background: var(--celeste-claro);
    border: 1.5px solid var(--azul);
    border-radius: 999px;
}
.portada__chips li:nth-child(2n) { transform: rotate(1.5deg); }
.portada__chips li:nth-child(3n) { transform: rotate(-1.5deg); }

@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(3.5rem, 8vw, 6rem); }
.seccion__intro { font-size: 1.15rem; }

/* Servicios: columna de presentación + lista, no una grilla de tarjetas iguales */
.servicios-grilla {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.servicios-cabeza { position: sticky; top: 100px; }
.servicios-cabeza p { color: var(--tinta-suave); font-size: 1.1rem; }
.servicios-cabeza .nota-mano { margin-top: 1.4rem; }

.servicios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.servicio {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 1rem;
    padding: 1.4rem 0;
    border-top: 2px dashed var(--celeste-linea);
}
.servicio > :not(.servicio__icono) { grid-column: 2; }
.servicio__icono {
    grid-row: 1 / span 3;
    width: 52px; height: 52px;
    padding: 10px;
    fill: currentColor;
    color: var(--azul);
    background: var(--celeste-claro);
    border: 2px solid var(--azul);
    border-radius: 50%;
}
.servicio h3 { margin-bottom: .3rem; }
.servicio p { color: var(--tinta-suave); margin-bottom: .6rem; }
.servicio__enlace {
    justify-self: start;
    font-weight: 600;
    color: var(--sol-oscuro);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.servicio__enlace::after { content: " →"; }

.servicio--principal { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.servicio--principal h3 { font-size: 1.9rem; }
.servicio--principal p { font-size: 1.12rem; max-width: 40rem; }

.servicio--destacado {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    padding: 1.6rem;
    color: var(--blanco);
    background: var(--azul);
    border: 0;
    border-radius: var(--radio-mano);
    box-shadow: 6px 6px 0 var(--sol);
    transform: rotate(-.6deg);
}
.servicio--destacado h3 { color: var(--blanco); font-size: 1.7rem; }
.servicio--destacado p { color: var(--texto-sobre-azul); }
.servicio--destacado .servicio__icono { color: var(--azul-2); background: var(--sol); border-color: var(--blanco); }
.servicio--destacado .servicio__enlace { color: var(--sol); }

/* Señales: notas pegadas en la pared del taller */
.seccion--oscura { background: var(--azul); color: var(--blanco); }
.seccion--oscura h2 { color: var(--blanco); }
.seccion--oscura .seccion__intro { color: var(--texto-sobre-azul); }

.senales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem 1.5rem;
    margin: 2.4rem 0 0;
}
.senales > div {
    position: relative;
    padding: 1.7rem 1.3rem 1.3rem;
    color: var(--tinta);
    background: var(--papel);
    border-radius: 3px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .2);
    transform: rotate(-1.2deg);
}
.senales > div:nth-child(2n) { background: var(--celeste-claro); transform: rotate(1deg); }
.senales > div:nth-child(3) { margin-top: .8rem; }
.senales > div:nth-child(2n)::before { background: rgba(242, 169, 59, .7); transform: rotate(-4deg); }
.senales dt { font-family: var(--titulos); font-size: 1.35rem; font-weight: 700; color: var(--azul); margin-bottom: .3rem; }
.senales dd { margin: 0; color: var(--tinta-suave); }

/* Pasos: números trazados a mano y escalonados */
.pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}
.pasos li { position: relative; counter-increment: paso; }
.pasos li:nth-child(2) { margin-top: 2.2rem; }
.pasos li:nth-child(3) { margin-top: 1rem; }
.pasos li::before {
    content: counter(paso);
    display: grid;
    place-items: center;
    width: 3.3rem; height: 3.3rem;
    margin-bottom: .8rem;
    font-family: var(--mano);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--azul);
    border: 3px solid var(--sol);
    border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%;
}
.pasos li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.65rem;
    left: 4.3rem;
    right: -1.4rem;
    border-top: 2px dashed var(--celeste);
}
.pasos p { color: var(--tinta-suave); margin: 0; }

/* ---------- Contacto ---------- */
.contacto {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: var(--celeste-claro);
}
.contacto__caja {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}
.contacto__texto p { max-width: 34rem; font-size: 1.15rem; color: var(--tinta-suave); margin-bottom: 1.6rem; }

.contacto__tarjeta {
    position: relative;
    padding: 2rem 1.8rem 1.6rem;
    background: var(--blanco);
    border: 2px solid var(--azul);
    border-radius: var(--radio-mano);
    box-shadow: 7px 7px 0 var(--sol);
    transform: rotate(1deg);
}
.contacto__tarjeta .nota-mano { margin-bottom: .4rem; }
.contacto__direccion { font-style: normal; margin-bottom: 1rem; }
.contacto__direccion span { display: block; font-weight: 600; color: var(--tinta-suave); }
.contacto__direccion strong {
    display: block;
    font-family: var(--titulos);
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.1;
    color: var(--azul);
}
.contacto__llegar {
    font-weight: 600;
    color: var(--azul);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.contacto__llegar::after { content: " ↗"; }
.contacto__nota {
    margin: 1.1rem 0 0;
    padding-top: .9rem;
    border-top: 2px dashed var(--celeste-linea);
    color: var(--tinta-suave);
}

/* ---------- Pie ---------- */
.pie {
    background: var(--azul-2);
    color: var(--texto-sobre-azul);
    border-top: 6px solid var(--celeste);
    padding-block: 2rem 5.5rem;
}
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.2rem 2.5rem; }
.pie p, .pie address { margin: 0; font-style: normal; }
.pie strong { color: var(--blanco); font-family: var(--titulos); font-size: 1.3rem; letter-spacing: .02em; }
.pie__direccion { color: var(--blanco); font-weight: 600; }
.pie__direccion span { display: block; font-weight: 400; color: var(--texto-sobre-azul); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.pie a { color: var(--sol); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    background: #1f9d55;
    color: #fff;
    border: 3px solid var(--blanco);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--azul), 0 8px 22px rgba(0, 0, 0, .3);
    transition: transform .2s;
}
.whatsapp-flotante:hover { transform: scale(1.07); }
.whatsapp-flotante svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .portada__grilla, .servicios-grilla, .contacto__caja { grid-template-columns: 1fr; }
    .portada__pieza { max-width: 440px; }
    .servicios-cabeza { position: static; }
    .pasos { grid-template-columns: 1fr; gap: 1.6rem; }
    .pasos li:nth-child(n) { margin-top: 0; padding-left: 4.4rem; }
    .pasos li::before { position: absolute; left: 0; top: 0; }
    .pasos li:not(:last-child)::after { top: 3.6rem; bottom: -1.4rem; left: 1.65rem; right: auto; border-top: 0; border-left: 2px dashed var(--celeste); }
}

@media (max-width: 820px) {
    .menu__boton { display: grid; place-items: center; }
    .menu__lista {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: .8rem 1.25rem 1.2rem;
        background: var(--papel);
        border-bottom: 2px solid var(--azul);
        box-shadow: 0 10px 20px rgba(13, 36, 66, .12);
    }
    .menu__lista.abierta { display: flex; }
    .menu__lista a:not(.boton) { padding: .85rem .6rem; font-size: 1.1rem; }
    .menu__lista .boton { justify-content: center; margin-top: .4rem; }
}

@media (max-width: 600px) {
    .servicios { grid-template-columns: 1fr; }
    .servicio--principal h3 { font-size: 1.6rem; }
    .senales > div:nth-child(3) { margin-top: 0; }
}

@media (max-width: 480px) {
    .marca__texto small { display: none; }
    .marca__texto strong { font-size: 1.1rem; }
    .portada__acciones .boton { width: 100%; justify-content: center; }
    .portada__donde strong { white-space: normal; }
    .boton--grande { width: 100%; justify-content: center; font-size: 1.25rem; }
    .contacto__tarjeta { padding-inline: 1.3rem; transform: none; }
}

/* El movimiento es opcional: solo se activa si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .engranaje { animation: girar 80s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
