/* === TRUE SURFING HOME — scoped .ts-home === */
/* Tarea #07 — 2026-06-10 */

.ts-home {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ts-home-section {
  padding: 72px 0;
}

.ts-home-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ts-home-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4ECDC4;
  margin-bottom: 12px;
}

.ts-home-titulo {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a1a;
  margin: 0 0 16px;
}

/* === SELECTOR NEOPRENO === */
.ts-selector {
  background: linear-gradient(135deg, #0a2832 0%, #0d4753 100%);
  color: #fff;
  padding: 72px 24px;
}

.ts-selector-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ts-selector-head {
  text-align: center;
  margin-bottom: 40px;
}

.ts-selector-head h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.ts-selector-head p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

.ts-selector-paso {
  margin-bottom: 28px;
}

.ts-selector-paso-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.ts-selector-opts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ts-opt {
  padding: 14px 22px;
  border: 1px solid #2a4a52;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  border-radius: 0;
}

.ts-opt:hover {
  border-color: #4ECDC4;
}

.ts-opt.active {
  border-color: #4ECDC4;
  background: rgba(78, 205, 196, 0.12);
  color: #4ECDC4;
}

.ts-resultado {
  background: #fff;
  color: #1a1a1a;
  padding: 36px;
  margin-top: 32px;
  display: none;
}

.ts-resultado.visible {
  display: block;
}

.ts-resultado-grid {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.ts-resultado-texto {
  flex: 1;
  min-width: 280px;
}

.ts-resultado-grosor {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ts-resultado-grosor span {
  color: #0d8a6f;
}

.ts-resultado-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ts-resultado-regla {
  border: 1px solid #e6e4df;
  padding: 12px 16px;
  background: #f8f7f4;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0;
}

.ts-resultado-card {
  width: 220px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
}

.ts-resultado-card-img {
  height: 160px;
  background: #f8f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 12px;
}

.ts-resultado-card-body {
  padding: 16px;
}

.ts-resultado-card-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  border-radius: 0;
}

.ts-resultado-card-cta:hover {
  background: #4ECDC4;
  color: #fff;
}

/* === MANIFIESTO === */
.ts-manifiesto {
  background: #0d0d0d;
  color: #fff;
  padding: 90px 24px;
  text-align: center;
}

.ts-manifiesto h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 860px;
  margin: 0 auto;
  letter-spacing: -0.5px;
}

.ts-manifiesto h2 .dim {
  color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .ts-home-titulo {
    font-size: 26px;
  }
  .ts-selector-head h2 {
    font-size: 26px;
  }
  .ts-manifiesto h2 {
    font-size: 26px;
  }
  .ts-resultado-grid {
    flex-direction: column;
  }
  .ts-resultado-card {
    width: 100%;
  }
  .ts-selector-opts {
    gap: 8px;
  }
  .ts-opt {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* === HOME: BANNERS DE CATEGORIA === */
body#index .ts-home-cat-banners {
  background: #ffffff;
  clear: both;
  display: flow-root;
  padding: 42px 0 26px;
  width: 100%;
}

body#index .ts-home-cat-banners__inner {
  box-sizing: border-box;
  clear: both;
  margin: 0 auto;
  max-width: 1370px;
  padding: 0 35px;
  width: 100%;
}

body#index .ts-home-cat-banners__grid {
  box-sizing: border-box;
  clear: both;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  width: 100% !important;
}

body#index .ts-home-cat-card {
  align-items: flex-start;
  aspect-ratio: 16 / 9;
  background-color: #123544;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 245px;
  min-width: 0;
  overflow: hidden;
  padding: 30px;
  position: relative;
  text-decoration: none;
}

body#index .ts-home-cat-card::before {
  background: linear-gradient(180deg, rgba(8, 24, 32, 0.04) 0%, rgba(8, 24, 32, 0.54) 58%, rgba(8, 24, 32, 0.88) 100%);
  content: "";
  inset: 0;
  position: absolute;
  transition: opacity 0.25s ease;
}

body#index .ts-home-cat-card:hover::before {
  opacity: 0.92;
}

body#index .ts-home-cat-card--neoprenos {
  background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-neoprenos.jpg"), linear-gradient(135deg, #123544, #1b746f);
}

body#index .ts-home-cat-card--surf {
  background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-surf.jpg"), linear-gradient(135deg, #114456, #2a8b96);
}

body#index .ts-home-cat-card--surfskate {
  background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-surfskate.jpg"), linear-gradient(135deg, #153948, #16837a);
}

body#index .ts-home-cat-card__eyebrow,
body#index .ts-home-cat-card__title,
body#index .ts-home-cat-card__subtitle {
  position: relative;
  z-index: 1;
}

body#index .ts-home-cat-card__eyebrow {
  color: #4ecdc4;
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

body#index .ts-home-cat-card__title {
  display: block;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  line-height: 0.96;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

body#index .ts-home-cat-card__subtitle {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 12px;
  max-width: 280px;
}

/* === HOME: DEL BLOG === */
body#index .ts-home-blog {
  background: #f8f7f4;
  clear: both;
  display: flow-root;
  padding: 58px 0 54px;
  width: 100%;
}

body#index .ts-home-blog__inner {
  box-sizing: border-box;
  clear: both;
  margin: 0 auto;
  max-width: 1370px;
  padding: 0 35px;
  width: 100%;
}

body#index .ts-home-blog__header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

body#index .ts-home-blog__title {
  color: #101828;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

body#index .ts-home-blog__all {
  color: #008e82;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

body#index .ts-home-blog__grid {
  box-sizing: border-box;
  clear: both;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  width: 100% !important;
}

body#index .ts-home-blog-card {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body#index .ts-home-blog-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #123544 0%, #0b8f86 100%);
  display: block;
  overflow: hidden;
  position: relative;
}

body#index .ts-home-blog-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
  width: 100%;
}

body#index .ts-home-blog-card:hover .ts-home-blog-card__media img {
  transform: scale(1.035);
}

body#index .ts-home-blog-card__placeholder {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 13px;
  font-weight: 500;
  height: 100%;
  justify-content: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body#index .ts-home-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

body#index .ts-home-blog-card__meta {
  align-items: center;
  color: #008e82;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

body#index .ts-home-blog-card__meta time {
  color: #667085;
  font-weight: 400;
}

body#index .ts-home-blog-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 12px;
}

body#index .ts-home-blog-card__title a {
  color: #101828;
  text-decoration: none;
}

body#index .ts-home-blog-card__excerpt {
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991px) {
  body#index .ts-home-cat-card--neoprenos {
    background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-neoprenos-mobile.jpg"), linear-gradient(135deg, #123544, #1b746f);
  }

  body#index .ts-home-cat-card--surf {
    background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-surf-mobile.jpg"), linear-gradient(135deg, #114456, #2a8b96);
  }

  body#index .ts-home-cat-card--surfskate {
    background-image: linear-gradient(135deg, rgba(11, 45, 55, 0.08), rgba(11, 45, 55, 0.24)), url("/themes/Runcycle/assets/img/banners/cat-surfskate-mobile.jpg"), linear-gradient(135deg, #153948, #16837a);
  }

  body#index .ts-home-cat-banners {
    padding: 28px 0 18px;
  }

  body#index .ts-home-cat-banners__inner,
  body#index .ts-home-blog__inner {
    padding: 0 18px;
  }

  body#index .ts-home-cat-banners__grid,
  body#index .ts-home-blog__grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  body#index .ts-home-cat-card {
    aspect-ratio: 16 / 8;
    min-height: 178px;
    padding: 24px;
  }

  body#index .ts-home-blog {
    padding: 38px 0 36px;
  }

  body#index .ts-home-blog__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body#index .ts-home-blog-card__body {
    padding: 18px;
  }
}

@media (max-width: 575px) {
  body#index .ts-home-cat-card {
    aspect-ratio: 16 / 10;
    min-height: 158px;
    padding: 20px;
  }
}
