/* ==========================================================================
   Camisetas Miami · Landing "Camisetas 100% Personalizadas"
   --------------------------------------------------------------------------
   Todo está dentro de .cm-landing para no tocar el header, el footer ni los
   bloques de WooCommerce del tema (Twenty Twenty-Five).

   Índice
   1.  Variables (colores, tipografía, medidas)
   2.  Base y reset (solo dentro de la landing)
   3.  Utilidades
   4.  Layout (contenedores, secciones, encabezados de sección)
   5.  Botones
   6.  Hero
   7.  Cómo funciona (pasos)
   8.  Guía de calces (tarjetas + tabla)
   9.  Galería de trabajos
   10. Banners (promocional y escuelas)
   11. Formulario de pedido
   12. Animaciones
   13. Selector de idioma (Google Translate)

   Breakpoints (mobile first): 640px · 768px · 1024px
   ========================================================================== */


/* ==========================================================================
   1. Variables
   ========================================================================== */
.cm-landing {
  /* Marca */
  --navy:        #0b1240;
  --navy-deep:   #050a2c;   /* fondo del hero */
  --gold:        #fcd34d;
  --gold-strong: #fdc500;   /* amarillo de los íconos PNG */
  --gold-light:  #fdf3c4;
  --brand:       #7c3aed;   /* botones violetas */
  --brand-dark:  #6d28d9;
  --accent:      #f97316;   /* naranja */
  --step-red:    #d13e15;   /* "PASO 1…" en Cómo funciona */
  --step-blue:   #1a9ad6;   /* íconos de Cómo funciona */

  /* Grises */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;

  /* Estados */
  --success:       #059669;
  --success-bg:    #ecfdf5;
  --success-text:  #065f46;
  --error:         #dc2626;
  --error-bg:      #fef2f2;
  --error-text:    #b91c1c;

  /* Fondos especiales */
  --grad-stripe: linear-gradient(90deg, #2d5aa8 0%, #4b7bc9 18%, #8f9c84 50%, #d9b93a 78%, #f4c51c 100%);   /* banner "Boceto en 48hs" */
  --grad-grass:  radial-gradient(circle at 30% 20%, #4c8f3f 0%, #2f6b2a 45%, #1f4a1c 100%);

  /* Tipografía */
  --font: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  /* Medidas */
  --radius-sm: 0.5rem;
  --radius:    0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
  --transition: 150ms ease;
  --transition-btn: .5s ease;   /* hover de todos los botones */
}


/* ==========================================================================
   2. Base y reset (solo dentro de la landing)
   ========================================================================== */
.cm-landing {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desplazamiento suave hacia las anclas (#pedido, #galeria, #calces). Va en html porque es
   el que scrollea; el CSS solo se carga en esta página. Se respeta "reducir movimiento". */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* El tema separa los bloques de primer nivel con 1.2rem: la landing va pegada al header y al footer */
.wp-site-blocks > .cm-landing,
.wp-site-blocks > .cm-landing + * { margin-block-start: 0; }

.cm-landing *,
.cm-landing *::before,
.cm-landing *::after { box-sizing: border-box; }

.cm-landing :is(h1, h2, h3, p, figure, dl, dd, ul) { margin: 0; }
.cm-landing :is(h1, h2, h3) { font-family: inherit; letter-spacing: normal; }
.cm-landing ul { padding: 0; list-style: none; }
.cm-landing :is(img, svg) { display: block; max-width: 100%; }
.cm-landing a { color: inherit; text-decoration: none; }
.cm-landing :is(button, input, textarea) { font: inherit; color: inherit; margin: 0; }
.cm-landing button { cursor: pointer; }
.cm-landing table { border-collapse: collapse; }
.cm-landing fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cm-landing legend { padding: 0; }
.cm-landing [hidden] { display: none !important; }


/* ==========================================================================
   3. Utilidades
   ========================================================================== */
.cm-landing .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor de los íconos SVG reutilizables (<symbol>) */
.cm-landing .svg-sprite { display: none; }


/* ==========================================================================
   4. Layout
   ========================================================================== */
.cm-landing .container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.cm-landing .container--narrow { max-width: 72rem; }
.cm-landing .container--banner { max-width: 64rem; }
.cm-landing .container--wide   { max-width: 95%; padding-inline: 0; }
.cm-landing .container--form   { max-width: 56rem; }

.cm-landing .section { padding-block: 5rem; }

/* Encabezado de sección: antetítulo + título + bajada */
.cm-landing .section-head { text-align: center; }

.cm-landing .section-head__eyebrow {
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
}

.cm-landing .section-head__title {
  margin-top: .5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
}

.cm-landing .section-head__text {
  max-width: 42rem;
  margin: .75rem auto 0;
  color: var(--gray-500);
}

/* Variante para fondos oscuros */
.cm-landing .section-head--dark .section-head__eyebrow { color: var(--gold); }
.cm-landing .section-head--dark .section-head__title   { color: #fff; }
.cm-landing .section-head--dark .section-head__text    { color: var(--gray-300); }

@media (min-width: 640px) {
  .cm-landing .section-head__title { font-size: 2.25rem; line-height: 2.5rem; }
}


/* ==========================================================================
   5. Botones
   ========================================================================== */
.cm-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: #fff;
}

/* Todos los botones de la landing (.btn y <button>): hover suave con un leve agrandado */
.cm-landing :is(.btn, button) { transition: all var(--transition-btn); }
.cm-landing :is(.btn, button):not(:disabled):hover { transform: scale(1.02); }

.cm-landing .btn__icon { width: 1rem; height: 1rem; }

.cm-landing .btn--primary {
  background: var(--brand);
  box-shadow: 0 10px 15px -3px rgb(124 58 237 / .4), 0 4px 6px -4px rgb(124 58 237 / .4);
}
.cm-landing .btn--primary:not(:disabled):hover {
  background: var(--brand-dark);
  box-shadow: 0 14px 22px -4px rgb(124 58 237 / .55), 0 6px 8px -4px rgb(124 58 237 / .5);
}

.cm-landing .btn--outline { border: 2px solid rgb(255 255 255 / .3); }
.cm-landing .btn--outline:hover { border-color: var(--gold); color: var(--gold); background: rgb(255 255 255 / .08); }

.cm-landing .btn--block {
  width: 100%;
  padding-inline: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 900;
  box-shadow: 0 10px 15px -3px rgb(124 58 237 / .3), 0 4px 6px -4px rgb(124 58 237 / .3);
}

.cm-landing .btn:disabled { opacity: .7; cursor: wait; }


/* ==========================================================================
   6. Hero
   ========================================================================== */
.cm-landing .hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Foto a la derecha; el degradado la funde con el azul de la izquierda */
.cm-landing .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% center;
}

.cm-landing .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-deep), rgb(5 10 44 / .9) 50%, rgb(5 10 44 / .7));
}

.cm-landing .hero__inner {
  position: relative;
  padding-block: 3.5rem 4.5rem;
}

.cm-landing .hero__content { max-width: 46rem; }

/* Banner "Diseño gratis…": la frase está en la imagen, por eso el alt la repite */
/* Sello "Diseño gratis…": hecho en HTML para que se traduzca con el resto de la página */
.cm-landing .hero__promo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  max-width: calc(100% - 2.75rem);   /* deja lugar a las rayitas de la derecha */
  margin-left: -.25rem;
  padding: .5rem 1.5rem .5rem .625rem;
  border-radius: 9999px;
  background: var(--gold-strong);
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  transform: rotate(-4deg);
  box-shadow: 0 8px 16px rgb(0 0 0 / .35);
}

/* El ancho en em hace que el título corte después de "uniforme" en cualquier tamaño de letra */
.cm-landing .hero__title-main  { display: block; max-width: 11em; }
.cm-landing .hero__promo-text  { max-width: 15em; text-wrap: balance; }
.cm-landing .hero__promo-shirt { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }

.cm-landing .hero__promo-spark {
  position: absolute;
  top: -1rem;
  left: calc(100% + .25rem);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gold-strong);
}

.cm-landing .hero__title {
  margin-top: 1.25rem;
  font-size: 2.5rem;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

/* "100% personalizado": amarillo lleno con sombra dura para que resalte */
.cm-landing .hero__title-highlight {
  display: block;
  margin-top: .25rem;
  font-style: italic;
  color: var(--gold-strong);
  text-shadow: 3px 4px 0 rgb(0 0 0 / .55), 0 0 28px rgb(253 197 0 / .3);
}

.cm-landing .hero__text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-200);
}

.cm-landing .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.cm-landing .hero__actions .btn { border-radius: 9999px; }
.cm-landing .hero__actions .btn--outline { border-color: rgb(255 255 255 / .85); }
.cm-landing .hero__actions .btn--outline:hover { border-color: var(--gold); }

.cm-landing .hero__stats {
  display: flex;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* Cada métrica separada por una línea vertical fina (en celular, ícono arriba del texto) */
.cm-landing .hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .375rem;
  padding-inline: .75rem;
  border-right: 1px solid rgb(255 255 255 / .25);
  font-size: .75rem;
  line-height: 1.25;
  color: var(--gray-300);
}
.cm-landing .hero__stat:first-child { padding-left: 0; }
.cm-landing .hero__stat:last-child  { padding-right: 0; border-right: 0; }

.cm-landing .hero__stat-icon {
  width: auto;
  height: 1.5rem;
  flex-shrink: 0;
}

.cm-landing .hero__stat-value {
  display: block;
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 640px) {
  .cm-landing .hero__inner           { padding-block: 5rem 6rem; }
  .cm-landing .hero__promo           { gap: .75rem; padding: .625rem 1.75rem .625rem .75rem; font-size: 1.125rem; }
  .cm-landing .hero__promo-shirt     { width: 2.75rem; height: 2.75rem; }
  .cm-landing .hero__promo-spark     { width: 2.75rem; height: 2.75rem; top: -1.25rem; }
  .cm-landing .hero__title           { font-size: 3.5rem; }
  .cm-landing .hero__text            { font-size: 1.25rem; }
  .cm-landing .hero__stat            { flex-direction: row; align-items: center; gap: .625rem; padding-inline: 1.5rem; font-size: .875rem; }
  .cm-landing .hero__stat-value      { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .cm-landing .hero__inner   { padding-block: 6rem 7rem; }
  .cm-landing .hero__content { max-width: 60rem; }
  .cm-landing .hero__title   { font-size: 4.25rem; }
  .cm-landing .hero__title-highlight { white-space: nowrap; }
}

@media (min-width: 1280px) {
  /* La foto ya es azul a la izquierda: el degradado solo la oscurece detrás del texto */
  .cm-landing .hero__bg      { object-position: right center; }
  .cm-landing .hero__overlay {
    background: linear-gradient(to right, rgb(5 10 44 / .85), rgb(5 10 44 / .5) 35%, transparent 60%);
  }
}


/* ==========================================================================
   7. Cómo funciona (pasos)
   ========================================================================== */
.cm-landing .steps {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.cm-landing .steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin-block: 0;
  padding-block: 2rem;
  list-style: none;
}

.cm-landing .step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: .5rem;
  text-align: center;
}

.cm-landing .step__label {
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--step-red);
}

/* Íconos de línea: el color sale del trazo, sin relleno */
.cm-landing .step__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-top: .5rem;
  fill: none;
  stroke: var(--step-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cm-landing .step__icon-fill { fill: var(--gray-50); }

/* Una sola frase (sin <strong> en bloque) para que Google Translate la traduzca entera */
.cm-landing .step__title {
  max-width: 12rem;
  margin-top: .625rem;
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .cm-landing .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }

  .cm-landing .step { padding-inline: 1.5rem; }

  /* Divisor: línea vertical con una flecha en el medio */
  .cm-landing .step:not(:last-child) { border-right: 2px solid var(--gray-300); }
  .cm-landing .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -.7rem;
    width: 1.25rem;
    height: 1.25rem;
    border-top: 2px solid var(--gray-400);
    border-right: 2px solid var(--gray-400);
    background: var(--gray-50);
    transform: translateY(-50%) rotate(45deg);
  }
}


/* ==========================================================================
   8. Guía de calces
   ========================================================================== */
.cm-landing .fit-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- Tarjeta: fondo tenue y borde fino del color de cada versión --- */
.cm-landing .fit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1.5px solid var(--fit-color);
  border-radius: var(--radius-xl);
  background: var(--fit-bg);
  color: var(--navy);
}

.cm-landing .fit-card--fan {
  --fit-color:   #2563eb;
  --fit-pill:    #2563eb;   /* fondo del nombre (texto blanco) */
  --fit-bg:      #f4f7ff;
  --fit-soft:    #dde7fd;   /* badge de talle */
  --fit-divider: #d3defa;
}
.cm-landing .fit-card--player {
  --fit-color:   #f97316;
  --fit-pill:    #ea580c;   /* más oscuro que el borde para que el blanco se lea */
  --fit-bg:      #fff8f1;
  --fit-soft:    #fde3cb;
  --fit-divider: #fbdcc0;
}

/* Nombre de la versión en una píldora de color */
.cm-landing .fit-card__title {
  padding: .375rem 1.25rem;
  border-radius: 9999px;
  background: var(--fit-pill);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-landing .fit-card__subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
}

/* Badge de talle recomendado */
.cm-landing .fit-card__size {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: .375rem 1.25rem .375rem .375rem;
  border-radius: 9999px;
  background: var(--fit-soft);
  font-size: .9375rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-landing .fit-card__size-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  color: var(--navy);
}

/* Lista de características */
.cm-landing .fit-card__list {
  margin: 1.25rem 0;   /* el pie usa margin-top: auto para alinearse entre tarjetas */
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--gray-700);
}
.cm-landing .fit-card__list li { display: flex; align-items: flex-start; gap: .75rem; }
.cm-landing .fit-card__list li + li { margin-top: .5rem; }

.cm-landing .fit-card__check {
  width: 1.25rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--fit-color);
}

/* Frase destacada al pie, separada por una línea sutil */
.cm-landing .fit-card__footer {
  align-self: stretch;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--fit-divider);
  font-weight: 700;
}

/* --- Tabla comparativa --- */
.cm-landing .fit-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.cm-landing .fit-table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.25rem;
  text-align: left;
}

.cm-landing .fit-table th,
.cm-landing .fit-table td { padding: .75rem 1.25rem; border: 0; }
.cm-landing .fit-table td + td { border-left: 1px solid var(--gray-200); }
.cm-landing .fit-table th + th { border-left: 1px solid rgb(255 255 255 / .15); }

.cm-landing .fit-table thead {
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cm-landing .fit-table tbody tr + tr { border-top: 1px solid var(--gray-200); }
.cm-landing .fit-table tbody tr:nth-child(even) { background: var(--gray-50); }
.cm-landing .fit-table tbody td { color: var(--gray-700); }
.cm-landing .fit-table tbody td:first-child { font-weight: 600; color: var(--navy); }

@media (min-width: 768px) {
  .cm-landing .fit-cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .cm-landing .fit-card  { padding: 2rem; }
}


/* ==========================================================================
   9.  Galería de trabajos
   ========================================================================== */
/* La grilla sigue las proporciones reales de las fotos: 6 verticales (3:4) y 2 horizontales (7:5),
   así no se cortan caras. Orden en la plantilla: horizontal, 6 verticales, horizontal.
   Con ese orden las filas quedan completas: celular 2 columnas, tablet 3, compu 5. */
.cm-landing .works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.cm-landing .works__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--grad-grass);   /* se ve mientras carga la foto */
  cursor: zoom-in;
}
.cm-landing .works__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Fotos horizontales: todo el ancho en celular y tablet */
.cm-landing .works__item--featured,
.cm-landing .works__item--wide { grid-column: 1 / -1; aspect-ratio: 7 / 5; }

.cm-landing .works__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 500ms ease;
}

.cm-landing .works__item:hover .works__img { transform: scale(1.1); }
.cm-landing .works__item--featured:hover .works__img,
.cm-landing .works__item--wide:hover .works__img { transform: scale(1.05); }

.cm-landing .works__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: .75rem;
  background: linear-gradient(to top, rgb(0 0 0 / .8), transparent);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
}

.cm-landing .works__item--featured .works__caption { padding: 1.25rem; }

.cm-landing .works__caption-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 900;
}

.cm-landing .works__caption-text {
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 400;
  color: var(--gray-300);
}

@media (min-width: 640px) {
  .cm-landing .works__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Compu: la horizontal ocupa 2 columnas y toma el alto de la fila que marcan las verticales */
@media (min-width: 1024px) {
  .cm-landing .works__grid { grid-template-columns: repeat(5, 1fr); }
  .cm-landing .works__item { aspect-ratio: 5 / 7; }
  .cm-landing .works__item--featured,
  .cm-landing .works__item--wide { grid-column: span 2; aspect-ratio: auto; }
}

/* Lightbox: la foto completa en un popup (lo arma landing.js) */
.cm-landing .lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.cm-landing .lightbox::backdrop { background: rgb(5 10 44 / .9); }

.cm-landing .lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  height: 100%;
  padding: 4rem 1rem 1.5rem;
}

.cm-landing .lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
}

.cm-landing .lightbox__caption {
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.cm-landing .lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgb(255 255 255 / .15);
  color: #fff;
  cursor: pointer;
}
.cm-landing .lightbox__close:hover { background: rgb(255 255 255 / .3); }
.cm-landing .lightbox__close svg   { width: 1.5rem; height: 1.5rem; }

html.cm-lightbox-open { overflow: hidden; }


/* ==========================================================================
   10. Banners (promocional y escuelas)
   ========================================================================== */
/* "Boceto en 48hs": círculo blanco con la pluma + texto alineado a la izquierda, sobre degradé azul → amarillo */
.cm-landing .promo-banner { background: var(--grad-stripe); }

.cm-landing .promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 2.5rem;
}

.cm-landing .promo-banner__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(0 0 0 / .15);
}
.cm-landing .promo-banner__icon img { width: 55%; height: auto; }   /* ico-diseno.png (54×48, sin margen) */

/* Sombra suave en el texto blanco: sobre la parte gris/amarilla del degradé se lee mejor */
.cm-landing .promo-banner__eyebrow,
.cm-landing .promo-banner__text { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .35); }

.cm-landing .promo-banner__eyebrow {
  font-size: .9375rem;
  line-height: 1.25rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.cm-landing .promo-banner__title {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.cm-landing .promo-banner__text {
  margin-top: .25rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .cm-landing .promo-banner__inner    { gap: 1.75rem; padding-block: 3rem; }
  .cm-landing .promo-banner__icon     { width: 6.5rem; height: 6.5rem; }
  .cm-landing .promo-banner__eyebrow  { font-size: 1.125rem; line-height: 1.5rem; }
  .cm-landing .promo-banner__title    { font-size: 2.5rem; }
  .cm-landing .promo-banner__text     { font-size: 1.0625rem; line-height: 1.5rem; }
}

/* --- Banner escuelas (entre la guía de calces y la galería) ---
   Tarjeta azul con franjas amarillas en diagonal; el CTA baja al formulario (#pedido)
   con el scroll suave de html. Sin padding propio: el espacio lo dan las secciones vecinas. */
.cm-landing .school-banner__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, #1e3a8a 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.cm-landing .school-banner__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border: 1.5px solid rgb(253 197 0 / .6);
  border-radius: 9999px;
  background: rgb(255 255 255 / .06);
  color: var(--gold-strong);
}
.cm-landing .school-banner__icon svg { width: 1.875rem; height: 1.875rem; }

.cm-landing .school-banner__eyebrow {
  font-size: .8125rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-strong);
}

.cm-landing .school-banner__title {
  margin-top: .25rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.cm-landing .school-banner__highlight { color: var(--gold-strong); }

/* Botón amarillo con texto azul (variante de .btn) */
.cm-landing .btn--gold {
  background: var(--gold-strong);
  color: var(--navy);
  box-shadow: 0 10px 15px -3px rgb(253 197 0 / .25);
}
.cm-landing .btn--gold:not(:disabled):hover {
  background: var(--gold);
  box-shadow: 0 14px 22px -4px rgb(253 197 0 / .4);
}

.cm-landing .school-banner__cta { border-radius: 9999px; white-space: nowrap; }

@media (min-width: 768px) {
  .cm-landing .school-banner__card {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 2.25rem 9rem 2.25rem 2.5rem;   /* a la derecha quedan las franjas */
  }
  .cm-landing .school-banner__body  { flex: 1; }
  .cm-landing .school-banner__title { font-size: 1.75rem; }

  /* Franjas en diagonal amarilla y azul, como la franja de colores del banner promocional */
  .cm-landing .school-banner__card::after {
    content: "";
    position: absolute;
    top: -25%;
    right: -2.5rem;
    width: 8rem;
    height: 150%;
    background: linear-gradient(90deg, var(--gold-strong) 0 38%, transparent 38% 54%, #2563eb 54% 100%);
    transform: skewX(-18deg);
    pointer-events: none;
  }
}


/* ==========================================================================
   11. Formulario de pedido
   ========================================================================== */
.cm-landing .order { background: var(--navy); }

.cm-landing .order-form {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-2xl);
}

/* --- Bloques numerados (fieldset) --- */
.cm-landing .form-group__legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
}

.cm-landing .form-group__num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  font-size: .875rem;
}

/* Subtítulo dentro de un bloque ("Versión") con ayuda a la derecha */
.cm-landing .form-group__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.cm-landing .form-group__help {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
}

/* --- Grillas internas --- */
.cm-landing .form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.cm-landing .form-grid--choices { gap: .75rem; }
.cm-landing .form-group__sub + .form-grid { margin-top: .5rem; }
.cm-landing .form-grid--3       { grid-template-columns: repeat(3, 1fr); }
.cm-landing .form-grid--4       { grid-template-columns: repeat(2, 1fr); }   /* 4 columnas desde 640px */

/* --- Campos de texto --- */
.cm-landing .field { display: block; }
.cm-landing .field--spaced { margin-top: 1rem; }
.cm-landing .field--short  { max-width: 16rem; }
.cm-landing .field--medium { max-width: 26rem; }

.cm-landing .field__label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.cm-landing .field__input {
  width: 100%;
  margin-top: .375rem;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cm-landing .field__input::placeholder { color: var(--gray-400); }
.cm-landing .field__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgb(124 58 237 / .3);
}

/* Trampa anti-spam: invisible para personas, los bots la completan */
.cm-landing .field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Opciones tipo tarjeta (radio oculto + tarjeta) --- */
.cm-landing .choice { display: block; cursor: pointer; }

.cm-landing .choice__card {
  height: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}
.cm-landing .choice__card--center { text-align: center; }
.cm-landing .choice__card--row    { display: flex; align-items: center; gap: 1rem; }

/* El violeta queda solo para la opción elegida; el hover apenas oscurece el borde */
.cm-landing .choice:hover .choice__card                  { border-color: var(--gray-300); background: #fff; }
.cm-landing .choice__input:checked + .choice__card       { border-color: var(--brand); background: rgb(124 58 237 / .05); }
.cm-landing .choice__input:focus-visible + .choice__card { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Variante naranja (bloque "Diseño") */
.cm-landing .choice--accent .choice__card                          { padding: 1.25rem; }
.cm-landing .choice--accent:hover .choice__card                    { border-color: rgb(249 115 22 / .5); }
.cm-landing .choice--accent .choice__input:checked + .choice__card { border-color: var(--accent); background: rgb(249 115 22 / .05); }

/* Íconos de línea del sprite (#icon-…): grises, violetas al seleccionar */
.cm-landing .choice__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--gray-500);
  transition: color var(--transition);
}
.cm-landing .choice__card--center .choice__icon { display: block; margin-inline: auto; }
.cm-landing .choice__input:checked + .choice__card .choice__icon { color: var(--brand); }

.cm-landing .choice__name {
  margin-top: .25rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-wrap: balance;
}

.cm-landing .choice__title { font-weight: 700; }

.cm-landing .choice__text {
  font-size: .75rem;
  line-height: 1rem;
  color: var(--gray-500);
}

.cm-landing .choice__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
}
.cm-landing .choice--accent .choice__title { margin-top: .25rem; font-weight: 900; color: var(--navy); }
.cm-landing .choice--accent .choice__text  { margin-top: .25rem; }

/* --- Zona de archivos --- */
.cm-landing .dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}
.cm-landing .dropzone:hover,
.cm-landing .dropzone.is-dragover {
  border-color: var(--brand);
  background: rgb(124 58 237 / .05);
}

.cm-landing .dropzone__icon { width: 3rem; height: 3rem; color: var(--brand); }

.cm-landing .dropzone__title {
  margin-top: .75rem;
  font-weight: 700;
  color: var(--navy);
}


.cm-landing .dropzone__hint {
  margin-top: .25rem;
  font-size: .75rem;
  color: var(--gray-500);
}

.cm-landing .dropzone__formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: 11px;
  font-weight: 700;
}

.cm-landing .dropzone__format {
  padding: .25rem .5rem;
  border-radius: .375rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--gray-200);
}

/* --- Lista de archivos (la genera el JS) --- */
.cm-landing .file-list {
  display: grid;
  gap: .5rem;
  margin-top: .75rem;
}

.cm-landing .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
}
.cm-landing .file-item--ok    { background: var(--success-bg); color: var(--success-text); }
.cm-landing .file-item--error { background: var(--error-bg);   color: var(--error-text); }

.cm-landing .file-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-landing .file-item__meta {
  flex-shrink: 0;
  margin-left: .75rem;
  font-size: .75rem;
}

/* --- Envío y mensajes --- */
.cm-landing .order-form__footer { padding-top: .5rem; }

.cm-landing .form-msg {
  margin-top: .75rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
}
.cm-landing .form-msg--ok    { color: var(--success); }
.cm-landing .form-msg--error { color: var(--error); }

.cm-landing .order-form__note {
  margin-top: .75rem;
  text-align: center;
  font-size: .75rem;
  color: var(--gray-400);
}

@media (min-width: 640px) {
  .cm-landing .order-form { padding: 2.5rem; }
  .cm-landing .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .cm-landing .form-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .cm-landing .field--full  { grid-column: span 2; }
}


/* ==========================================================================
   12. Animaciones
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cm-landing .works__img { transition: none; }
  .cm-landing :is(.btn, button) { transition-duration: .01ms; }
  .cm-landing :is(.btn, button):not(:disabled):hover { transform: none; }
}


/* ==========================================================================
   13. Selector de idioma (Google Translate)
   ========================================================================== */
.cm-landing .lang-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}

.cm-landing .lang-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  padding-block: .375rem;
}

.cm-landing .lang-bar__icon { width: 1rem; height: 1rem; color: var(--gray-400); }

.cm-landing .lang-bar__options { display: flex; gap: .25rem; }

.cm-landing .lang-bar__btn {
  padding: .25rem .625rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--gray-300);
}
.cm-landing .lang-bar__btn:hover { color: #fff; background: rgb(255 255 255 / .08); }
.cm-landing .lang-bar__btn[aria-pressed="true"] {
  border-color: rgb(253 197 0 / .6);
  color: var(--gold-strong);
}

/* El widget de Google agrega una barra arriba (que corre el body 40px), un tooltip y un
   resaltado al pasar el mouse: se ocultan para que el sitio se vea igual traducido.
   Son elementos que Google inserta fuera de .cm-landing, por eso van sin prefijo. */
body { top: 0 !important; }
iframe.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
