/* ==========================================================================
   Portada — "el mostrador del taller" (revisión 4 nov. 2026)
   Orden: portada (qué somos + 3 acciones) → franja de confianza → vitrina →
   categorías → taller → visítanos. Fondos alternos para marcar cada sección:
   blanco, marino (vitrina), gris aluminio (tienda), azul claro (taller), blanco.
   El amarillo del letrero solo en la acción principal ("Ver productos" y "Agregar").
   ========================================================================== */

.portada-nueva {
  --noche: #14284A;
  --taller-fondo: #E4EBF3;
  --verde-wa: #15803D;
  --verde-claro: #4ADE80;
}
  :root[data-theme="dark"] .portada-nueva { --noche: #0B1424; --taller-fondo: #132036; --verde-wa: #22A355; }
.portada-nueva h1, .portada-nueva h2 { font-family: var(--rotulo); font-stretch: 78%; letter-spacing: -.01em; }

/* ------------------------------------------------------------ botones de la portada
   Mismo alto, radio, borde y tipografía; cambia solo la jerarquía. */
.ph-boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .65rem 1.2rem;
  border-radius: var(--radio-m); border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s; }
.ph-boton svg { width: 22px; height: 22px; flex: none; }
.ph-boton:active { transform: translateY(1px); }
.ph-boton--principal { background: var(--amarillo); color: #14284A; font-weight: 700; }
.ph-boton--principal:hover { background: #F5CD52; }
.ph-boton--wa { background: transparent; color: var(--verde-wa); border-color: currentColor; }
.ph-boton--wa:hover { background: rgba(21,128,61,.08); }
.ph-boton--wa-lleno { background: var(--verde-wa); color: #fff; }
.ph-boton--wa-lleno:hover { background: #116A32; }
.ph-boton--borde { background: transparent; color: var(--marino-texto); border-color: #9FB0C6; }
.ph-boton--borde:hover { border-color: var(--marino-texto); background: var(--chip); }
.ph-boton--borde svg { stroke-width: 1.8; }
.ph-boton--marino { background: var(--marino); color: #fff; }
.ph-boton--marino:hover { background: #2B4F80; }
  :root[data-theme="dark"] .ph-boton--wa { color: var(--verde-claro); }
  :root[data-theme="dark"] .ph-boton--wa:hover { background: rgba(74,222,128,.1); }
  :root[data-theme="dark"] .ph-boton--borde { border-color: #4A607E; }
  :root[data-theme="dark"] .ph-boton--marino { background: #2E5A94; }
  :root[data-theme="dark"] .ph-boton--marino:hover { background: #3A6AA8; }

.ph-enlace { display: inline-flex; align-items: center; min-height: 44px; color: var(--marino-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ph-enlace--claro { color: #fff; }

/* encabezado de sección: igual en vitrina, tienda, taller y visita */
.ph-seccion__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ph-seccion__cabeza h2, .ph-taller h2, .ph-visita h2 { margin: 0; font-weight: 800; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; color: var(--marino-texto); }
.ph-seccion__bajada { margin: 0 0 1.4rem; max-width: 56ch; color: var(--tinta-suave); font-size: 1.05rem; line-height: 1.6; }

/* ------------------------------------------------------------ portada */
.ph-hero { position: relative; background: var(--blanco); color: var(--tinta); padding: clamp(1.6rem, 4vw, 3.4rem) 0 clamp(4.2rem, 8vw, 6.5rem); overflow: hidden; }
.ph-hero__dentro { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 720px) { .ph-hero__dentro { padding: 0 28px; } }
@media (max-width: 860px) { .ph-hero__dentro { grid-template-columns: minmax(0, 1fr); } }
/* título en dos líneas en celular; claro en modo oscuro (usa --marino-texto) */
.ph-hero__titulo { margin: 0; max-width: 17ch; font-weight: 800; font-size: clamp(2.3rem, 9.6vw, 4.7rem); line-height: .98; color: var(--marino-texto); text-wrap: balance; }
.ph-hero__bajada { margin: 1.25rem 0 0; max-width: 46ch; font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.6; color: var(--tinta-suave); }
.ph-hero__bajada + .ph-hero__bajada { margin-top: .5rem; }
/* en celular, una acción por fila (cómodas para el pulgar); "Ver productos" más alta y en amarillo */
.ph-hero__acciones { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 1.6rem; max-width: 560px; }
.ph-hero__acciones .ph-boton--principal { font-size: 1.08rem; min-height: 54px; }
@media (min-width: 560px) {
  .ph-hero__acciones { display: flex; flex-wrap: wrap; gap: .75rem; max-width: none; }
  .ph-hero__acciones .ph-boton--principal { padding: 0 1.8rem; }
}
.ph-hero__buscador { margin-top: 1.6rem; max-width: 600px; }
.ph-hero__buscador input { font-size: 1.05rem; padding: .85rem .6rem; }
.ph-hero__dato { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--linea); max-width: 600px; font-size: .95rem; line-height: 1.5; color: var(--tinta-suave); }
.ph-hero__dato:empty { display: none; }
.ph-hero__foto { margin: 0; }
.ph-hero__foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio-l); background: var(--placa); }
.ph-hero__foto figcaption { margin-top: .6rem; font-size: .92rem; color: var(--tinta-suave); }
.ph-hero__cordillera { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--vitrina); }

/* franja de confianza */
.ph-confianza { list-style: none; width: 100%; max-width: 1240px; margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 720px) { .ph-confianza { padding: 0 28px; } }
.ph-confianza li { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.1rem; background: var(--placa); border: 1px solid var(--linea); border-radius: var(--radio-l); }
.ph-confianza li > svg { width: 26px; height: 26px; flex: none; color: var(--marino-texto); stroke-width: 1.8; margin-top: .1rem; }
.ph-confianza li > span { display: grid; gap: .15rem; font-size: .95rem; line-height: 1.4; color: var(--tinta-suave); }
.ph-confianza strong { color: var(--tinta); font-size: 1rem; }
.ph-confianza__enlace { display: inline-flex; align-items: center; min-height: 40px; color: var(--marino-texto); font-weight: 600; text-underline-offset: 3px; justify-self: start; }
@media (max-width: 760px) { .ph-confianza { grid-template-columns: minmax(0, 1fr); gap: .6rem; } .ph-confianza li { padding: .85rem 1rem; } }

/* ------------------------------------------------------------ vitrina: carrusel con las tarjetas del catálogo */
.ph-vitrina { background: var(--vitrina); color: var(--tinta); padding: 1.2rem 0 clamp(2.5rem, 6vw, 4rem); }
.ph-vitrina .ph-seccion__cabeza { margin-bottom: .5rem; }
.ph-vitrina .ph-seccion__bajada { margin-bottom: 1.1rem; font-size: .95rem; }
.ph-carrusel { position: relative; }
.ph-carrusel__lista.productos { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: .2rem 16px 1rem; scrollbar-width: none; grid-template-columns: none; }
.ph-carrusel__lista::-webkit-scrollbar { display: none; }
.ph-carrusel__lista > li { flex: 0 0 calc((100% - 3 * 1rem) / 4.25); min-width: 200px; scroll-snap-align: start; }
.ph-carrusel__lista .producto { height: 100%; }
@media (max-width: 1000px) { .ph-carrusel__lista > li { flex-basis: calc((100% - 2rem) / 2.6); } }
/* en celular se ve el borde de la siguiente tarjeta: indica que hay más para deslizar */
@media (max-width: 640px) { .ph-carrusel__lista > li { flex-basis: 70%; min-width: 0; } .ph-carrusel__lista.productos { gap: .75rem; } }
@media (min-width: 720px) { .ph-carrusel__lista.productos { margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding: 0 28px; } }
.ph-carrusel__flecha { position: absolute; top: 34%; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: #fff; color: #14284A; box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.ph-carrusel__flecha svg { width: 24px; height: 24px; stroke-width: 2.4; }
.ph-carrusel__flecha--atras { left: -10px; }
.ph-carrusel__flecha--adelante { right: -10px; }
.ph-carrusel__flecha:disabled { opacity: 0; pointer-events: none; }
.ph-carrusel__flecha:hover { background: var(--amarillo); }
@media (max-width: 760px) { .ph-carrusel__flecha { display: none; } }
.ph-vacio { color: var(--tinta-suave); }

/* ------------------------------------------------------------ la tienda: categorías en tarjetas */
.ph-tienda { background: var(--blanco); padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.ph-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .75rem; }
.ph-cat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .8rem; row-gap: .1rem; align-items: center; height: 100%;
  min-height: 76px; padding: .9rem 1rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-l); color: var(--tinta); text-decoration: none; transition: border-color .15s; }
.ph-cat__icono { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--marino-texto); stroke-width: 1.6; }
.ph-cat__nombre { font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.ph-cat__cuenta { font-size: .88rem; color: var(--tinta-suave); }
.ph-cat:hover { border-color: var(--marino-texto); }
.ph-cat:hover .ph-cat__nombre { text-decoration: underline; text-underline-offset: 3px; }
.ph-cat:active { background: var(--chip); }
@media (max-width: 520px) {
  .ph-cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
  .ph-cat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: .35rem; align-content: start; padding: .85rem .85rem .9rem; min-height: 112px; }
  .ph-cat__icono { grid-row: auto; width: 28px; height: 28px; }
  .ph-cat__nombre { font-size: .98rem; }
}

/* ------------------------------------------------------------ el taller: sección de servicio */
.ph-taller { background: var(--taller-fondo); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 4px solid var(--marino-texto); }
.ph-taller__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .ph-taller__grid { grid-template-columns: minmax(0, 1fr); } }
.ph-taller__foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio-l); background: var(--placa); }
.ph-taller h2 { margin-bottom: .6rem; }
/* es una secuencia real: va numerada */
.ph-pasos { list-style: none; counter-reset: paso; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.ph-pasos li { counter-increment: paso; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .7rem; align-items: start; align-content: start; }
.ph-pasos li::before { content: counter(paso); grid-row: 1 / 3; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--marino); color: #fff; font-family: var(--rotulo); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; }
.ph-pasos strong { color: var(--tinta); font-size: 1.02rem; padding-top: .2rem; }
.ph-pasos span { color: var(--tinta-suave); font-size: .95rem; line-height: 1.45; }
@media (max-width: 420px) { .ph-pasos { grid-template-columns: minmax(0, 1fr); } }
 :root[data-theme="dark"] .ph-pasos li::before { background: #2E5A94; } 
.ph-taller__sub { margin: 0 0 .6rem; font-family: var(--fuente); font-stretch: 100%; font-size: .95rem; font-weight: 600; color: var(--tinta); letter-spacing: 0; }
.ph-taller-lista { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ph-taller-lista li { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .85rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; font-size: .95rem; color: var(--tinta); }
.ph-taller-lista li.ph-sinlista { border: 0; padding: 0; background: none; }
.ph-taller-lista li.ph-sinlista:empty { display: none; }
.ph-taller__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }

/* -------------------------------------------------------------- visítanos */
.ph-visita { background: var(--blanco); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ph-visita__tarjeta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem); background: var(--placa); border: 1px solid var(--linea); border-radius: var(--radio-l); }
@media (max-width: 960px) { .ph-visita__tarjeta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ph-visita__acciones { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ph-visita__tarjeta { grid-template-columns: minmax(0, 1fr); } }
.ph-visita h2 { font-size: clamp(1.9rem, 5.4vw, 2.6rem); }
.ph-visita__zona { margin: .4rem 0 0; color: var(--tinta-suave); }
.ph-referencia { margin: .5rem 0 0; color: var(--tinta-suave); }
.ph-referencia:empty { display: none; }
.ph-visita .estado-tienda { margin-top: .8rem; }
.ph-horario { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.ph-horario th, .ph-horario td { text-align: left; padding: .65rem 1rem .65rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.ph-horario tr:first-child th, .ph-horario tr:first-child td { border-top: 1px solid var(--linea); }
.ph-horario th { font-weight: 600; color: var(--tinta); }
.ph-horario td { font-weight: 500; color: var(--tinta); }
.ph-visita__acciones { display: grid; gap: .7rem; min-width: min(100%, 230px); }
@media (max-width: 960px) { .ph-visita__acciones { display: flex; flex-wrap: wrap; } }
@media (max-width: 420px) { .ph-visita__acciones .ph-boton { flex: 1 1 100%; } }
.ph-redes { margin-top: 1.2rem; color: var(--tinta-suave); }
.ph-redes:empty { display: none; }
.ph-redes a { color: var(--marino-texto); font-weight: 600; }

/* ------------------------------------------- marcas de "por completar" (solo con ?revision) */
.ph-pendiente { display: inline-block; padding: .35rem .7rem; border: 2px dashed #C2410C; border-radius: 6px; background: #FFF4E5; color: #9A3412; font-size: .85rem; font-weight: 600; }

/* ------------------------------------------------------------ 3 acciones principales (rev. 5 nov. 2026) */
.ph-acciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.5rem; max-width: 680px; }
@media (max-width: 640px) { .ph-acciones { grid-template-columns: minmax(0, 1fr); gap: .55rem; } }
.ph-accion { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .65rem; align-items: center; min-height: 64px; padding: .75rem .9rem;
  border: 1.5px solid var(--linea); border-radius: var(--radio-l); background: var(--blanco); color: var(--tinta); text-decoration: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ph-accion:hover { border-color: var(--marino-texto); box-shadow: 0 4px 14px rgba(20, 40, 74, .1); }
.ph-accion:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.ph-accion svg { width: 30px; height: 30px; fill: none; stroke: var(--marino-texto); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-accion span { display: grid; gap: .1rem; min-width: 0; }
.ph-accion strong { font-size: 1.02rem; color: var(--marino-texto); }
.ph-accion small { font-size: .82rem; line-height: 1.3; color: var(--tinta-suave); }
.ph-accion--principal { background: var(--amarillo); border-color: var(--amarillo); }
.ph-accion--principal strong, .ph-accion--principal small { color: #14284A; }
.ph-accion--principal svg { stroke: #14284A; }
.ph-accion--principal:hover { background: #F5CD52; border-color: #F5CD52; }
.ph-hero__wa { margin: .6rem 0 0; font-size: .95rem; color: var(--tinta-suave); }
.ph-hero__wa a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; color: var(--verde-wa); font-weight: 600; text-underline-offset: 3px; }
  :root[data-theme="dark"] .ph-hero__wa a { color: var(--verde-claro); }
