/* ============================================================
   SailingDevs · Subpáginas (servicios y tienda)
   Reutilizan los tokens, el nav, el pie y el modal de la portada.
   ============================================================ */

/* ---------------- Cabecera de página ---------------- */
.cabecera {
  padding-block: clamp(130px, 16vh, 190px) clamp(40px, 6vw, 70px);
  position: relative;
  background: linear-gradient(180deg, var(--blue-50), rgba(255, 255, 255, 0) 70%);
}

.cabecera__ruta {
  font-size: .9rem;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.cabecera__ruta a { color: var(--blue-600); font-weight: 600; }
.cabecera__ruta a:hover { text-decoration: underline; }
.cabecera__ruta span { margin-inline: 8px; }

.cabecera h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 18ch; }
.cabecera .lead { margin-top: 22px; }

.cabecera__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------------- Servicios: tarjetas de plan ---------------- */
.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--blue-200); }

.plan__head h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.plan__gancho { margin-top: 10px; color: var(--blue-600); font-weight: 600; font-size: .98rem; }

.plan__para {
  margin-top: 18px;
  font-size: .95rem;
  color: var(--gray-500);
}
.plan__para strong { color: var(--ink); font-weight: 700; }

.plan__incluye {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.plan__incluye li { display: grid; gap: 3px; }
.plan__incluye strong { font-size: .97rem; color: var(--ink); font-weight: 700; }
.plan__incluye span { font-size: .9rem; color: var(--gray-400); }

.plan__pie {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.plan__mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--blue-600);
  padding: 8px 0;
}
.plan__mas svg { transition: transform .35s var(--ease-out); }
.plan__mas:hover svg { transform: translateX(4px); }

.plan__cta { min-height: 46px; padding: 11px 20px; font-size: .92rem; }

/* ---------------- Preguntas frecuentes ---------------- */
.faq {
  display: grid;
  gap: 2px;
  max-width: 840px;
}

.faq__item { border-top: 1px solid var(--gray-200); }
.faq__item:last-child { border-bottom: 1px solid var(--gray-200); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate .35s var(--ease-out);
}
.faq__item[open] summary::after { rotate: -135deg; translate: 0 -20%; }

.faq__item p { padding-bottom: 24px; max-width: 70ch; color: var(--gray-500); }

/* ---------------- Tienda ---------------- */
.tienda__barra {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

/* min-width:0 deja que la fila encoja en vez de empujar la página */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }

.filtro {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: background .25s, color .25s, border-color .25s;
}
.filtro:hover { border-color: var(--blue-200); color: var(--ink); }
.filtro.is-activo { background: var(--ink); border-color: var(--ink); color: #fff; }

.buscador {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  transition: border-color .25s;
}
.buscador:focus-within { border-color: var(--blue-400); }
.buscador__icono { width: 18px; height: 18px; color: var(--gray-400); flex: none; }
.buscador input { border: 0; outline: none; width: 100%; font: inherit; font-size: .94rem; color: var(--ink); background: none; }

.tienda__conteo { font-size: .9rem; color: var(--gray-400); margin-bottom: 18px; }

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.producto {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.producto:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--blue-200); }

.producto__foto { position: relative; background: var(--gray-100); aspect-ratio: 1; }
.producto__foto img { width: 100%; height: 100%; object-fit: cover; }

.producto__estado {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 26px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: .76rem;
  font-weight: 700;
  color: var(--gray-500);
}
.producto__estado.is-disponible { color: #0a6b3d; }

.producto__cuerpo { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.producto__categoria { font-size: .78rem; font-weight: 700; color: var(--blue-600); margin-bottom: 7px; }
.producto__cuerpo h3 { font-size: 1.08rem; line-height: 1.3; }
.producto__detalle {
  margin-top: 8px;
  font-size: .88rem;
  color: var(--gray-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto__pie {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.producto__precio {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}

.producto__ver {
  font-size: .86rem;
  font-weight: 700;
  color: var(--blue-600);
}

.tienda__vacio, .tienda__error {
  padding: 40px 0;
  color: var(--gray-400);
}

.tienda__nota {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  font-size: .9rem;
  color: var(--gray-400);
  max-width: 62ch;
}

/* ---------------- Añadidos al modal compartido ---------------- */
.detail__shot--producto { background: var(--white); padding: 20px 20px 0; }
.detail__shot--producto img { width: 100%; max-width: 420px; margin-inline: auto; height: auto; }

.detail__list--rico li { margin-bottom: 4px; }
.detail__list--rico strong { color: var(--ink); font-weight: 700; }

.detail__sub { margin-top: 26px; }

.detail__etapas { display: grid; gap: 10px; }
.detail__etapas li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .96rem;
}
.detail__etapas span {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .8rem;
  font-weight: 700;
}

.detail__cta {
  margin: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px) 0;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 700px) {
  /* en columna, flex-basis sería la ALTURA: hay que neutralizarlo */
  .tienda__barra { flex-direction: column; align-items: stretch; }
  .buscador { flex: none; width: 100%; }
  .filtros {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;            /* la fila se desliza sin barra a la vista */
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; }
  .plan__pie { flex-direction: column; align-items: stretch; }
  .plan__cta { justify-content: center; }
}

/* ---------------- Ficha de producto: colores y modelos ---------------- */
.producto__variantes {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-600);
}

.ficha__precio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: .97rem;
}
.ficha__precio strong { font-size: 1.25rem; color: var(--ink); font-family: "Sora", sans-serif; letter-spacing: -.03em; }

.opcion + .opcion { margin-top: 26px; }
.opcion h3 { margin-bottom: 12px; }

.opcion__colores { display: flex; flex-wrap: wrap; gap: 8px; }

.muestra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: border-color .25s, color .25s, background .25s;
}

.muestra__color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(14, 22, 48, .14);
  flex: none;
}

.muestra:hover { border-color: var(--blue-200); color: var(--ink); }
.muestra.is-activo { border-color: var(--blue-600); color: var(--ink); background: var(--blue-50); }

.opcion__modelos { display: flex; flex-wrap: wrap; gap: 8px; }

.modelo {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: border-color .25s, color .25s, background .25s;
}
.modelo:hover { border-color: var(--blue-200); color: var(--ink); }
.modelo.is-activo { border-color: var(--blue-600); color: var(--ink); background: var(--blue-50); }

.ficha__aviso { margin-top: 14px; font-size: .86rem; color: var(--gray-400); }

/* El sello distingue la tienda del sitio del estudio sin cambiar de logo */
.nav__sello {
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .01em;
}
