﻿/* ==========================================================================
   Landing Colectivos Joma GRX â€” /colectivos-jomagrx
   ========================================================================== */

body.cms-id-colectivos .breadcrumb,
body#cms .weu-colectivos ~ .breadcrumb,
body.page-cms .breadcrumb__wrapper {
  /* breadcrumb ok; landing is full-bleed below */
}

body.page-cms:has(.weu-colectivos) #wrapper > .columns-container.container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-cms:has(.weu-colectivos) #center-column {
  width: 100%;
  max-width: none;
}

.weu-colectivos {
  --weu-col-gap: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--weu-color-black);
  background: var(--weu-white);
}

.weu-colectivos .container-md {
  max-width: var(--weu-width-container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* —— CTA → Primary (weu-buttons.css). Solo layout local. —— */
.weu-colectivos .weu-checkout-cta {
  width: auto;
}

.weu-colectivos__hero {
  position: relative;
  min-height: min(56vh, 28rem);
  aspect-ratio: 2300 / 650;
  max-height: min(72vh, 36rem);
  display: flex;
  align-items: flex-end;
  color: var(--weu-white);
  overflow: hidden;
}

.weu-colectivos__hero-media {
  position: absolute;
  inset: 0;
}

.weu-colectivos__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.weu-colectivos__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 16, 0.12) 0%, rgba(10, 18, 16, 0.55) 48%, rgba(10, 18, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 18, 40, 0.45) 0%, transparent 58%);
}

.weu-colectivos__hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .weu-colectivos__hero-inner {
    margin-left: max(1rem, calc((100% - var(--weu-width-container, 72rem)) / 2 + 1rem));
    margin-right: auto;
  }
}

.weu-colectivos__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weu-color-yellow, #eefd76);
}

.weu-colectivos__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.weu-colectivos__lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}

.weu-colectivos__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.weu-colectivos__link-ghost {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.weu-colectivos__link-ghost:hover,
.weu-colectivos__link-ghost:focus-visible {
  color: var(--weu-white);
}

/* â€”â€” Sections â€”â€” */
.weu-colectivos__section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.weu-colectivos__section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.weu-colectivos__section-head--center {
  margin-inline: auto;
  text-align: center;
}

.weu-colectivos__h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.weu-colectivos__intro {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--weu-color-muted);
}

/* â€”â€” Benefits â€”â€” */
.weu-colectivos__ventajas {
  background: var(--weu-color-grey-light, #fafafa);
}

.weu-colectivos__benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .weu-colectivos__benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .weu-colectivos__benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.weu-colectivos__benefit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.15rem;
  background: var(--weu-white);
  border: 1px solid var(--weu-color-border);
  border-radius: 0.5rem;
}

.weu-colectivos__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  border-radius: 0.4rem;
  background: var(--weu-color-blue-soft);
  color: var(--weu-color-blue);
}

.weu-colectivos__benefit-icon .jmgx-heroicon {
  width: 1.25rem;
  height: 1.25rem;
}

.weu-colectivos__benefit-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.weu-colectivos__benefit-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--weu-color-muted);
}

/* â€”â€” Steps â€”â€” */
.weu-colectivos__pasos {
  background: var(--weu-white);
}

.weu-colectivos__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .weu-colectivos__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.weu-colectivos__step {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  border-top: 3px solid var(--weu-color-blue);
  background: var(--weu-color-grey-light, #fafafa);
}

.weu-colectivos__step-num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--weu-color-blue);
}

.weu-colectivos__step-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.weu-colectivos__step-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--weu-color-muted);
}

/* â€”â€” Works â€”â€” */
.weu-colectivos__trabajos {
  background: var(--weu-color-grey-light, #fafafa);
}

.weu-colectivos__works {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .weu-colectivos__works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(11rem, 28vw, 15rem);
    gap: 0.875rem;
  }

  .weu-colectivos__work--wide {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .weu-colectivos__works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(12.5rem, 17vw, 16rem);
    gap: 1rem;
  }
}

.weu-colectivos__work {
  margin: 0;
  min-width: 0;
}

.weu-colectivos__work-figure {
  position: relative;
  height: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.625rem;
  background: #e6e8ec;
}

@media (min-width: 640px) {
  .weu-colectivos__work-figure {
    aspect-ratio: auto;
  }
}

.weu-colectivos__work-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.weu-colectivos__work-figure:hover .weu-colectivos__work-img,
.weu-colectivos__work-figure:focus-within .weu-colectivos__work-img {
  transform: scale(1.05);
}

.weu-colectivos__work-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2.75rem 1rem 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 16, 0) 0%,
    rgba(10, 18, 16, 0.42) 45%,
    rgba(10, 18, 16, 0.82) 100%
  );
  color: var(--weu-white);
  pointer-events: none;
  transition: background 0.3s ease;
}

.weu-colectivos__work-figure:hover .weu-colectivos__work-caption {
  background: linear-gradient(
    180deg,
    rgba(10, 18, 16, 0) 0%,
    rgba(10, 18, 16, 0.55) 45%,
    rgba(10, 18, 16, 0.9) 100%
  );
}

.weu-colectivos__work-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weu-color-yellow, #eefd76);
}

.weu-colectivos__work-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.weu-colectivos__works-note {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--weu-color-muted);
}

.weu-colectivos__works-note a {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--weu-color-blue);
}

/* â€”â€” Contact â€”â€” */
.weu-colectivos__contacto {
  background: var(--weu-color-navy, #14243a);
  color: var(--weu-white);
}

.weu-colectivos__contacto .weu-colectivos__h2,
.weu-colectivos__contacto .weu-colectivos__intro {
  color: var(--weu-white);
}

.weu-colectivos__contacto .weu-colectivos__intro {
  color: rgba(255, 255, 255, 0.78);
}

.weu-colectivos__contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .weu-colectivos__contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.weu-colectivos__contact-info-title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.weu-colectivos__contact-info-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.weu-colectivos__contact-list {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.weu-colectivos__contact-row dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--weu-color-yellow, #eefd76);
}

.weu-colectivos__contact-row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.weu-colectivos__contact-row a {
  color: var(--weu-white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Panel formulario â€” mismo lenguaje que /contacto */
.weu-colectivos__contact-form-wrap {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: calc(var(--weu-radius-default, 0.35rem) * 2);
  background: var(--weu-color-black);
  color: var(--weu-white);
  border: 0;
}

.weu-colectivos__contact-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weu-color-yellow, #eefd76);
}

.weu-colectivos__contact-form-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--weu-white);
}

.weu-colectivos__form {
  display: grid;
  gap: 1rem;
}

.weu-colectivos__field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .weu-colectivos__field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.weu-colectivos__field .form-label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.875rem;
}

.weu-colectivos__field .form-control,
.weu-colectivos__field .form-select {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--weu-white);
}

.weu-colectivos__field .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.weu-colectivos__field .form-control:focus,
.weu-colectivos__field .form-select:focus {
  border-color: var(--weu-color-yellow, #eefd76);
  box-shadow: 0 0 0 3px rgba(238, 253, 118, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--weu-white);
  outline: none;
}

.weu-colectivos__field .form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23eefd76'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.weu-colectivos__field .form-select option {
  color: var(--weu-color-black);
  background: var(--weu-white);
}

.weu-colectivos__field textarea.form-control {
  min-height: 8.5rem;
  resize: vertical;
}

.weu-colectivos__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.weu-colectivos__check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.weu-colectivos__legal-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.weu-colectivos__legal-link:hover,
.weu-colectivos__legal-link:focus-visible {
  color: var(--weu-color-yellow, #eefd76);
}

/* Contacto CTA → Primary accent amarillo (geometría weu-buttons). */
.weu-colectivos__contacto .weu-checkout-cta.weu-colectivos__cta {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--weu-color-yellow);
  color: var(--weu-color-on-yellow);
}

.weu-colectivos__contacto .weu-checkout-cta.weu-colectivos__cta:hover,
.weu-colectivos__contacto .weu-checkout-cta.weu-colectivos__cta:focus-visible {
  background: var(--weu-color-yellow-dark, #d4e85a);
  color: var(--weu-color-on-yellow);
}

.weu-colectivos__contacto .weu-checkout-cta__icon .jmgx-heroicon {
  background-color: var(--weu-color-on-yellow);
}

/* â€”â€” Groups â€”â€” */
.weu-colectivos__acceso {
  background: var(--weu-color-grey-light, #fafafa);
}

.weu-colectivos__groups {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .weu-colectivos__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.weu-colectivos__group {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--weu-white);
  border: 1px solid var(--weu-color-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.weu-colectivos__group:hover,
.weu-colectivos__group:focus-visible {
  border-color: var(--weu-color-blue);
  box-shadow: 0 8px 24px rgba(22, 19, 169, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.weu-colectivos__group img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}

.weu-colectivos__group-name {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.weu-colectivos__acceso-note {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--weu-color-muted);
}

.weu-colectivos__acceso-note a {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--weu-color-blue);
}

@media (prefers-reduced-motion: reduce) {
  .weu-colectivos .weu-checkout-cta,
  .weu-colectivos .weu-checkout-cta::before,
  .weu-colectivos__group,
  .weu-colectivos__work-img,
  .weu-colectivos__work-caption {
    transition: none;
  }

  .weu-colectivos__work-figure:hover .weu-colectivos__work-img {
    transform: none;
  }
}
