/* ================
   GoTriage CSS
   ================ */

/* =============================
   TOKENS
============================= */
:root {
  --color-primary-100: #9839ff;
  --color-secondary-100: #ff656c;
  --color-secondary-dark: #32284a;
  --color-secondary-blue: #336dff;

  --violet-100: #6e00d4;
  --violet-90: #b125df;
  --violet-80: #9645e9;
  --violet-70: #a75ef1;
  --violet-60: #b977f3;
  --violet-50: #d8b1ff;
  --violet-40: #e9d3ff;
  --violet-30: #f4e9fe;

  --blue-100: #1e56ff;
  --blue-90: #336dff;
  --blue-80: #4f81ff;
  --blue-70: #608dff;
  --blue-60: #89a8ff;
  --blue-50: #b6c8ff;
  --blue-40: #d9e4ff;
  --blue-30: #ecf2ff;

  --gray-100: #131523;
  --gray-90: #333752;
  --gray-80: #5a607f;
  --gray-70: #7e8aa3;
  --gray-60: #a1a7c4;
  --gray-50: #d7dbec;
  --gray-40: #e6e9f4;
  --gray-30: #f5f6fa;

  --font-main: "Hanken Grotesk", sans-serif;
}

/* =============================
   RESET + BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-main);
  color: var(--gray-90);
  background: rgba(245, 246, 250, 0.6);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip; /* Bloquear scroll lateral global */
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  } /* Fallback */
}

img {
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 5%;
}

.section.alt-dark {
  background: var(--color-secondary-dark);
  color: #fff;
}

/* =============================
   UTILIDADES GENERALES
============================= */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: 0.45s;
}
.fade-in.show {
  opacity: 1;
  transform: none;
}

.parallax {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: #8b40ff;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Glow de issues (única definición) */
.gt-issues::before {
  content: "";
  position: absolute;
  inset: auto -30px -20px -30px;
  top: 40px;
  background: radial-gradient(
    40% 40% at 50% 20%,
    rgba(124, 61, 255, 0.12),
    transparent 60%
  );
  z-index: -1;
}

/* =============================
   BOTONES
============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 2rem;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn.violet {
  background: var(--color-primary-100);
  color: #fff;
}
.btn.violet:hover {
  filter: brightness(0.95);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--color-primary-100);
  color: var(--color-primary-100);
}

/* CTA pill morada específica */
.btn.cta-pill {
  background: linear-gradient(
    135deg,
    var(--color-primary-100),
    var(--violet-70)
  );
  color: #fff;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn.cta-pill:hover {
  background: var(--color-secondary-100);
  transform: translateY(-2px);
  filter: none;
}

/* =============================
   HEADER + NAV (desktop por defecto)
============================= */
.header {
  background: #fff;
  padding: 2rem 0;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}
.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 28px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
}
.header__nav a,
.header__langs a {
  color: var(--gray-90);
  font-weight: 400;
  text-decoration: none;
}
.header__nav a:hover,
.header__langs a:hover {
  color: var(--color-secondary-100);
}
.header__langs {
  display: flex;
  gap: 0.5rem;
}

.main-header.is-floating {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  border-radius: 48px;
  padding: 1.2rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* Hamburguesa + menú móvil (oculta en desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-primary-100);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(50, 40, 74, 0.95);
  display: flex;
  flex-direction: column;
  padding: 100px 50px;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}
.mobile-menu.show {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}
.mobile-menu a:hover {
  color: var(--color-secondary-100);
}
.mobile-menu .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 90;
}
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* =============================
   HERO (GoTriage)
============================= */
.gt-hero {
  padding: 30px 5% 30px;
  position: relative;
}

.gt-hero__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.gt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-100);
  font-weight: 800;
}

.gt-hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  margin: 0.5rem 0 1rem;
  color: var(--color-primary-100);
}
.gt-hero__text p {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Tamaños desktop por idioma */
.gt-hero__media img {
  width: 140%;
  filter: drop-shadow(0 12px 40px rgba(84, 76, 144, 0.25));
}
.gt-hero__media_en img {
  width: 130%;
  filter: drop-shadow(0 12px 40px rgba(84, 76, 144, 0.25));
}
.gt-hero__media_ca img {
  width: 150%;
  filter: drop-shadow(0 12px 40px rgba(84, 76, 144, 0.25));
}

.gt-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.gt-divider {
  width: 72px;
  height: 8px;
  border-radius: 2rem;
  background: var(--color-primary-100);
  margin: 28px auto;
}

/* =============================
   ENTORNO PREHOSPITALARIO
============================= */
.gt-context__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
}
.gt-context__left h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1;
  color: #3b2f55;
  margin-bottom: 16px;
}
.gt-context__left p {
  color: #5e6279;
  margin-bottom: 18px;
}

/* Píldoras izquierda */
.gt-pills {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.gt-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ece6ff;
  border: 1px solid #e2d6ff;
  border-radius: 16px;
  padding: 18px 20px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  box-shadow: 0 2px 0 rgba(70, 55, 120, 0.03);
}
.gt-pill__label {
  font-weight: 700;
  color: #2e3147;
}
/* Chip del icono */
.gt-pill__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f2ebfd;
  transition: background 0.25s;
}
/* Pictograma (SVG como máscara) */
.gt-pill__icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: #7c3dff;
  transition: background-color 0.25s;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
/* Hover píldoras */
.gt-pill:hover {
  background: #e7deff;
  border-color: #d5c6ff;
  transform: translateY(-1px);
}
.gt-pill:hover .gt-pill__icon {
  background: #7c3dff;
}
.gt-pill:hover .gt-pill__icon::before {
  background-color: #fff;
}

/* Bullets inferiores */
.gt-bullets-wrap p {
  margin: 16px 0 16px;
  color: #3b3f57;
}
.gt-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gt-bullets li {
  position: relative;
  padding-left: 18px;
}
.gt-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3dff;
}

/* Cards derecha */
.gt-context__right {
  margin-top: 10rem;
}
.gt-context__right h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #4b4561;
  font-weight: 700;
  text-align: center;
}

.gt-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
}
.issue {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee7ff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(20, 12, 50, 0.06);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s,
    transform 0.2s;
}
.issue:nth-child(even) {
  background: #f2f0ff;
}
.issue__text {
  font-weight: 700;
  color: #2e3147;
}
.issue__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f2ebfd;
  transition: background 0.25s;
}
.issue__icon::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-color: #7c3dff;
  transition: background-color 0.25s;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.issue:hover {
  background: #fff;
  border-color: #e1d6ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(20, 12, 50, 0.1);
}
.issue:hover .issue__icon {
  background: #7c3dff;
}
.issue:hover .issue__icon::before {
  background-color: #fff;
}

/* =============================
   BENEFICIOS
============================= */
.gt-benefits {
  background: var(--color-secondary-dark);
  color: #fff;
  border-radius: 0;
}
.gt-benefits__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.gt-benefits__head h2 {
  font-size: clamp(34px, 4.2vw, 44px);
  line-height: 1.12;
  margin: 0;
}
.gt-benefits__lede {
  color: #ede9fb;
  max-width: 900px;
  margin: 8px 0 10px;
  font-size: 1.1rem;
}

/* Grid de tarjetas */
.benefit-cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 16px;
  min-height: 230px;
  padding: 50px;
  background: #f2f0ff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.2);
  background: var(--color-primary-100);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.card-icon::before {
  content: "";
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  background-color: var(--color-primary-100);
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}
.benefit-card h3 {
  margin: 0;
  color: var(--color-primary-100);
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.18;
  font-weight: 700;
}
.benefit-card:hover h3,
.benefit-card:hover .card-icon::before {
  color: #fff;
  background-color: #fff;
}

.benefit-card:hover h3,
.benefit-card:hover p {
  color: #fff;
  background: transparent;
}

/* =============================
   FUNCIONALIDADES
============================= */
.gt-functions {
  position: relative;
  overflow: visible;
}
.gt-functions > .container {
  position: relative;
}

/* Título */
.funcionalidades h2 {
  font-size: clamp(38px, 4.6vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gray-90);
}

/* Layout principal */
.fx-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6rem;
  align-items: center;
}

/* Lista */
.fx-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.fx-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}
.fx-item p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--gray-90);
}
.fx-item strong {
  font-weight: 800;
}

.fx-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-primary-100);
  display: grid;
  place-items: center;
}
.fx-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  display: block;
  background: #fff;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Teléfonos */
.fx-phones {
  position: relative;
  min-height: clamp(360px, 44vw, 520px);
  overflow: visible;
  isolation: isolate;
}
.fx-phone {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}
.fx-phone__img {
  height: clamp(380px, 36vw, 480px);
  width: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(84, 76, 144, 0.25));
  transform-origin: center;
}
/* Posiciones desktop por defecto */
.fx-phone:first-child {
  left: 25%;
  top: 40px;
  z-index: 2;
}
.fx-phone:last-child {
  right: 25%;
  top: 0;
  z-index: 1;
}
.fx-phone__img--right {
  transform: rotate(-8deg);
}
.fx-phone__img--left {
  transform: rotate(8deg);
}

/* Feedback en lista (hover) */
.fx-item:hover .fx-icon {
  background: #f2f0ff;
}
.fx-item:hover .fx-icon::before {
  background: var(--color-primary-100);
}

/* CTA centrada */
.gt-center-cta {
  text-align: center;
  margin-top: 6rem;
}

/* =============================
   FAQ
============================= */
.gt-faq {
  background: transparent;
}
.gt-faq__head {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 50px;
}
.gt-faq .gt-divider {
  margin: 0 auto 12px;
}

.gt-faq h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0 0 30px;
  color: var(--gray-90);
  font-weight: 800;
}

.gt-faq .faq-head {
  margin-bottom: 16px;
}
.gt-faq .faq-sub {
  color: var(--gray-70);
  font-size: clamp(16px, 1.4vw, 20px);
  margin: 2px 0;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  margin-right: 120px;
  margin-left: 120px;
}

/* Details/summary */
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item {
  border: 0;
  padding: 0;
  background: transparent;
}

/* Pastilla cerrada */
.faq-item > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #eae6ff;
  border: 1px solid #eef0fe;
  border-radius: 16px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  padding: 22px 28px;
  font-weight: 800;
  transition: box-shadow 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}
.faq-item > summary:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  border-color: #e3e7ff;
}

/* Abierto */
.faq-item[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.faq-content {
  background: #fff;
  border: 1px solid #eef0fe;
  border-top: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 18px 28px 22px;
  color: var(--gray-90);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Chevron derecha */
.faq-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  position: relative;
}
.faq-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-arrow::before {
  transform: rotate(45deg);
}

/* =============================
   CONTACTO FORM (morado)
============================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center; /* texto | tarjeta */
}
.contact-copy {
  color: #fff;
}
.contact-title {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 22px;
}
.contact-cta {
  border-radius: 999px;
  padding: 14px 24px;
  margin: 10px 0 18px;
}
.contact-lede {
  color: #e9e4f9;
  margin: 20px 0 20px;
  max-width: 60ch;
  font-size: 1.1rem;
}

/* Tarjeta */
.contact-card {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  background: #f4efff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  padding: 26px;
  display: grid;
  gap: 12px;
  color: var(--gray-90);
}
.contact-card h3 {
  margin: 2px 0 10px;
  text-align: center;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-primary-100);
}
.contact-card h3 span {
  display: inline-block;
}
.contact-card input,
.contact-card textarea {
  background: #fff;
  border: 1px solid #ede7ff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
}
.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: var(--gray-60);
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--violet-70);
  box-shadow: 0 0 0 3px rgba(152, 57, 255, 0.15);
}
.contact-card .btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
}

#contacto .contact-tagline {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 22px);
  margin-top: 5.2rem;
}

/* Accesibilidad */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.contact-card label {
  font-weight: 700;
  color: var(--color-primary-100);
  font-size: 0.95rem;
  margin-top: 6px;
  display: block;
}
.contact-card input + label,
.contact-card textarea + label {
  margin-top: 10px;
}

/* =============================
   CONTACTO FINAL
============================= */
.contacto {
  /* padding: 5rem 5% 6rem; */
  padding: 5rem 5% 6rem 10%;
  position: relative;
  overflow: hidden;
}
.contacto__wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.contacto__text {
  color: var(--gray-100);
}
.contacto__title {
  color: var(--color-primary-100);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 2rem;
  font-weight: 700;
}
.contacto__desc {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contacto__equipo {
  margin: 2rem 0;
}
.contacto__equipo-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.contacto__equipo-list {
  flex-direction: column;
  gap: 1.5rem;
}
.contacto__equipo-item {
  align-items: flex-start;
}
.contacto__equipo-nombre,
.contacto__equipo-cargo {
  text-align: left;
}

.contacto__equipo-nombres,
.contacto__equipo-cargo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}
.contacto__equipo-cargo {
  font-weight: 400;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.contacto__equipo-nombres strong {
  text-decoration: underline;
  font-weight: 700;
}

.contacto__equipo-nombre a,
.contacto__linkedin {
  text-decoration: none !important;
  font-size: 1.2rem;
}
.contacto__equipo-nombre a {
  color: var(--color-primary-100);
  text-decoration: underline;
}
.contacto__equipo-nombre a:hover {
  color: var(--color-secondary-100);
}

.btn.violet {
  background-color: var(--color-primary-100);
  color: white;
  padding: 0.75rem 2rem;
  margin-right: 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}
.btn.violet:hover {
  background-color: var(--color-secondary-100);
}

.contacto__mail {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
}
.contacto__mail a {
  color: var(--color-primary-100);
  font-weight: 600;
  text-decoration: none;
}
.contacto__firma {
  color: var(--color-primary-100);
  font-size: 1rem;
  margin-top: 2rem;
  font-weight: 500;
}

/* Imagen alineada a la derecha */
.contacto__img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: -10%;
}
.contacto__img img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

/* =============================
   FOOTER
============================= */
.footer {
  background-color: var(--color-secondary-dark);
  color: white;
  padding: 2rem 5%;
  font-size: 1rem;
  border-radius: 0 0 10px 10px;
}
.footer__wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}
.footer__top {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
}
.footer__links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
}
.footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copyright {
  font-size: 1rem;
  font-weight: 300;
}
.footer__social {
  display: flex;
  gap: 1rem;
  font-weight: 300;
}
.footer__social a {
  color: white;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}
.footer__social a:hover,
.footer__links a:hover {
  color: var(--color-secondary-100);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =============================
   TABLET — ≤1024 px
============================= */
@media (max-width: 1024px) {
  /* Header fijo y padding top */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
  }
  .logo {
    height: 26px;
  }
  body {
    padding-top: 80px;
  }

  /* Nav oculto y hamburguesa visible (no-desktop) */
  .header__nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Idiomas pegados a la hamburguesa a la derecha */
  .header__wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .header__left {
    order: 1;
  }
  .header__right {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .header__langs {
    margin-left: 0;
    gap: 0.75rem;
  }
  .hamburger {
    order: 3;
    margin-left: 0.75rem;
  }

  /* HERO: media debajo del texto + normalización imágenes (ES/EN/CA) */
  #hero .gt-hero__wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "hero-text" "hero-media";
    row-gap: 18px;
  }
  #hero .gt-hero__text {
    order: 1;
  }
  #hero .gt-hero__media,
  #hero .gt-hero__media_en,
  #hero .gt-hero__media_ca {
    order: 2;
    justify-self: center;
    margin-top: 8px;
  }

  #hero .gt-hero__media img,
  #hero .gt-hero__media_en img,
  #hero .gt-hero__media_ca img {
    width: min(520px, 88vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .gt-hero {
    padding: 4rem 6% 2rem 2rem;
  }

  /* ENTORNO */
  .gt-context__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gt-context__right {
    margin-top: 0;
  }

  .gt-context__right h3 {
    margin: 2rem 0 2rem 0;
  }

  .gt-context__left h2 {
    margin-bottom: 2rem;
  }

  /* BENEFICIOS */
  .gt-benefits__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn.cta-pill {
    justify-self: start;
    margin-bottom: 1rem;
  }
  .benefit-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .benefit-card {
    padding: 36px;
    min-height: 200px;
  }

  .gt-benefits__head h2 {
    margin-bottom: 1.5rem;
  }

  /* FUNCIONALIDADES */
  .fx-row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .fx-phones {
    min-height: clamp(360px, 48vw, 480px);
    overflow: visible;
    isolation: isolate;
  }
  .fx-phone__img {
    height: clamp(360px, 38vw, 440px);
    width: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.25));
  }
  .fx-phone:first-child {
    left: 10%;
    top: 18px;
    z-index: 2;
  }
  .fx-phone:last-child {
    right: 10%;
    top: 0;
    z-index: 1;
  }
  .fx-phone__img--left {
    transform: rotate(-8deg);
  }
  .fx-phone__img--right {
    transform: rotate(8deg);
  }
  .parallax {
    transform: none !important;
    transition: none !important;
  } /* Parallax off en tablet */

  .funcionalidades h2 {
    margin-bottom: 2.2rem;
  }

  /* FAQ */
  .gt-faq__head {
    margin-bottom: 36px;
  }
  .faq-list {
    margin: 16px 0 0;
  }

  /* CONTACTO (morado) */
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .contact-card {
    justify-self: stretch;
    max-width: 100%;
  }

  /* CONTACTO FINAL (1 col + sin ilustración) */
  .contacto__wrapper {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contacto__img {
    display: none !important;
  }
  .contacto {
    padding: 5rem 7% 6rem;
  }

  .contact-title {
    font-size: 2.2rem;
  }

  /* FOOTER en columna */
  .footer__wrapper,
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__top {
    justify-content: center;
  }
  .footer__links {
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
  }
  .footer__bottom {
    gap: 0.5rem;
  }
  .footer__social {
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Titulares sección funcionalidades/contexto */
  #funcionalidades h2 {
    font-size: clamp(30px, 4.4vw, 36px);
    margin-bottom: 8px;
  }
  .gt-context__left h2 {
    font-size: clamp(28px, 4vw, 34px);
  }
}

/* =============================
   MOBILE — ≤768 px
============================= */
@media (max-width: 768px) {
  /* Header fijo ya aplicado en tablet; aquí solo ajustes de tamaño */
  .logo {
    height: 24px;
  }

  /* Secciones */
  .section {
    padding: 56px 5%;
  }

  /* HERO: reordenado con grid-areas + tamaños imagen reducidos */
  #hero .gt-hero__wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "title" "p1" "p2" "media" "cta";
  }
  #hero .gt-hero__text {
    display: contents;
  }
  #hero .gt-hero__text .gt-badge {
    grid-area: badge;
  }
  #hero .gt-hero__text h1 {
    grid-area: title;
  }
  #hero .gt-hero__text p:nth-of-type(1) {
    grid-area: p1;
  }
  #hero .gt-hero__text p:nth-of-type(2) {
    grid-area: p2;
  }

  #hero .gt-hero__media,
  #hero .gt-hero__media_en,
  #hero .gt-hero__media_ca {
    grid-area: media;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #hero .gt-hero__media img,
  #hero .gt-hero__media_en img,
  #hero .gt-hero__media_ca img {
    width: min(360px, 92vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  #hero .gt-cta {
    grid-area: cta;
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  .gt-hero {
    padding: 4rem 6% 2rem 2rem;
  }
  .gt-hero__text p {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 1rem;
    font-size: 1.1rem;
  }

  /* Títulos / cabeceras */
  #funcionalidades h2,
  #features h2,
  #funcionalitats h2,
  .gt-context__left h2,
  .gt-benefits__head h2,
  .gt-faq h2 {
    font-size: clamp(26px, 6vw, 32px);
  }
  #funcionalidades h2,
  #features h2,
  #funcionalitats h2 {
    margin-bottom: 3rem;
    margin-top: 1rem;
    line-height: 1.2;
  }

  /* BENEFICIOS en 1 col */
  .benefit-cards {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    padding: 26px;
  }

  .gt-context__right h3 {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
  }
  .gt-context__left h2 {
    margin-bottom: 1.6rem;
  }
  .gt-context__left p {
    margin-bottom: 2rem;
  }
  .gt-benefits__head {
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .gt-center-cta {
    margin-top: 1rem;
  }

  /* FUNCIONALIDADES en 1 col + teléfonos centrados */
  .fx-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fx-list {
    gap: 14px;
  }
  .fx-item {
    grid-template-columns: 44px 1fr;
  }

  .fx-phones {
    min-height: 380px;
    margin-top: 2rem;
  }
  .fx-phone:first-child {
    left: 23%;
    top: 40px;
    z-index: 2;
  }
  .fx-phone:last-child {
    right: 23%;
    top: 0;
    z-index: 1;
  }
  .fx-phone__img {
    height: min(72vw, 340px);
  }
  .fx-icon {
    width: 40px;
    height: 40px;
  }
  .fx-icon::before {
    width: 18px;
    height: 18px;
  }

  .fx-phone__img--right {
    transform: rotate(-8deg);
  }
  .fx-phone__img--left {
    transform: rotate(8deg);
  }

  /* Contact tagline */
  .contact-tagline {
    margin-top: 3rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* FAQ más compacto */
  .faq-item > summary {
    padding: 18px 18px;
    font-size: 1rem;
  }
  .faq-content {
    padding: 16px 18px 20px;
  }
  .faq-list {
    gap: 12px;
  }

  /* CONTACTO (morado) 1 col */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-card {
    padding: 22px;
    max-width: 620px;
    justify-self: center;
  }
  .contact-title {
    font-size: clamp(24px, 5.6vw, 30px);
  }
  .contact-lede {
    font-size: 1.05rem;
  }

  /* CONTACTO FINAL */
  .contacto__img {
    display: none !important;
  }
  .contacto__equipo-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contacto__equipo-item {
    align-items: flex-start;
  }
  .contacto__equipo-nombre,
  .contacto__equipo-cargo {
    text-align: left;
  }
  .contacto {
    padding: 4rem 8% 4rem;
  }

  /* FOOTER columna */
  .footer__wrapper,
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__top {
    justify-content: center;
  }
  .footer__links {
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
  }
  .footer__bottom {
    gap: 0.5rem;
  }
  .footer__social {
    justify-content: center;
    margin-top: 0.5rem;
  }
  /* Aplaza el cálculo/estilo de secciones no iniciales en mobile */
  #entorno,
  #producto,
  #funcionalidades,
  #faq,
  #contacto,
  #contacto-final {
    content-visibility: auto;
    contain-intrinsic-size: 1000px; /* fallback para reservar espacio */
  }
}

/* =============================
   INTERMEDIO — 901–1200 px
   (suaviza solape de teléfonos)
============================= */
@media (min-width: 901px) and (max-width: 1200px) {
  .fx-phones {
    min-height: clamp(420px, 52vw, 560px);
    overflow: visible;
    isolation: isolate;
  }
  .fx-phone__img {
    height: clamp(420px, 40vw, 520px);
    width: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.25));
  }
  .fx-phone:first-child {
    left: 14%;
    top: 22px;
    z-index: 2;
  }
  .fx-phone:last-child {
    right: 14%;
    top: 0;
    z-index: 1;
  }

  #hero.gt-hero,
  #hero.gt-hero,
  .gt-hero {
    padding: clamp(5rem, 8vw, 7.5rem) 7% clamp(3rem, 5vw, 4rem);
  }

  .gt-hero__wrap {
    gap: 40px;
    padding-inline: 1%;
  }

  #hero .gt-hero__media img,
  #hero .gt-hero__media_en img,
  #hero .gt-hero__media_ca img {
    width: clamp(420px, 38vw, 520px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(84, 76, 144, 0.25));
  }
}

/* HERO — rango intermedio (mantiene look sin forzar grid) */
@media (min-width: 1025px) and (max-width: 1200px) {
  /* ES */
  #hero .gt-hero__media img {
    width: 120%;
  }
  /* EN */
  #hero .gt-hero__media_en img {
    width: 115%;
  }
  /* CA */
  #hero .gt-hero__media_ca img {
    width: 125%;
  }

  #hero .gt-hero__media img,
  #hero .gt-hero__media_en img,
  #hero .gt-hero__media_ca img {
    width: clamp(380px, 40vw, 520px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}
