/**
 * css/home.css — bundle Home (fases 0–4b)
 * Fuente única: tokens + hero + what-we-do + gallery + clients + team.
 * Orden = cascade. Form/footer siguen en style.css.
 * Sin build step: editar este archivo directo.
 */

/* ==========================================================================
   tokens-home (fase 0)
   ========================================================================== */
/**
 * tokens-home.css — variables mínimas Home (Fase 0)
 * No cambia look por sí solo; home-hero.css las consume.
 */
:root {
  --rz-yellow: #FFDE41;
  --rz-yellow-deep: #D6B116;
  --rz-pleca: #C19D0A;
  --rz-pleca-thickness: 20px;
  /* vh (no %): mismo desplazamiento en px en header y .what-we-do
     (un % distinto por elemento generaba el triangulito izq. en móvil) */
  --rz-pleca-slope: 5vh;
  /* Sube solo el borde superior de la pleca (engrosa hacia arriba).
     Mantener bajo: lift alto + mascota baja tapa al personaje. */
  --rz-pleca-lift: 6px;
}


/* ==========================================================================
   home-hero (fase 1)
   ========================================================================== */
/**
 * home-hero.css — Fase 1
 * Pleca de grosor constante + capas mascota/globo.
 * Overrides sobre style.css. Mascota permanece en .video-background.
 */

/* --- Apaga pleca legacy (rotate + height:% → cuña / borde blanco) --- */
.header::after {
  content: none !important;
  display: none !important;
}

.header {
  position: relative;
  z-index: 2;
  background-color: var(--rz-pleca);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0 calc(100% - var(--rz-pleca-slope)));
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0 calc(100% - var(--rz-pleca-slope)));
}

/*
 * Pleca: paralelogramo (misma pendiente arriba/abajo).
 * Grosor en px vía --rz-pleca-thickness → constante en Retina.
 * --rz-pleca-lift sube el borde superior (hacia el triángulo) sin soltar el anclaje inferior.
 */
.header-pleca {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--rz-pleca);
  z-index: 40;
  pointer-events: none;
  -webkit-clip-path: polygon(
    0% calc(100% - var(--rz-pleca-slope) - var(--rz-pleca-thickness) - var(--rz-pleca-lift)),
    100% calc(100% - var(--rz-pleca-thickness) - var(--rz-pleca-lift)),
    100% 100%,
    0% calc(100% - var(--rz-pleca-slope))
  );
  clip-path: polygon(
    0% calc(100% - var(--rz-pleca-slope) - var(--rz-pleca-thickness) - var(--rz-pleca-lift)),
    100% calc(100% - var(--rz-pleca-thickness) - var(--rz-pleca-lift)),
    100% 100%,
    0% calc(100% - var(--rz-pleca-slope))
  );
}

/*
 * Stacking del hero (crítico en mobile):
 * - .container queda en z-index:1 (style.css) → tabs + amarillo por encima del video
 * - .video-background NO debe tener z-index (auto): si crea stacking context,
 *   tapa las tabs (síntoma: video + amarillo sin menú de marcas)
 * - mascota/globo con z-index propio participan en el SC del .header y
 *   quedan sobre el amarillo pero bajo .header-pleca
 */
.video-background {
  z-index: auto;
}

.personaje-img {
  z-index: 2;
}

/* Desktop: altura legacy (casi pegada al globo); no enterrar bajo la pleca */
@media (min-width: 1025px) {
  .personaje-img {
    bottom: 4%;
  }
}

/* Globo: coords de style.css (no solapa la pleca en pantalla) */
.text-box-img {
  z-index: 3;
}

#open-video-btn {
  cursor: pointer;
  z-index: 3;
}

/* Costura / clips de .what-we-do → css/home-what-we-do.css (fase 2) */

@media (prefers-reduced-motion: reduce) {
  .wobble-hor-bottom:hover {
    -webkit-animation: none;
    animation: none;
  }
}

/*
 * Mobile / tablet — hero only (what-we-do vive en home-what-we-do.css)
 */
@media (max-width: 1024px) {
  :root {
    --rz-pleca-thickness: 16px;
    --rz-pleca-slope: 3vh;
    --rz-pleca-lift: 0px; /* sin triángulo SVG en móvil; lift es ajuste desktop */
  }

  .header {
    background-color: var(--rz-yellow);
  }

  /* Video por encima del stacking legacy (style.css: z-index:-1).
   * Sin fondo negro: la banda bajo la caja 16:9 hereda el amarillo del header. */
  #background-video {
    z-index: 0;
  }

  /* Tabs visibles: por encima del video; mascota sigue fuera de este SC */
  .container {
    z-index: 1;
  }

  .tabs {
    position: relative;
    z-index: 2;
  }

  /*
   * Mascota: GIF 400×400. border-box + padding en style.css deforma el replaced
   * element (se ve “estirada”). Quitar padding y forzar proporción intrínseca.
   */
  .personaje-img {
    width: 125px;
    height: auto;
    max-width: 36vw;
    padding: 0;
    background-image: none;
    background-size: 0;
    object-fit: contain;
    aspect-ratio: 1 / 1;
  }

  .text-box-img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  :root {
    --rz-pleca-thickness: 14px;
    --rz-pleca-slope: 2.5vh;
  }

  /* Título dentro del bloque amarillo (no debajo del video) */
  .render-zero-title {
    top: auto;
    left: 50%;
    margin-top: 8vh;
    font-size: 48px;
    line-height: 38px;
    transform: translate(-50%, 0);
  }

  .render-zero-text {
    position: relative;
    top: auto;
    max-width: 350px;
  }

  .personaje-img {
    width: 125px;
    bottom: 12px;
    left: auto;
    right: 2vw;
  }

  .text-box-img {
    width: 95px;
    bottom: 140px;
    left: auto;
    right: 6vw;
  }

  /*
   * EN: "WHO WE ARE" = 3 líneas (ES = 2). Misma tipografía empuja subtítulo/globo.
   * Overrides solo html[lang="en"] — no toca index.php.
   */
  html[lang="en"] .background-container {
    height: 280px;
  }

  html[lang="en"] .render-zero-title {
    margin-top: 5vh;
    font-size: 40px;
    line-height: 40px;
  }

  html[lang="en"] .render-zero-text {
    margin-top: 12px;
    max-width: 320px;
    font-size: 18px;
    line-height: 24px;
  }
}

/* Tablet: globo legacy a bottom:335px queda junto al título; bajarlo hacia la mascota */
@media (min-width: 481px) and (max-width: 1024px) {
  .text-box-img {
    width: 140px;
    bottom: 175px;
    left: 72vw;
  }

  /* EN tablet: 3 líneas — compactar título sin afectar ES */
  html[lang="en"] .render-zero-title {
    font-size: 72px;
    line-height: 68px;
    margin-top: 5vh;
  }

  html[lang="en"] .background-container {
    height: 36vh;
  }
}


/* ==========================================================================
   home-what-we-do (fase 2)
   ========================================================================== */
/**
 * home-what-we-do.css — Fase 2
 * Costura hero↔sección + clips sin doble pleca / cuña.
 * Tipografía / grid / items siguen en style.css.
 */

/*
 * Una sola arista contra el amarillo = .header-pleca (home-hero.css).
 * .what-we-do solo rellena DEBAJO de esa arista (anti pelo blanco).
 * Sin ::before: esa franja extra + el amarillo del tab = “dos plecas”.
 */
.what-we-do {
  position: relative;
  z-index: 1;
  /* Relleno bajo la pleca; el clip evita un 2º tope dorado plano en el amarillo */
  background-color: var(--rz-pleca);
  /*
   * Solape = 2×slope: el tope recortado (0% slope → 100% 0%) coincide con el
   * borde inferior del header (0% 100%-slope → 100% 100%). Un solape menor
   * (slope+thickness) dejaba pelo blanco; uno con ::before creaba 2ª pleca.
   */
  margin-top: calc(-2 * var(--rz-pleca-slope) - 4px);
  overflow: hidden;
  /* Tope = misma pendiente que el borde inferior del hero (vh) */
  -webkit-clip-path: polygon(
    0% var(--rz-pleca-slope),
    100% 0%,
    100% 100%,
    0% 100%
  );
  clip-path: polygon(
    0% var(--rz-pleca-slope),
    100% 0%,
    100% 100%,
    0% 100%
  );
}

.what-we-do::before {
  content: none !important;
  display: none !important;
}

.what-we-do-img-container {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Misma política que home: cover evita tile (bug visto en Food/IA con contain) */
.parallax-bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 1024px) {
  .what-we-do {
    margin-top: calc(-2 * var(--rz-pleca-slope) - 6px);
  }

  .what-we-do-img-container {
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

@media (max-width: 480px) {
  /*
   * En móvil el fondo dorado de style.css + un clip distinto al del hero
   * asomaba como 2ª pleca con pelo amarillo. Transparente: solo .header-pleca.
   */
  .what-we-do {
    background-color: transparent !important;
    -webkit-clip-path: polygon(
      0% var(--rz-pleca-slope),
      100% 0%,
      100% 100%,
      0% 100%
    ) !important;
    clip-path: polygon(
      0% var(--rz-pleca-slope),
      100% 0%,
      100% 100%,
      0% 100%
    ) !important;
  }

  .parallax-bg {
    background-size: cover;
    background-repeat: no-repeat;
  }
}


/* ==========================================================================
   home-gallery (fase 3)
   ========================================================================== */
/**
 * home-gallery.css — Fase 3
 * Galería / filtros / hovers / lightbox / “Ver más”.
 * Overrides sobre style.css. Animaciones .grow / .jello* siguen en style.css
 * (también las usan Food/IA y services).
 */

/* --- Cursors + active tags (antes inline en index.php / index_dev.php) --- */
.filter-button,
.tag-button,
.btn_plus,
.video-item {
  cursor: pointer;
}

.render-zero.active,
#render-zero.active {
  background: #FCCD06;
  color: #fff;
}

.food-is.active,
#food-is.active {
  background: #C44F28;
  color: #fff;
}

.ia-works.active,
#ia-works.active {
  background: #0097A7;
  color: #fff;
}

/* JS (filtros_13.js) pone *-hover en .video-container */
.render-zero-hover {
  border-color: #FCCD06;
  color: #FCCD06;
}

.food-is-hover {
  border-color: #F46747;
  color: #F46747;
}

.ia-works-hover {
  border-color: #0097A7;
  color: #0097A7;
}

/* --- Sección / cabecera filtros --- */
.gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-title-tags-filters-container {
  width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  min-height: 390px;
}

.gallery-projects-title {
  color: #F4AF25;
  font-family: "Benka";
  font-weight: 100;
  font-size: 70px;
}

.gallery-projects-title.render-zero {
  color: #F4AF25;
}

.gallery-projects-title.food-is {
  color: #B53715;
}

.gallery-projects-title.ia-works {
  color: #11D1D1;
}

.gallery-filters-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.gallery-pet {
  position: absolute;
  right: -300px;
  top: 180px;
  transform: translateY(-50%);
  transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 0;
}

.gallery-pet.visible {
  right: 0;
  opacity: 1;
}

.tags-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  margin-bottom: 20px;
}

.tag-button {
  font-family: Benka;
  font-weight: 400;
  font-size: 30px;
  line-height: 45px;
  color: #AEAEAF;
  border: none;
  background: #fff;
  min-height: 60px;
  padding: 10px 15px;
  cursor: pointer;
}

.row1 button {
  min-height: 40px;
  font-family: Poseidon;
  font-size: 26px;
  color: #323034;
  border: 2px solid #FCCD06;
  background: #fff;
  padding: 5px 22px 0 22px;
  margin-bottom: 20px;
  margin-right: 20px;
  cursor: pointer;
}

.row2 button {
  min-height: 40px;
  font-family: Poseidon;
  font-size: 26px;
  color: #AEAEAF;
  border: 2px solid #FCCD06;
  background: #fff;
  padding: 5px 22px 0 22px;
  margin-bottom: 20px;
  margin-right: 20px;
  cursor: pointer;
}

.collaborators-title-container {
  display: flex;
}

.collaborators-title-container h3 {
  padding-right: 12px;
  font-family: Poseidon;
  font-size: 40px;
  line-height: 45px;
  font-weight: normal;
}

.filters-buttons-container-collaborators {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  row-gap: 20px;
  column-gap: 20px;
  margin-bottom: 20px;
}

.filters-buttons-container-collaborators button {
  width: 150px;
  height: 60px;
  font-family: Poseidon;
  font-size: 20px;
  border: 3px solid #FCCD06;
  background: #fff;
  transition: color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1);
  cursor: pointer;
  text-decoration: none !important;
  line-height: normal;
}

div#colaboradores-row button {
  text-decoration: none !important;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.filter-button.render-zero {
  border: 3px solid #FFDE41;
  transition: color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.filter-button.food-is {
  border: 3px solid #C44F28;
  transition: color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.filter-button.ia-works {
  border: 3px solid #0097A7;
  transition: color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.filter-button.render-zero:hover {
  background: #FFDE41;
  color: #FFFFFF;
}

.filter-button.food-is:hover {
  background: #C44F28;
  color: #FFFFFF;
}

.filter-button.ia-works:hover {
  background: #0097A7;
  color: #FFFFFF;
}

/* --- Grid de items --- */
.videos-container {
  display: grid;
  align-items: center;
  max-width: 1815px;
  grid-template-columns: repeat(3, 1fr);
}

.video-container {
  position: relative;
  border: 10px solid rgba(0, 0, 0, 0);
  transition: border-color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1),
    transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.5);
  overflow: hidden;
}

.video-container.border-red.hovered:hover {
  border-color: #FCCD06;
}

.video-container.border-yellow.hovered:hover {
  border-color: #F46747;
}

.video-container.border-blue.hovered:hover {
  border-color: #0097A7;
}

.video-item {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-item img {
  display: block;
  width: 100%;
  height: 323px;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.video-container::after,
.video-item.has-video::after,
.video-item.has-image::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 55px;
  color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.5s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.video-container::after {
  content: "";
}

.video-item.has-video::after {
  content: "▶";
}

.video-item.has-image::after {
  content: "+";
}

.video-item.hovered:hover::after,
.video-container.hovered:hover::after,
.video-item.border-red.hovered:hover::after,
.video-container.border-red.hovered:hover::after {
  color: #FCCD06;
}

.video-item.border-yellow.hovered:hover::after,
.video-container.border-yellow.hovered:hover::after {
  color: #F46747;
}

.video-item.border-blue.hovered:hover::after,
.video-container.border-blue.hovered:hover::after {
  color: #0097A7;
}

.video-item.render-zero.has-video:hover::after,
.video-item.render-zero.has-image:hover::after {
  color: #F4AF25;
}

.video-item.food-is.has-video:hover::after,
.video-item.food-is.has-image:hover::after {
  color: #B53715;
}

.video-item.ia-works.has-video:hover::after,
.video-item.ia-works.has-image:hover::after {
  color: #11D1D1;
}

.video-element {
  display: none;
  width: 100%;
  height: 100%;
}

.video-item.fullscreen video {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: black;
}

#image-to-open {
  display: none;
}

.video-item.fullscreen .image-to-open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1000;
  background-color: black;
}

.close-button {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  font-size: 30px;
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

.video-item.fullscreen .close-button {
  display: block;
}

/* --- Lightbox --- */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-lightbox.is-open {
  display: flex;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 90vh;
  pointer-events: auto;
}

.gallery-lightbox-media img,
.gallery-lightbox-media video {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: #000;
}

.gallery-lightbox-image {
  cursor: pointer;
}

.gallery-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10051;
  font-size: 36px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
  color: #FCCD06;
}

/* --- Ver más --- */
.gallery-ver-mas-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-button {
  border: none;
  padding: 14px;
  margin: 55px 0;
  cursor: pointer;
}

.load-more-button.render-zero {
  background-color: #FFDE41;
}

.load-more-button.food-is {
  background-color: #C44F28;
}

.load-more-button.ia-works {
  background-color: #0097A7;
}

.load-more-text {
  font-size: 34px;
  line-height: 25px;
  font-family: Poseidon;
  margin-right: 10px;
  color: #FFDE41;
}

.load-more-text.render-zero {
  color: #FFDE41;
}

.load-more-text.food-is {
  color: #C44F28;
}

.load-more-text.ia-works {
  color: #0097A7;
}

.load-more-button img {
  width: 30px;
}

/* --- Laptop angosto (1025–1366) --- */
@media (min-width: 1025px) and (max-width: 1366px) {
  .gallery-projects-title {
    font-weight: 200;
    font-size: 60px;
  }

  .tag-button {
    font-size: 26px;
    min-height: 70px;
  }

  .row1 button,
  .row2 button {
    min-height: 50px;
    font-size: 26px;
    padding: 0 20px;
    margin-bottom: 20px;
    margin-right: 20px;
  }

  .gallery-filters-container {
    padding-left: 145px;
  }

  .filters-buttons-container-collaborators {
    width: 65vw;
  }

  .filters-buttons-container-collaborators button {
    width: auto;
    height: 55px;
    font-size: 18px;
  }

  .collaborators-title-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
  }

  .tags-container {
    margin-bottom: 20px;
  }
}

/* --- Tablet --- */
@media (min-width: 481px) and (max-width: 1024px) {
  .header-title-tags-filters-container {
    width: 100%;
    padding: 0 20px;
  }

  .tags-container {
    margin-bottom: 0;
  }

  .tag-button {
    font-size: 16px;
    min-height: 0;
    line-height: 20px;
  }

  .filters-buttons-container.row2 {
    padding-top: 10px;
  }

  .row1 button {
    min-height: 22px;
    font-size: 20px;
    padding: 5px 12px 0 12px;
    margin-bottom: 0;
    margin-right: 4px;
  }

  .row2 button {
    min-height: 0;
    font-size: 20px;
    padding: 5px 12px 0 12px;
    margin-bottom: 0;
    margin-right: 15px;
  }

  .filters-buttons-container-collaborators {
    width: 90vw;
    margin-bottom: 20px;
    row-gap: 10px;
    column-gap: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .filters-buttons-container-collaborators button {
    width: 100%;
    height: 46px;
    font-size: 16px;
  }

  .gallery-pet {
    top: 185px;
  }

  .gallery-filters-container {
    padding-top: 200px;
  }

  .filters-inner-container.filters-render-zero {
    width: 100%;
  }

  .collaborators-title-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
}

/* --- Móvil --- */
@media (max-width: 480px) {
  .header-title-tags-filters-container {
    width: 100%;
    min-height: 0;
    padding: 0 20px;
  }

  .gallery-pet {
    top: 110px;
    width: 150px;
  }

  .gallery-projects-title {
    font-size: 45px;
  }

  .tag-button {
    color: #AEAEAF;
    border: none;
    background: #fff;
    min-height: 0;
    font-family: Benka;
    font-size: 16px;
    line-height: 20px;
  }

  .row1 button,
  .row2 button {
    font-size: 16px;
    padding: 5px 5px 0 5px;
    min-height: 35px;
    margin-bottom: 10px;
    margin-right: 10px;
  }

  .filters-buttons-container-collaborators {
    width: 100%;
    display: grid;
    row-gap: 10px;
    column-gap: 5px;
    margin-bottom: 10px;
  }

  .filters-buttons-container-collaborators button {
    width: 100%;
    height: 40px;
    font-size: 14px;
    padding: 5px 0 0 0;
  }

  .gallery-filters-container {
    padding-top: 180px;
  }

  .filters-inner-container.filters-render-zero {
    width: 100%;
  }

  .collaborators-title-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .video-item img {
    height: 120px;
  }
}


/* ==========================================================================
   home-clients (fase 4a)
   ========================================================================== */
/**
 * home-clients.css — Fase 4a (extracción)
 * Sección clientes: infinity slider + marquees + logos.
 * Copia fiel desde style.css — sin retocar pleca (::before/::after + rotate).
 * Microfase B (técnica hero) solo si tras smoke hace falta.
 */

/* --- Contenedor amarillo + plecas legacy (sin cambiar) --- */
.our-clients-section {
  width: 100%;
}

.infinity-slider-container {
  position: relative;
  height: 60vh;
  background-color: #FFDE41;
  clip-path: polygon(0% 0%, 100% 5%, 100% 100%, 0 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.infinity-slider-container::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 0;
  width: 100%;
  height: 5%;
  background-color: #C19D0A;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 95%);
  z-index: 9999;
  transform: rotate(1.5deg);
}

.infinity-slider-container::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 5%;
  background-color: #C19D0A;
  clip-path: polygon(0% 0%, 100% 5%, 100% 100%, 0% 100%);
  z-index: 9999;
  transform: rotate(1.5deg);
}

/* --- Marquee genérico (legacy; Home usa marquee-1/2) --- */
.marquee-w {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.marquee {
  position: absolute;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
  min-width: 100%;
  width: 100%;
}

.marquee span {
  display: inline-block;
  font-family: Poseidon;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: lowercase;
  -webkit-text-stroke: 1px #313131;
  white-space: nowrap;
  min-width: 100%;
  height: 100%;
  line-height: 77px;
  font-size: 80px;
  animation: marquee 0.5s;
  animation-timeline: scroll(root y);
}

@keyframes marquee {
  100% {
    transform: translate(-20%, 0);
  }
}

.marquee-w-1 {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.marquee-1 {
  position: absolute;
  display: block;
  white-space: nowrap;
  height: 100%;
  min-width: 100%;
  width: 100%;
}

.marquee-1 span {
  color: hsla(0, 0%, 100%, 0);
  -webkit-text-stroke: 2px #F9AD15;
  display: inline-block;
  font-family: Poseidon;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  text-align: center;
  font-weight: normal;
  white-space: nowrap;
  min-width: 100%;
  height: 100%;
  line-height: 77px;
  font-size: 80px;
}

.marquee-w-2 {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.marquee-2 {
  position: absolute;
  display: block;
  white-space: nowrap;
  height: 100%;
  min-width: 100%;
  width: 100%;
}

.marquee-2 span {
  color: #F99819;
  display: inline-block;
  font-family: Poseidon;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  text-align: center;
  font-weight: normal;
  white-space: nowrap;
  min-width: 100%;
  height: 100%;
  line-height: 77px;
  font-size: 80px;
}

/* --- Logos --- */
.client-logo-wrapper {
  margin-top: 50px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.client-logo-container {
  display: flex;
  white-space: nowrap;
  width: 200%;
  animation: scroll 30s linear infinite;
}

.client-logo {
  display: inline-block;
  width: 150px;
  height: auto;
  margin-right: 20px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ==========================================================================
   home-team (fase 4b)
   ========================================================================== */
/**
 * home-team.css — Fase 4b (Team / “Conoce al equipo”)
 * Extracción desde style.css. Incluye fix cross-browser móvil
 * (cef6176): height:auto + padding-top + img top fijo — evita que
 * el texto se meta bajo / se pegue a la foto (Safari/% top).
 */

.team-section {
  max-width: 1600px;
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
  width: 100%;
}

.team-section h3 {
  color: #F4AF25;
  font-size: 80px;
  line-height: 58px;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-top: 65px;
  font-family: Benka;
  font-weight: normal;
}

.cards-container {
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: space-around;
  /* Solo vertical: margin horizontal + width:100% ensanchaba el doc ~20–40px
     → scroll horizontal y franja blanca a la derecha en desktop */
  margin: 20px 0;
  box-sizing: border-box;
}

.team-card {
  width: 43%;
  height: 690px;
  margin-top: 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
}

.team-card-buttons-container {
  font-family: Poseidon;
  color: #F9CB08;
  position: absolute;
  top: 185px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: end;
  gap: 17px;
}

.team-card-buttons-container a {
  background-color: #323034;
  padding: 10px 17px;
  text-decoration: none;
  color: #F9CB08;
  width: 192px;
  font-size: 30px;
}

.plus-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: #323034;
  border-radius: 10px;
}

.team-card-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
}

.team-card-modal-content {
  position: relative;
  width: fit-content;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}

.team-card-image {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.team-card-close {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

.team-card-close:hover,
.team-card-close:focus {
  color: #aaa;
}

body.no-scroll {
  overflow: hidden;
}

#team-plus-icon-img {
  width: 26px;
  height: 26px;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.team-card:nth-child(1) {
  background: linear-gradient(to bottom, #F9CB08 50%, #FFDD4D 50%);
}

.team-card:nth-child(3) {
  background: linear-gradient(to bottom, #FFDD4D 50%, #F9CB08 50%);
}

.team-card img {
  width: 307px;
  height: 307px;
  background: #808285;
  border-radius: 75px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -84%);
}

.team-card h4 {
  font-size: 32px;
  font-weight: bold;
  line-height: 30px;
  color: #000000;
  font-family: Logotype;
}

.team-card p {
  width: 528px;
  padding: 10px 32px 20px 22px;
  font-size: 22px;
  font-weight: normal;
  line-height: 30px;
  color: #000000;
  font-family: Quicksand;
}

/* --- Tablet --- */
@media (min-width: 481px) and (max-width: 1024px) {
  .team-section {
    align-items: center;
  }

  .team-card {
    width: 75%;
    height: 735px;
  }

  .team-card img {
    width: 307px;
    height: 307px;
    background: #808285;
    border-radius: 75px;
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -84%);
  }

  .team-card-buttons-container {
    font-family: Poseidon;
    color: #F9CB08;
    position: absolute;
    top: 52%;
    right: 81px;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    gap: 17px;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-items: center;
    box-sizing: border-box;
  }
}

/* --- Móvil: fix cross-browser (texto no se pega / solapa la foto) --- */
@media (max-width: 480px) {
  .team-section {
    align-items: center;
    padding: 0 20px;
  }

  /*
   * Antes: height fijo + img top:% + translateY(-84%) → en Safari/Chrome
   * el bloque de texto subía y se pegaba / metía bajo la foto.
   * Ahora: reserva espacio arriba (padding-top), imagen anclada en px.
   */
  .team-card {
    width: 94%;
    height: auto;
    min-height: 500px;
    padding-top: 270px;
    justify-content: flex-start;
  }

  .team-card img {
    width: 225px;
    height: 225px;
    background: #808285;
    border-radius: 75px;
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .team-card p {
    width: 80%;
    padding: 0;
    font-size: 16px;
    line-height: 18px;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-items: center;
    box-sizing: border-box;
  }

  .team-card-image {
    max-width: 100%;
  }

  .team-card-buttons-container {
    font-family: Poseidon;
    color: #F9CB08;
    position: absolute;
    top: 52%;
    right: 12%;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    gap: 17px;
  }

  .team-card-buttons-container a {
    font-size: 17px;
  }

  .plus-button {
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
  }

  #team-plus-icon-img {
    width: 16px;
    height: 16px;
  }
}
