
/*
 * TIENDA SSPISOS
 * Sistema de diseño global v1.0
 */

/* 1. VARIABLES */
:root {
  --ss-primary: #243449;
  --ss-text: #334155;
  --ss-muted: #64748b;
  --ss-border: #e2e8f0;
  --ss-surface: #f8fafc;
  --ss-white: #ffffff;

  --ss-radius: 14px;
  --ss-container: 1200px;
}

/* 2. CONTENEDORES */
.ss-container {
  width: min(100% - 40px, var(--ss-container));
  margin-inline: auto;
}

.ss-section {
  padding-block: clamp(48px, 6vw, 88px);
}

/* 3. TIPOGRAFÍA */
.ss-title {
  color: var(--ss-primary);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.ss-description {
  color: var(--ss-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* 4. BOTONES */
.ss-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 10px;
  background: var(--ss-primary);
  color: var(--ss-white);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease;
}

.ss-button:hover {
  transform: translateY(-2px);
  color: var(--ss-white);
}

/* 5. TARJETAS */
.ss-card {
  padding: 28px;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  background: var(--ss-white);
}

/* 6. REJILLA */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 7. RESPONSIVE */
@media (max-width: 900px) {
  .ss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ss-container {
    width: min(100% - 32px, var(--ss-container));
  }

  .ss-grid {
    grid-template-columns: 1fr;
  }

  .ss-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-button {
    transition: none;
  }

  .ss-button:hover {
    transform: none;
  }
}

/* =====================================
   TIENDA SSPISOS - HERO PRINCIPAL
   ===================================== */

.ss-hero {
  padding: clamp(55px, 7vw, 100px) 0;
  background: #f8fafc;
}

.ss-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}

.ss-hero__label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 9px 15px;
  border: 1px solid #dce3ed;
  border-radius: 50px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ss-hero__title {
  margin: 0 0 24px;
  color: var(--ss-primary);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.ss-hero__description {
  max-width: 550px;
  margin: 0 0 30px;
  color: var(--ss-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

.ss-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ss-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border: 1px solid var(--ss-primary);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}

.ss-hero__button--primary {
  background: var(--ss-primary);
  color: #fff;
}

.ss-hero__button--secondary {
  background: transparent;
  color: var(--ss-primary);
}

.ss-hero__button:hover {
  transform: translateY(-2px);
}

.ss-hero__button--primary:hover {
  color: #fff;
}

.ss-hero__button--secondary:hover {
  color: var(--ss-primary);
}

.ss-hero__button:focus-visible {
  outline: 3px solid #64748b;
  outline-offset: 3px;
}

.ss-hero__media {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(0,0,0,.10);
}

.ss-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ss-hero__location {
  margin: 22px 0 0;
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 500;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .ss-hero__grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .ss-hero__media {
    max-width: 650px;
  }
}

@media (max-width: 600px) {
  .ss-hero {
    padding: 44px 0 55px;
  }

  .ss-hero__title {
    font-size: clamp(32px, 8vw, 42px);
  }

  .ss-hero__media {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-hero__button {
    transition: none;
  }

  .ss-hero__button:hover {
    transform: none;
  }
}

/* ======================================
   TIENDA SSPISOS - CATEGORÍAS
   ====================================== */

.ss-categories {
  padding: clamp(60px, 7vw, 100px) 0;
  background: #fff;
}

.ss-categories__header {
  max-width: 720px;
  margin-bottom: 42px;
}

.ss-categories__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--ss-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ss-categories__title {
  margin: 0 0 16px;
  color: var(--ss-primary);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.ss-categories__intro {
  margin: 0;
  color: var(--ss-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* REJILLA */

.ss-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* TARJETAS */

.ss-category {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 245px;
  padding: 34px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.ss-category:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 35px rgba(0,0,0,.055);
}

/* NÚMERO DECORATIVO */

.ss-category__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--ss-primary);
  font-size: 13px;
  font-weight: 700;
}

/* CONTENIDO */

.ss-category h3 {
  margin: 0 0 12px;
  color: var(--ss-primary);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.ss-category p {
  max-width: 390px;
  margin: 0;
  color: var(--ss-muted);
  font-size: 15px;
  line-height: 1.75;
}

.ss-category__tag {
  display: inline-block;
  margin-top: auto;
  padding-top: 25px;
  color: var(--ss-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .ss-categories {
    padding: 55px 0;
  }

  .ss-categories__header {
    margin-bottom: 28px;
  }

  .ss-categories__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ss-category {
    min-height: 215px;
    padding: 27px;
  }

  .ss-category__number {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-category {
    transition: none;
  }

  .ss-category:hover {
    transform: none;
  }
}

/* ====================================
   SSPISOS - SECTORES QUE ATENDEMOS
   ==================================== */

.ss-sectors {
  padding: clamp(60px, 7vw, 95px) 0;
  background: #f8fafc;
}

.ss-sectors__header {
  max-width: 740px;
  margin: 0 auto 42px;
  text-align: center;
}

.ss-sectors__label {
  display: block;
  margin-bottom: 13px;
  color: var(--ss-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ss-sectors__title {
  margin: 0 0 17px;
  color: var(--ss-primary);
  font-size: clamp(28px, 3.5vw, 43px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.03em;
}

.ss-sectors__description {
  margin: 0;
  color: var(--ss-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* TARJETAS */

.ss-sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ss-sector-card {
  min-width: 0;
  padding: 30px 27px;
  border: 1px solid var(--ss-border);
  border-radius: 17px;
  background: #fff;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.ss-sector-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(0,0,0,.06);
}

/* ICONOS */

.ss-sector-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: #f1f5f9;
  color: var(--ss-primary);
}

.ss-sector-card__icon svg {
  display: block;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CONTENIDO */

.ss-sector-card h3 {
  margin: 0 0 10px;
  color: var(--ss-primary);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.ss-sector-card p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .ss-sectors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ss-sectors {
    padding: 55px 0;
  }

  .ss-sectors__header {
    margin-bottom: 30px;
  }

  .ss-sectors__grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ss-sector-card {
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-sector-card {
    transition: none;
  }

  .ss-sector-card:hover {
    transform: none;
  }
}

/* ====================================
   SSPISOS - CTA FINAL
   ==================================== */

.ss-final-cta {
  padding: clamp(55px, 7vw, 95px) 0;
  background: #fff;
}

.ss-final-cta__box {
  position: relative;
  overflow: hidden;
  padding: clamp(35px, 6vw, 75px);
  border-radius: 24px;
  background: var(--ss-primary);
  color: #fff;
}

/* ELEMENTO DECORATIVO */

.ss-final-cta__box::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}

/* CONTENIDO */

.ss-final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.ss-final-cta__label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.ss-final-cta__title {
  margin: 0 0 19px;
  color: #fff;
  font-size: clamp(29px, 3.6vw, 46px);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.03em;
}

.ss-final-cta__description {
  max-width: 630px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.8;
}

/* BOTÓN */

.ss-final-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  padding: 14px 25px;
  border-radius: 10px;
  background: #fff;
  color: var(--ss-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform .2s ease,
    background .2s ease;
}

.ss-final-cta__button:hover {
  transform: translateY(-3px);
  background: #f1f5f9;
  color: var(--ss-primary);
}

.ss-final-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* UBICACIÓN */

.ss-final-cta__location {
  margin: 23px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

/* MÓVIL */

@media (max-width: 600px) {
  .ss-final-cta {
    padding: 45px 0;
  }

  .ss-final-cta__box {
    padding: 36px 25px;
    border-radius: 17px;
  }

  .ss-final-cta__button {
    width: 100%;
  }

  .ss-final-cta__box::after {
    width: 190px;
    height: 190px;
    right: -90px;
    top: -90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-final-cta__button {
    transition: none;
  }

  .ss-final-cta__button:hover {
    transform: none;
  }
}


/* ===================================
   SSPISOS - TARJETAS MODERNAS
   =================================== */

.ss-categories .ss-category {
  position: relative;
  isolation: isolate;
  min-height: 245px;
  padding: 34px;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 20px;

  box-shadow:
    0 3px 8px rgba(100, 116, 139, .025),
    0 12px 32px rgba(100, 116, 139, .05);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* ELIMINAR DECORACIONES ANTERIORES */

.ss-category::before,
.ss-category::after {
  content: none;
}

/* ACENTOS PASTEL MUY SUAVES */

.ss-category:nth-child(1) {
  background: linear-gradient(145deg, #fff, #f3f8ff);
}

.ss-category:nth-child(2) {
  background: linear-gradient(145deg, #fff, #f1faf7);
}

.ss-category:nth-child(3) {
  background: linear-gradient(145deg, #fff, #fff9f1);
}

.ss-category:nth-child(4) {
  background: linear-gradient(145deg, #fff, #f8f5ff);
}

/* NÚMEROS */

.ss-category .ss-category__number {
  width: 46px;
  height: 46px;
  margin-bottom: 26px;

  background: rgba(255,255,255,.85);
  border: 1px solid #e5eaf1;
  border-radius: 13px;

  color: #60758c;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

/* TÍTULOS */

.ss-category h3 {
  color: #344054;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -.025em;
}

/* DESCRIPCIONES */

.ss-category p {
  color: #667085;
  line-height: 1.75;
}

/* ETIQUETA INFERIOR */

.ss-category .ss-category__tag {
  width: fit-content;
  margin-top: auto;
  padding: 9px 13px;

  background: rgba(255,255,255,.8);
  border: 1px solid #e8edf3;
  border-radius: 8px;

  color: #64748b;
  font-size: 11px;
  letter-spacing: .04em;
  opacity: 1;
}

/* HOVER ELEGANTE */

.ss-categories .ss-category:hover {
  transform: translateY(-5px);
  border-color: #cbd9e8;

  box-shadow:
    0 10px 25px rgba(100,116,139,.055),
    0 20px 45px rgba(100,116,139,.075);
}

/* MÓVILES */

@media (max-width: 600px) {
  .ss-categories .ss-category {
    padding: 26px;
    min-height: 220px;
    border-radius: 16px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .ss-categories .ss-category {
    transition: none;
  }

  .ss-categories .ss-category:hover {
    transform: none;
  }
}
/* ====================================
   SSPISOS - BLOQUE DE TEXTO HOME
   ==================================== */

.ss-home-text {
  padding: clamp(55px, 7vw, 90px) 0;
  background: #f8fafc;
}

.ss-home-text__box {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 50px);
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 22px;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, .03),
    0 18px 40px rgba(15, 23, 42, .04);
}

.ss-home-text h2 {
  margin: 0 0 24px;
  color: var(--ss-primary);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.03em;
}

.ss-home-text h3 {
  margin: 40px 0 18px;
  color: var(--ss-primary);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}

.ss-home-text p {
  margin: 0 0 24px;
  color: #526277;
  font-size: 18px;
  line-height: 1.95;
}

.ss-home-text strong {
  color: #243449;
}

.ss-home-text a {
  color: #2563eb;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .ss-home-text__box {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .ss-home-text p {
    font-size: 17px;
    line-height: 1.85;
  }
}