/* Layout del sitio Weexp — usa tokens y componentes del design system */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--we-white); }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--we-s7) 0; }
.section--alt { background: var(--we-blue-50); }
.section--dark { background: var(--we-navy); }
.section__head { max-width: 720px; margin-bottom: var(--we-s5); display: grid; gap: 12px; }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.we-nav { position: sticky; top: 0; z-index: 50; }
.we-nav__lang button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 2px 4px; letter-spacing: inherit; font-weight: 700; }
.we-nav__lang button[aria-pressed="true"] { border-bottom: 2px solid var(--we-blue); }

/* Hero */
.hero { background: var(--we-navy); color: var(--we-white); padding: 112px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: var(--we-blue); opacity: .16; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.hero h1 { max-width: 18ch; }
.hero p { max-width: 60ch; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero--sm { padding: 72px 0 56px; }

/* Cards de categoría / producto */
.cat-card { display: flex; flex-direction: column; border-radius: var(--we-r-lg); overflow: hidden; background: var(--we-white); border: 1px solid var(--we-border); box-shadow: var(--we-shadow-sm); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--we-shadow-md); }
.cat-card:focus-visible { outline: 3px solid var(--we-focus); outline-offset: 3px; }
.cat-card__img { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--we-white); font-family: var(--we-font-display); font-weight: 700; text-transform: uppercase; text-align: center; padding: 16px; font-size: var(--we-text-lg); position: relative; }
.cat-card__img small { position: absolute; left: 12px; bottom: 10px; font-family: var(--we-font-body); font-size: var(--we-text-xs); letter-spacing: .08em; opacity: .85; text-transform: uppercase; }
.cat-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.cat-card__cat { font-size: var(--we-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--we-blue-700); }
.cat-card__title { font-weight: 700; color: var(--we-ink); font-size: var(--we-text-base); line-height: 1.3; margin: 0; }
.cat-card__meta { font-size: var(--we-text-sm); color: var(--we-gray); font-weight: 300; }
.cat-card__price { font-weight: 700; color: var(--we-navy); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { font: inherit; font-size: var(--we-text-sm); font-weight: 700; padding: 9px 16px; border-radius: var(--we-r-full); border: 1.5px solid var(--we-navy); background: var(--we-white); color: var(--we-navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--we-navy); color: var(--we-white); }
.chip:focus-visible { outline: 3px solid var(--we-focus); outline-offset: 2px; }

/* Aviso de ejemplo */
.sample-note { display: inline-flex; gap: 8px; align-items: center; background: var(--we-white); border: 1px dashed var(--we-gray-400); color: var(--we-gray); font-size: var(--we-text-sm); padding: 8px 14px; border-radius: var(--we-r-md); }

/* Ficha de producto */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp__img { aspect-ratio: 1 / 1; border-radius: var(--we-r-lg); display: grid; place-items: center; color: var(--we-white); font-family: var(--we-font-display); font-weight: 700; text-transform: uppercase; text-align: center; padding: 24px; font-size: var(--we-text-xl); }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; font-size: var(--we-text-xs); color: var(--we-gray); }
.pdp__thumbs span { flex: 1; border: 1px dashed var(--we-gray-400); border-radius: var(--we-r-sm); padding: 14px 6px; text-align: center; }
.pdp__info { display: grid; gap: 16px; }
.buybox { background: var(--we-blue-50); border-radius: var(--we-r-lg); padding: 24px; display: grid; gap: 12px; }
.buybox__row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--we-text-base); }
.buybox__row b { color: var(--we-ink); }
.buybox__price { font-family: var(--we-font-display); font-weight: 700; font-size: var(--we-text-2xl); color: var(--we-ink); }
.tabs { margin-top: var(--we-s6); display: grid; gap: 16px; }
.spec { width: 100%; border-collapse: collapse; font-size: var(--we-text-base); }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--we-border); vertical-align: top; }
.spec th { width: 38%; color: var(--we-ink); font-weight: 700; }
.spec td { color: var(--we-gray); }
.spec-group { margin-bottom: 32px; }
.spec-group h3 { margin: 0 0 8px; }
.nutri { border: 2px solid var(--we-ink); padding: 14px 16px; max-width: 320px; font-size: var(--we-text-sm); color: var(--we-ink); }
.nutri h4 { margin: 0 0 6px; font-size: var(--we-text-xl); font-family: var(--we-font-body); font-weight: 700; }
.nutri div { display: flex; justify-content: space-between; border-top: 1px solid var(--we-ink); padding: 4px 0; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; }

/* Footer */
.footer { background: var(--we-ink); color: rgba(255,255,255,.86); padding: 64px 0 32px; }
.footer a { color: var(--we-white); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer h4 { color: var(--we-blue); font-size: var(--we-text-sm); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__copy { margin-top: 40px; font-size: var(--we-text-sm); opacity: .7; }

/* Formulario */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--we-ink); font-size: var(--we-text-sm); }
.form input, .form select, .form textarea { font: inherit; font-weight: 300; padding: 12px 14px; border: 1.5px solid var(--we-gray-400); border-radius: var(--we-r-md); color: var(--we-ink); background: var(--we-white); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--we-focus); outline-offset: 1px; }

@media (max-width: 800px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .we-nav { padding: 12px 16px; }
  .we-heading--h1 { font-size: 2.1rem; }
  .we-heading--h2 { font-size: 1.6rem; }
}

/* Páginas internas */
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--we-navy); color: var(--we-white); display: grid; place-items: center; font-family: var(--we-font-display); font-weight: 700; font-size: var(--we-text-lg); margin-bottom: 12px; }
.team { display: grid; gap: 4px; justify-items: start; align-content: start; }
.team__name { margin: 0; font-size: var(--we-text-base); color: var(--we-ink); font-weight: 700; }
.step { display: grid; gap: 10px; padding: 28px; border-radius: var(--we-r-lg); background: var(--we-white); border: 1px solid var(--we-border); }
.step__n { font-family: var(--we-font-display); font-weight: 700; color: var(--we-blue-700); font-size: var(--we-text-2xl); }
.events { display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 28px; border-radius: var(--we-r-lg); background: var(--we-white); border: 1px solid var(--we-border); box-shadow: var(--we-shadow-sm); }
.event__date { font-family: var(--we-font-display); font-weight: 700; color: var(--we-navy); font-size: var(--we-text-lg); text-transform: uppercase; }
.event__body { display: grid; gap: 8px; justify-items: start; }
.event__body h3 { margin: 0; }
@media (max-width: 800px) { .event { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 800px) {
  .we-nav__links { gap: 6px 16px; }
  .we-nav__link { font-size: var(--we-text-sm); }
  .we-cta { padding: 36px 24px; }
  .we-cta__title { font-size: clamp(1.3rem, 6vw, 1.55rem); }
}
.form { position: relative; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 700; color: var(--we-blue-700); font-size: var(--we-text-sm); }

/* Imágenes */
.hero--split .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.hero__text { display: grid; gap: 24px; justify-items: start; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--we-r-lg); box-shadow: var(--we-shadow-md); border: 3px solid rgba(255,255,255,.14); }
.we-service__img { display: block; width: calc(100% + 64px); max-width: none; margin: -32px -32px 8px; aspect-ratio: 16 / 10; object-fit: cover; }
.team__photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; background: var(--we-white); }
.event--img { grid-template-columns: 200px 130px 1fr; align-items: start; }
.event__img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--we-r-md); }
.cta__shark { position: absolute; right: 24px; bottom: 0; height: 115%; width: auto; max-width: 42%; object-fit: contain; object-position: bottom right; pointer-events: none; z-index: 0; }
.we-cta > :not(.cta__shark) { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero--split .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero__img { max-height: 320px; }
  .event--img { grid-template-columns: 1fr; }
  .event__img { width: 100%; max-height: 220px; }
  .cta__shark { display: none; }
}

/* Submenú Services */
.we-nav__item--sub { position: relative; }
.we-nav__caret { font-size: .7em; margin-left: 2px; }
.we-nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: 190px; background: var(--we-white); border: 1px solid var(--we-border); border-radius: var(--we-r-md); box-shadow: var(--we-shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.we-nav__item--sub:hover > .we-nav__sub, .we-nav__item--sub:focus-within > .we-nav__sub { opacity: 1; visibility: visible; transform: none; }
.we-nav__sublink { display: block; padding: 10px 14px; border-radius: var(--we-r-sm); color: var(--we-navy); font-weight: 700; text-decoration: none; font-size: var(--we-text-sm); }
.we-nav__sublink:hover, .we-nav__sublink:focus-visible { background: var(--we-blue-50); }
.we-nav__sublink--active { color: var(--we-blue-700); }
@media (max-width: 900px) {
  .we-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 0 12px; min-width: 0; background: transparent; display: flex; gap: 12px; flex-wrap: wrap; }
  .we-nav__sublink { padding: 4px 0; font-weight: 300; }
  .we-nav__caret { display: none; }
}

/* Miembros */
.member-card[hidden] { display: none; }
.member-card { display: grid; gap: 8px; justify-items: start; padding: 24px; border-radius: var(--we-r-lg); background: var(--we-white); border: 1px solid var(--we-border); box-shadow: var(--we-shadow-sm); }
.member-card__name { margin: 4px 0 0; font-family: var(--we-font-display); text-transform: uppercase; color: var(--we-ink); font-size: var(--we-text-lg); }
.member-card__lock { position: relative; width: 100%; margin-top: 8px; padding: 12px; border-radius: var(--we-r-md); background: var(--we-gray-100); overflow: hidden; }
.locked { filter: blur(5px); user-select: none; color: var(--we-gray); font-size: var(--we-text-sm); }
.locked p { margin: 0 0 6px; }
.locked__label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: var(--we-text-sm); color: var(--we-navy); letter-spacing: .04em; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.fieldset[hidden] { display: none; }

/* Títulos: nunca partir palabras a mitad; tamaños fluidos para que quepan en tarjetas y móvil */
.we-heading, .we-service__title, .we-cta__title, .we-card__title, h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
.we-heading--h1 { font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.25rem); }
.we-heading--h2 { font-size: clamp(1.45rem, 1rem + 2vw, 2.25rem); }
.we-heading--h3 { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.we-service__title { font-size: clamp(1rem, .9rem + .45vw, 1.2rem); letter-spacing: -.01em; }
.we-cta__title { font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem); max-width: 22ch; }
.hero h1 { max-width: 20ch; }
.we-service { container-type: inline-size; }
.we-service__title { font-size: clamp(.65rem, 5.2cqw, 1.2rem); }

/* Submenú con grupos */
.we-nav__subhead { display: block; padding: 10px 14px 4px; font-size: var(--we-text-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--we-blue-700); }
.we-nav__subhead:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--we-gray-200); padding-top: 12px; }


/* Megamenú de Servicios */
.we-nav__item--mega { position: static; }
.we-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--we-white); border-top: 1px solid var(--we-border); border-bottom: 4px solid var(--we-blue); box-shadow: var(--we-shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.we-nav__item--mega:hover > .we-mega, .we-nav__item--mega:focus-within > .we-mega { opacity: 1; visibility: visible; transform: none; }
.we-mega__in { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; padding: 28px 32px 20px; }
.we-mega__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.we-mega__stagelink { display: grid; gap: 3px; text-decoration: none; padding: 6px 0; border-top: 3px solid var(--we-blue-100); transition: border-color .15s; }
.we-mega__stage:hover .we-mega__stagelink, .we-mega__stagelink.is-current { border-color: var(--we-blue); }
.we-mega__k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--we-blue-700); }
.we-mega__k b { font-family: var(--we-font-display); margin-right: 4px; }
.we-mega__t { font-family: var(--we-font-display); font-weight: 700; font-size: var(--we-text-base); line-height: 1.25; color: var(--we-ink); text-decoration: none; }
.we-mega__stagelink:hover .we-mega__t, .we-mega__club .we-mega__t:hover { color: var(--we-blue-700); }
.we-mega ul ul, .we-mega__club ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--we-text-sm); color: var(--we-gray); }
.we-mega__stage > ul li::before, .we-mega__club li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--we-blue); margin: 0 8px 2px 0; }
.we-mega__club { display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: var(--we-r-lg); background: var(--we-blue-50); }
.we-mega__club .we-mega__t { display: block; }
.we-mega__club .we-btn { margin-top: 12px; justify-self: start; }
.we-mega__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 32px 18px; }
.we-mega__foot a { font-weight: 700; font-size: var(--we-text-sm); color: var(--we-blue-700); text-decoration: none; } .we-mega__foot a:hover { text-decoration: underline; }
@media (max-width: 900px) { .we-mega { display: none; } .we-nav__item--mega .we-nav__caret { display: none; } }

.we-mega__stage.is-allies .we-mega__stagelink { border-top-color: var(--we-gold); }
.we-mega__stage.is-allies:hover .we-mega__stagelink, .we-mega__stage.is-allies .is-current { border-top-color: var(--we-gold); background: var(--we-gold-100); }
.we-mega__stage.is-allies .we-mega__k { color: var(--we-ink); }

/* Quiénes somos */
.about-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.about-split--flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .about-split--flip .about-split__text { order: 2; }
.about-split__text { display: grid; gap: 16px; }
.about-split__img { width: 100%; height: auto; border-radius: var(--we-r-lg); box-shadow: var(--we-shadow-md); background: var(--we-gray-100); }
.about-credo { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; }
.about-credo__sig { margin: 8px 0 0; font-family: 'Lulo Clean One', var(--we-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--we-blue-700); font-size: var(--we-text-xl); }
@media (max-width: 800px) { .about-split, .about-split--flip { grid-template-columns: 1fr; gap: 28px; } .about-split--flip .about-split__text { order: 0; } }

.grid--2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .grid--2 { grid-template-columns: 1fr; } }

.hero--photo { background-position: center 30%; background-size: cover; background-repeat: no-repeat; padding: 110px 0 90px; }
.hero--photo::after { display: none; }

/* Hero slider (Quiénes somos) */
.hero-slider { padding: 64px 0 48px; }
.hero-slider .wrap { display: grid; gap: 28px; }
.hero-slider__track { display: grid; }
.hero-slider__slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slider__slide.is-active { opacity: 1; visibility: visible; }
.hero-slider__text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.hero-slider__body { color: rgba(255,255,255,.88); }
.hero-slider__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--we-r-lg); box-shadow: var(--we-shadow-md); border: 3px solid rgba(255,255,255,.14); }
.hero-slider__ctrl { display: flex; align-items: center; gap: 16px; }
.hero-slider__arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s; }
.hero-slider__arrow:hover { background: rgba(255,255,255,.18); }
.hero-slider__dots { display: flex; gap: 10px; }
.hero-slider__dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero-slider__dot.is-active { background: #fff; }
@media (max-width: 800px) { .hero-slider__slide { grid-template-columns: 1fr; gap: 24px; } .hero-slider__img { max-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .hero-slider__slide { transition: none; } }
