/* Home page — hero, navigation & featured section */

/* —— Hero pantalla completa (sin carrusel) —— */
body.page-home .cc-hero-banner {
  position: relative;
  margin-top: var(--cc-home-header-h);
  min-height: calc(100svh - var(--cc-home-header-h));
  min-height: calc(100vh - var(--cc-home-header-h));
  max-height: 900px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0a0a0a;
}

body.page-home .cc-hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page-home .cc-hero-banner__bg,
body.page-home .cc-hero-banner__bg--static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Carrusel de obras en cartel */
body.page-home .cc-hero-banner__slider {
  position: absolute;
  inset: 0;
}

body.page-home .cc-hero-banner__slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

body.page-home .cc-hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}

body.page-home .cc-hero-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

body.page-home .cc-hero-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

body.page-home .cc-hero-banner__slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

body.page-home .cc-hero-banner__slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--cc-transition), border-color var(--cc-transition);
}

body.page-home .cc-hero-banner__slider-dot.is-active,
body.page-home .cc-hero-banner__slider-dot:hover {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
}

body.page-home .cc-hero-banner__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}

body.page-home .cc-hero-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 72px) clamp(20px, 4vw, 40px) clamp(24px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

body.page-home .cc-hero-banner__tag {
  font-family: var(--cc-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc-accent);
  margin: 0 0 14px;
}

body.page-home .cc-hero-banner__title {
  font-family: var(--cc-font) !important;
  font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.02 !important;
  color: #fff !important;
  margin: 0 0 16px !important;
}

body.page-home .cc-hero-banner__lead {
  font-family: var(--cc-font);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  max-width: 36ch;
}

body.page-home .cc-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.page-home .cc-hero-banner__rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--cc-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.page-home .cc-hero-banner__rail-label {
  font-family: var(--cc-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.page-home .cc-hero-banner__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

body.page-home .cc-hero-banner__thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform var(--cc-transition);
}

body.page-home .cc-hero-banner__thumb:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

body.page-home .cc-hero-banner__thumb img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--cc-transition);
}

body.page-home .cc-hero-banner__thumb:hover img {
  border-color: var(--cc-accent);
}

body.page-home .cc-hero-banner__thumb span {
  font-family: var(--cc-font);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  max-width: 88px;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .cc-hero-banner__thumb:hover {
    transform: none;
  }

  body.page-home .cc-hero-banner__slide {
    transition: none;
  }
}

/* La compañía (home) */
.cc-home-company {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--cc-bg);
}

.cc-home-company__layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.cc-home-company__body {
  padding: clamp(40px, 6vw, 56px);
  background: var(--cc-bg-subtle);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-border);
}

.cc-home-company__team {
  max-width: 1280px;
  margin: clamp(48px, 6vw, 64px) auto 0;
  padding: 0 24px;
}

.cc-home-company__title {
  font-family: var(--cc-font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cc-black);
  margin: 0 0 20px;
  line-height: 1.15;
}

.cc-home-company__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cc-text);
  margin: 0 0 1.25em;
}

.cc-home-company__text strong {
  color: var(--cc-black);
  font-weight: 600;
}

.cc-home-company__text em {
  font-style: normal;
  font-weight: 600;
  color: var(--cc-black);
}

.cc-home-company__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.cc-home-company__highlights li {
  font-family: var(--cc-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  color: var(--cc-dark);
}

.cc-home-company__team-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.cc-home-company__team-header h3 {
  font-family: var(--cc-font);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-black);
  margin: 0;
}

.cc-home-company__team-link {
  font-family: var(--cc-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  text-decoration: none;
  transition: color var(--cc-transition);
}

.cc-home-company__team-link:hover {
  color: var(--cc-black);
  text-decoration: none;
}

.cc-home-team-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cc-home-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform var(--cc-transition);
}

.cc-home-team-member:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.cc-home-team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-border);
  transition: box-shadow var(--cc-transition);
}

.cc-home-team-member:hover img {
  box-shadow: var(--cc-shadow-hover);
}

.cc-home-team-member span {
  font-family: var(--cc-font);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--cc-dark);
  line-height: 1.3;
}

/* CTA band */
.cc-home-cta {
  padding: clamp(48px, 8vw, 80px) 24px;
  background: var(--cc-bg-subtle);
  text-align: center;
}

.cc-home-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.cc-home-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-black);
  margin: 0 0 12px;
}

.cc-home-cta p {
  font-size: 16px;
  color: var(--cc-text-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.cc-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

body.page-home #hover {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-home .cc-hero-banner {
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
  }

  body.page-home .cc-hero-banner__media {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: clamp(300px, 58vh, 440px);
  }

  body.page-home .cc-hero-banner__shade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      transparent 100%
    );
  }

  body.page-home .cc-hero-banner__inner {
    position: relative;
    z-index: 3;
    flex: 1;
    margin-top: -72px;
    padding: 0 16px 20px;
    gap: 16px;
    justify-content: flex-end;
  }

  body.page-home .cc-hero-banner__title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    margin-bottom: 10px !important;
  }

  body.page-home .cc-hero-banner__lead {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: none;
  }

  body.page-home .cc-hero-banner__actions {
    gap: 10px;
  }

  body.page-home .cc-hero-banner__actions .cc-btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 12px 16px;
    font-size: 11px;
  }

  body.page-home .cc-hero-banner__rail {
    margin-top: 4px;
    padding: 14px 12px;
    border-radius: var(--cc-radius);
    background: rgba(0, 0, 0, 0.35);
  }

  body.page-home .cc-hero-banner__thumb {
    width: 76px;
  }

  body.page-home .cc-hero-banner__thumb img {
    width: 64px;
    height: 80px;
  }

  body.page-home .cc-hero-banner__thumb span {
    font-size: 9px;
    max-width: 76px;
  }

  .cc-home-company__layout {
    padding: 0 16px;
  }

  .cc-home-company__team {
    padding: 0 16px;
  }

  .cc-home-team-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cc-home-team-member {
    flex: 0 0 120px;
    scroll-snap-align: start;
  }
}

@media (min-width: 769px) {
  body.page-home .cc-hero-banner__slider-dots {
    bottom: auto;
    top: 50%;
    right: clamp(20px, 4vw, 40px);
    left: auto;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 10px;
  }

  .cc-home-team-strip {
    grid-template-columns: repeat(6, 1fr);
  }

  body.page-home .cc-hero-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 48px;
  }

  body.page-home .cc-hero-banner__content {
    flex: 1;
    min-width: 0;
  }

  body.page-home .cc-hero-banner__rail {
    flex: 0 0 auto;
    width: min(100%, 520px);
  }

  body.page-home .cc-hero-banner__thumbs {
    flex-wrap: nowrap;
  }
}

