/* Home page styles (specific to html/home.html) */

/* Sticky footer: body en columna, main crece y el footer queda abajo */
.ec-home {
  background: var(--ec-color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ec-home main {
  flex: 1 1 auto;
}

.ec-home__header {
  background: var(--ec-color-brand-900);
  min-height: var(--ec-header-height);
  display: flex;
  align-items: center;
}

.ec-home__footer {
  background: var(--ec-color-brand-900);
  min-height: var(--ec-footer-height);
  display: flex;
  align-items: center;
}

.ec-home__navlink {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  text-decoration: none;
}

.ec-home__navlink:hover {
  color: var(--ec-color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-home__navlink--active {
  color: var(--ec-color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-home__hero {
  padding-top: calc(var(--ec-space-64) + var(--ec-space-16));
  padding-bottom: var(--ec-space-64);
}

.ec-home__eyebrow {
  color: var(--ec-color-brand-900);
  font-size: var(--ec-font-size-20);
  font-weight: var(--ec-font-weight-medium);
  margin: 0 0 var(--ec-space-12);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ec-home__title {
  color: var(--ec-color-brand-900);
  font-size: var(--ec-font-size-48);
  font-weight: var(--ec-font-weight-bold);
  line-height: var(--ec-line-height-title-48);
  margin: 0 0 var(--ec-space-16);
}

.ec-home__subtitle {
  color: var(--ec-color-brand-900);
  font-size: var(--ec-font-size-20);
  font-weight: var(--ec-font-weight-medium);
  margin: 0 0 var(--ec-space-24);
  max-width: 42rem;
}

.ec-home__hero-art {
  display: grid;
  gap: var(--ec-space-16);
  justify-content: end;
}

.ec-fan {
  --ec-fan-card-width: min(290px, 44vw);
  --ec-fan-card-height: calc(var(--ec-fan-card-width) * 1.25);

  position: relative;
  height: clamp(360px, 46vw, 540px);
  width: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.ec-fan__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ec-fan-card-width);
  transform: translate(-50%, -50%);
  transform-origin: 50% 85%;
  border-radius: 10px;
  padding: 14px;
}

.ec-fan__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Estado de carga: animaciones bloqueadas hasta que las imágenes carguen */
.ec-fan--loading .ec-fan__card {
  animation: none !important;
  opacity: 0;
}

/* Fan-out animation */
.ec-fan__card--left {
  z-index: 1;
  animation: ec-fan-left 1800ms cubic-bezier(0.2, 0.9, 0.2, 1) 80ms both;
}

.ec-fan__card--middle {
  z-index: 2;
  animation: ec-fan-middle 1800ms cubic-bezier(0.2, 0.9, 0.2, 1) 280ms both;
}

.ec-fan__card--right {
  z-index: 1;
  animation: ec-fan-right 1800ms cubic-bezier(0.2, 0.9, 0.2, 1) 480ms both;
}

@keyframes ec-fan-left {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translate(0, 0) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-18deg) translate(-160px, -20px) scale(1);
    opacity: 1;
  }
}

@keyframes ec-fan-middle {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translate(0, 0) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) translate(0px, 20px) scale(1);
    opacity: 1;
  }
}

@keyframes ec-fan-right {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translate(0, 0) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotate(18deg) translate(160px, -20px) scale(1);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .ec-fan {
    height: clamp(320px, 70vw, 520px);
  }

  .ec-fan__card {
    --ec-fan-card-width: min(220px, 68vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-fan__card--left,
  .ec-fan__card--middle,
  .ec-fan__card--right {
    animation: none !important;
    opacity: 1;
  }
}

.ec-home__art-stack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.ec-home__art-card {
  border-radius: 10px; /* TODO from Figma: exact image corner radius */
  box-shadow: var(--ec-shadow-elev-1);
  overflow: hidden;
  background: #f4f6f8;
}

.ec-home__art-card img {
  display: block;
  height: auto;
  width: 100%;
}

.ec-home__feature {
  padding: var(--ec-space-48) 0;
}

.ec-home__feature-card {
  border-radius: var(--ec-radius-20);
  overflow: hidden;
  background: var(--ec-color-brand-200);
}

.ec-home__feature-card--image {
  background: #f0f3f6;
  min-height: 320px;
}

.ec-home__feature-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-home__feature-card--copy {
  padding: var(--ec-space-32);
}

.ec-home__h2 {
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-12);
}

.ec-home__body {
  font-size: var(--ec-font-size-18);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  margin: 0;
}

.ec-home__quote {
  border-radius: var(--ec-radius-20);
  overflow: hidden;
  position: relative;
  color: var(--ec-color-white);
}

.ec-home__quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ec-color-overlay-brand-45);
}

.ec-home__quote-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  position: relative;
  padding: var(--ec-space-48) var(--ec-space-32);
  text-align: center;
}

.ec-home__quote-text {
  font-size: var(--ec-font-size-36);
  font-weight: var(--ec-font-weight-semibold);
  font-style: italic; /* from Figma: Quote/Semibold Italic/36 */
  margin: 0;
}

.ec-home__how {
  padding: var(--ec-space-64) 0 var(--ec-space-48);
}

.ec-home__how-title {
  text-align: center;
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-32);
}

.ec-step {
  background: var(--ec-color-brand-200);
  border-radius: var(--ec-radius-20);
  padding: var(--ec-space-24);
  height: 100%;
}

.ec-step__num {
  font-size: var(--ec-font-size-64);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  line-height: 1;
  margin: 0 0 var(--ec-space-12);
}

.ec-step__title {
  font-size: var(--ec-font-size-22);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-8);
}

.ec-step__desc {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  margin: 0;
}

.ec-home__demo {
  padding: var(--ec-space-48) 0;
}

.ec-card {
  border-radius: var(--ec-radius-20);
  border: 1px solid rgba(28, 61, 110, 0.14);
  background: var(--ec-color-white);
  overflow: hidden;
}

.ec-card__body {
  padding: var(--ec-space-48);
}

.ec-card__title {
  font-size: var(--ec-font-size-22);
  font-weight: var(--ec-font-weight-semibold);
  margin: 0 0 var(--ec-space-8);
  color: var(--ec-color-brand-900);
}

.ec-card__text {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  margin: 0;
  color: var(--ec-color-brand-900);
}

.ec-form-label {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
}

.ec-input {
  border-radius: 12px; /* TODO from Figma: input radius */
  border: 1px solid rgba(28, 61, 110, 0.24);
  padding: 12px 14px;
  width: 100%;
  font-family: var(--ec-font-family-sans);
  color: var(--ec-color-brand-900);
}

.ec-input::placeholder {
  color: var(--ec-color-brand-900);
  opacity: 0.55;
}

.ec-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 221, 255, 0.4);
  border-color: var(--ec-color-focus-ring);
}

.ec-input-textarea{
  height: 150px;
  min-height: 150px;
}

/* =====================================
   Mis eCards (listado según Figma)
   ===================================== */

.ec-mis-ecards__title {
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-bold);
  color: var(--ec-color-brand-900);
  text-align: center;
  margin: 0 0 var(--ec-space-24);
}

.ec-mis-ecards__search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto var(--ec-space-24);
}

.ec-mis-ecards__search {
  width: 100%;
  padding: var(--ec-space-12) 48px var(--ec-space-12) var(--ec-space-20);
  border: 1px solid rgba(28, 61, 110, 0.15);
  border-radius: var(--ec-radius-pill);
  background: var(--ec-color-gray-200);
  font-family: var(--ec-font-family-sans);
  font-size: var(--ec-font-size-18);
  color: var(--ec-color-brand-900);
}

.ec-mis-ecards__search::placeholder {
  color: var(--ec-color-brand-900);
  opacity: 0.6;
}

.ec-mis-ecards__search:focus {
  outline: none;
  border-color: var(--ec-color-focus-ring);
  box-shadow: 0 0 0 2px rgba(0, 221, 255, 0.25);
}

.ec-mis-ecards__search-icon {
  position: absolute;
  right: var(--ec-space-16);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(28, 61, 110, 0.5);
  pointer-events: none;
}

.ec-mis-ecards__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ec-space-16);
  margin-bottom: var(--ec-space-24);
}

.ec-mis-ecards__sort {
  display: inline-flex;
  align-items: center;
  gap: var(--ec-space-8);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: rgba(28, 61, 110, 0.7);
}

.ec-mis-ecards__sort-icon {
  flex-shrink: 0;
}

.ec-mis-ecards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ec-space-24);
}

@media (max-width: 991.98px) {
  .ec-mis-ecards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .ec-mis-ecards__grid {
    grid-template-columns: 1fr;
  }
}

/* Card: fondo gris claro, sombra, thumbnail ligeramente girado */
.ec-ecard-item {
  border-radius: var(--ec-radius-20);
  background: #d9d9d9;
  box-shadow: var(--ec-shadow-elev-1);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.ec-ecard-item:hover {
  box-shadow: 3px 10px 24px 0 rgba(0, 0, 0, 0.18);
}

.ec-ecard-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ec-ecard-item__link:hover {
  color: inherit;
  text-decoration: none;
}

.ec-ecard-item__thumb {
  padding: var(--ec-space-20) var(--ec-space-20) var(--ec-space-12);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ec-ecard-item__thumb img,
.ec-ecard-item__thumb-placeholder {
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.ec-ecard-item__thumb-placeholder {
  background: linear-gradient(145deg, #e8f0f4 0%, #d2e0e5 50%, #f0f4e8 100%);
}

.ec-ecard-item__body {
  padding: 0 var(--ec-space-20) 0;
}

.ec-ecard-item__title {
  font-size: var(--ec-font-size-20);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-8);
  line-height: 1.3;
}

.ec-ecard-item__preview {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  opacity: 0.65;
  margin: 0 0 var(--ec-space-16);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-ecard-item__meta {
  margin: 0;
  font-size: var(--ec-font-size-16);
}

.ec-ecard-item__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  margin-bottom: var(--ec-space-4);
}

.ec-ecard-item__meta-row:last-child {
  margin-bottom: 0;
}

.ec-ecard-item__meta dt {
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  margin: 0;
}

.ec-ecard-item__meta dd {
  margin: 0;
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-400);
}

/* Legacy listado (por si se usa en otros sitios) */
.ec-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ec-space-16);
  margin-bottom: var(--ec-space-24);
}

.ec-list-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.ec-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  font-family: var(--ec-font-family-sans);
}

.ec-badge--sent {
  background: rgba(28, 61, 110, 0.12);
  color: var(--ec-color-brand-900);
}

.ec-badge--scheduled {
  background: rgba(210, 224, 229, 0.9);
  color: var(--ec-color-brand-900);
}

.ec-badge--draft {
  background: var(--ec-color-gray-200);
  color: var(--ec-color-gray-300);
}

.ec-ecard-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ec-space-8);
}

.ec-detail-preview {
  border-radius: var(--ec-radius-20);
  overflow: hidden;
  background: #f5f6f8;
  max-width: 280px;
  box-shadow: var(--ec-shadow-elev-1);
}

.ec-detail-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.ec-detail-meta {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
}

.ec-detail-meta dt {
  margin: 0 0 2px;
  opacity: 0.75;
  font-weight: var(--ec-font-weight-medium);
}

.ec-detail-meta dd {
  margin: 0 0 var(--ec-space-12);
}

.ec-detail-meta dd:last-child {
  margin-bottom: 0;
}

/* =====================================
   Mis eCards – detalle (Revisa tu eCard)
   ===================================== */

/* Fondo gris claro en toda la sección */
.ec-detalle {
  background: var(--ec-color-gray-200);
}

/* Estado "eCard no encontrada" (tarjeta única centrada) */
.ec-detalle .ec-detalle-card:not([class*="--"]) {
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  box-shadow: var(--ec-shadow-elev-1);
  padding: var(--ec-space-32);
}

.ec-detalle-title {
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-bold);
  color: var(--ec-color-brand-900);
  text-align: center;
  margin: 0 0 var(--ec-space-24);
}

.ec-detalle-row {
  align-items: stretch;
}

/* Columna izquierda: tarjeta BLANCA con formulario */
.ec-detalle-card--left {
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  box-shadow: var(--ec-shadow-elev-1);
  padding: var(--ec-space-32);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ec-detalle-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-detalle-form-body {
  flex: 1 1 auto;
}

.ec-detalle-form .ec-input {
  max-width: 100%;
}

/* Inputs con fondo gris claro (como en el diseño) */
.ec-input--detalle {
  background: var(--ec-color-gray-200);
  border-color: rgba(28, 61, 110, 0.12);
}

.textarea-mensaje-detalles {
  field-sizing: content;
  min-height: 150px;
}

.ec-detalle-label {
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
}

/* Fila de archivo: icono verde con X (Excel) + nombre + papelera */
.ec-detalle-file-row {
  display: flex;
  align-items: center;
  gap: var(--ec-space-12);
  padding: var(--ec-space-12) var(--ec-space-16);
  background: var(--ec-color-white);
  border-radius: 12px;
  border: 1px solid rgba(28, 61, 110, 0.12);
}

.ec-detalle-file-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #217346;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ec-detalle-file-icon-x {
  font-size: 14px;
  font-weight: bold;
  color: var(--ec-color-white);
  font-family: var(--ec-font-family-sans);
}

.ec-detalle-file-name {
  flex: 1;
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  min-width: 0;
}

.ec-detalle-file-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(28, 61, 110, 0.5);
  cursor: pointer;
  border-radius: 8px;
}

.ec-detalle-file-delete:hover {
  background: rgba(28, 61, 110, 0.08);
  color: var(--ec-color-brand-900);
}

/* Botón Guardar cambios: dentro de la tarjeta blanca, centrado, alineado al final */
.ec-detalle-actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.ec-detalle-actions .ec-btn {
  min-width: 200px;
}

/* Columna derecha: panel GRIS más oscuro con previsualización (misma altura que la izquierda) */
.ec-detalle-card--right {
  background: #ebebeb;
  border-radius: var(--ec-radius-20);
  box-shadow: var(--ec-shadow-elev-1);
  border: 1px solid rgba(28, 61, 110, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ec-detalle-preview .ec-crear-paso3-preview-box {
  padding: var(--ec-space-24);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* =====================================
   Mi cuenta
   ===================================== */

.ec-mi-cuenta__title {
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-bold);
  color: var(--ec-color-brand-900);
  text-align: center;
  margin: 0 0 var(--ec-space-32);
}

.ec-mi-cuenta__card {
  max-width: 560px;
  margin: 0 auto var(--ec-space-32);
  margin-top: 150px;
  padding: var(--ec-space-24);
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  border: 2px solid #c7c7c7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ec-mi-cuenta__user {
  display: flex;
  align-items: center;
  gap: var(--ec-space-20);
}

.ec-mi-cuenta__avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ec-color-brand-200);
  color: var(--ec-color-brand-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-mi-cuenta__avatar img,
.ec-mi-cuenta__avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-mi-cuenta__data {
  min-width: 0;
}

.ec-mi-cuenta__name {
  font-size: 22px;
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-4);
}

.ec-mi-cuenta__email {
  font-size: 18px;
  font-weight: var(--ec-font-weight-medium);
  color: #758db1;
  margin: 0;
}

.ec-mi-cuenta__logout {
  margin-top: var(--ec-space-20);
  align-self: flex-end;
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-mi-cuenta__logout:hover {
  color: var(--ec-color-brand-900);
}

.ec-mi-cuenta__hint {
  max-width: 480px;
  margin: 0 auto var(--ec-space-24);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  text-align: center;
  line-height: 1.45;
}

.ec-mi-cuenta__link {
  color: var(--ec-color-brand-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-mi-cuenta__link:hover {
  color: var(--ec-color-brand-700);
}

.ec-mi-cuenta__actions {
  display: flex;
  justify-content: center;
}

/* =====================================
   Soporte técnico
   ===================================== */

/* Sección: fondo blanco, padding vertical generoso, título centrado */
.ec-soporte {
  background: #FFFFFF;
  padding: 56px 5% 64px;
  padding-top: 80px;
}

/* Contenedor del formulario: ocupa el 90% del ancho, centrado */
.ec-soporte__wrap {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 160px;
}

/* Título grande, azul, centrado */
.ec-soporte__title {
  font-size: var(--ec-font-size-40);
  font-weight: var(--ec-font-weight-bold);
  color: var(--ec-color-brand-900);
  text-align: center;
  margin: 0 0 10px;
  font-family: var(--ec-font-family-sans);
}

/* Subtítulo pequeño, centrado, gris oscuro */
.ec-soporte__subtitle {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  text-align: center;
  margin: 0 0 48px;
  line-height: 1.4;
  font-family: var(--ec-font-family-sans);
  opacity: 0.7;
}

/* Filas con separación vertical */
.ec-soporte__row {
  margin-bottom: 28px;
}

.ec-soporte__row:last-of-type {
  margin-bottom: 0;
}

.ec-soporte__row--three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.ec-soporte__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 991.98px) {
  .ec-soporte__row--three { grid-template-columns: 1fr; }
  .ec-soporte__row--two   { grid-template-columns: 1fr; }
}

.ec-soporte__field {
  min-width: 0;
}

/* Labels: azul marino, tamaño 14px */
.ec-soporte__label {
  display: block;
  font-size: 14px;
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin-bottom: 6px;
  text-align: left;
  font-family: var(--ec-font-family-sans);
}

/* Inputs: fondo blanco, borde gris claro, altura 44px, border-radius suave */
.ec-soporte__input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  font-size: var(--ec-font-size-16);
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid rgba(28, 61, 110, 0.25);
  border-radius: 10px;
  color: var(--ec-color-brand-900);
  font-family: var(--ec-font-family-sans);
}

.ec-soporte__input::placeholder {
  color: var(--ec-color-brand-900);
  opacity: 0.4;
}

.ec-soporte__input:focus {
  outline: none;
  border-color: var(--ec-color-brand-900);
  box-shadow: 0 0 0 2px rgba(28, 61, 110, 0.12);
}

/* Select con flecha azul */
.ec-soporte__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c3d6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea más alto, sin altura fija de los inputs */
.ec-soporte__field textarea.ec-soporte__input {
  height: 350px;
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}

/* Botón Enviar: pill azul, alineado derecha */
.ec-soporte__actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.ec-soporte__btn {
  padding: 12px 32px;
  font-size: var(--ec-font-size-18);
  font-weight: var(--ec-font-weight-medium);
  border-radius: var(--ec-radius-pill);
  background: var(--ec-color-brand-900);
  border: 2px solid var(--ec-color-brand-900);
  color: #FFFFFF;
  font-family: var(--ec-font-family-sans);
  cursor: pointer;
  transition: background 160ms ease;
}

.ec-soporte__btn:hover {
  background: var(--ec-color-brand-700);
  border-color: var(--ec-color-brand-700);
}

/* =====================================
   Crea una eCard – wizard preview
   ===================================== */

.ec-wizard-preview-title {
  font-size: 20px;
  text-align: center;
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-20);
}

.ec-preview-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.ec-preview-card {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.ec-preview-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ec-preview-card-inner {
  padding: var(--ec-space-16);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
}

.ec-preview-card-inner .ec-preview-title {
  font-size: var(--ec-font-size-20);
  font-weight: var(--ec-font-weight-semibold);
  margin: 0 0 var(--ec-space-8);
}

/* Paso 1 Crear eCard: encaje en pantalla sin scroll */
.ec-crear-step1 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ec-crear-step1 main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso1-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--ec-space-24);
  padding-bottom: var(--ec-space-24);
  background: var(--ec-color-gray-200);
}

.ec-crear-paso1-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso1-container .ec-stepper {
  margin-bottom: var(--ec-space-20);
}

.ec-crear-paso1-panels {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.ec-crear-paso1-panels .col-12 {
  min-height: 0;
}

.ec-crear-paso1-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso1-card--left {
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  border: 1px solid rgba(28, 61, 110, 0.1);
  overflow: hidden;
  text-align: center;
}

.ec-crear-paso1-card--left .ec-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-crear-paso1-obra {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 42vh;
}

.ec-crear-paso1-obra-img {
  width: 100%;
  max-width: 270px;
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: var(--ec-shadow-elev-1); 
  background: linear-gradient(160deg, #87c4e0 0%, #c4e0a8 50%, #f5e6a8 100%);*/
  aspect-ratio: 3 / 4;
}

.ec-crear-paso1-card--right {
  background: #d8dce0;
  border-radius: var(--ec-radius-20);
  overflow: hidden;
}

.ec-crear-paso1-card--right .ec-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-crear-paso1-preview-wrap {
  min-height: 0;
}

.ec-crear-paso1-preview-card {
  width: 100%;
  max-width: 330px;
}

.ec-crear-paso1-preview-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ec-shadow-elev-1);
  aspect-ratio: 3 / 4;
}

.ec-crear-paso1-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.ec-crear-paso1-next {
  flex-shrink: 0;
}

/* Paso 2 Crear eCard: encaje en pantalla sin scroll */
.ec-crear-step2 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ec-crear-step2 main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso2-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--ec-space-24);
  padding-bottom: var(--ec-space-24);
  background: var(--ec-color-gray-200);
}

.ec-crear-paso2-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso2-container .ec-stepper {
  margin-bottom: var(--ec-space-20);
}

.ec-crear-paso2-panels {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.ec-crear-paso2-panels .col-12 {
  min-height: 0;
}

.ec-crear-paso2-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso2-card--left {
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  border: 2px solid #c7c7c7;
  overflow: hidden;
}

.ec-crear-paso2-card--left .ec-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-crear-paso2-card--left form {
  min-height: 0;
}

.ec-crear-paso2-card--right {
  background: #d9d9d9;
  border-radius: var(--ec-radius-20);
  overflow: hidden;
}

.ec-crear-paso2-card--right .ec-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-crear-paso2-preview-wrap {
  min-height: 0;
  padding: var(--ec-space-20);
}

/* Labels paso 2 */
.ec-crear-paso2-card--left .ec-form-label {
  font-size: 18px;
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
}

/* Input con fondo gris y sombra (paso 2) */
.ec-input--paso2 {
  background: #d9d9d9;
  border: none;
  border-radius: 16px;
  height: 63px;
  box-shadow: 3px 8px 20px 0 rgba(0, 0, 0, 0.25);
  font-size: 18px;
  font-weight: var(--ec-font-weight-semibold);
}

.ec-input--paso2::placeholder {
  color: #a8a8a8;
  opacity: 1;
}

.ec-input--paso2:focus {
  outline: none;
  box-shadow: 3px 8px 20px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 221, 255, 0.4);
  border: none;
}

/* Textarea paso 2 */
.ec-input-textarea--paso2 {
  height: 330px;
  min-height: 330px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: var(--ec-font-weight-medium);
  resize: none;
}

/* Upload area paso 2: borde sólido azul */
.ec-crear-paso2-card--left .ec-upload {
  border-style: solid;
  border-color: var(--ec-color-brand-900);
  background: transparent;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ec-crear-paso2-card--left .ec-upload:hover {
  background: rgba(28, 61, 110, 0.04);
}

/* Imagen de previsualización carta abierta */
.ec-crear-paso2-preview-img {
  width: 100%;
  max-width: 380px;
  display: block;
}

.ec-crear-paso2-nav {
  flex-shrink: 0;
}

.ec-crear-step2 .min-height-0 {
  min-height: 0;
  gap: 20px;
}

/* Paso 3 Crear eCard: encaje en pantalla sin scroll, igual que captura */
.ec-crear-step3 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ec-crear-step3 main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso3-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--ec-space-24);
  padding-bottom: var(--ec-space-24);
  background: var(--ec-color-gray-200);
}

.ec-crear-paso3-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso3-container .ec-stepper {
  margin-bottom: var(--ec-space-20);
}

.ec-crear-paso3-panels {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.ec-crear-paso3-panels .col-12 {
  min-height: 0;
}

.ec-crear-paso3-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ec-crear-paso3-card--left {
  background: var(--ec-color-white);
  border-radius: var(--ec-radius-20);
  border: 1px solid rgba(28, 61, 110, 0.1);
  overflow: hidden;
}

.ec-crear-paso3-card--left .ec-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ec-crear-paso3-scroll {
  min-height: 0;
}

/* Tabla de estructura de destinatarios */
.ec-crear-paso3-tabla-wrap {
  width: 100%;
}

.ec-crear-paso3-tabla {
  margin: auto;
  font-size: var(--ec-font-size-16);
  width: 75%;
}

.ec-crear-paso3-tabla th,
.ec-crear-paso3-tabla td {
  padding: 8px 10px;
  text-align: left;
  color: var(--ec-color-brand-900);
}

/* Tarjetas de canal de envío (Email / WhatsApp) */
.ec-crear-paso3-canal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  border: 2px solid var(--ec-color-brand-200);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  height: 100%;
  min-height: 160px;
  user-select: none;
}

.ec-crear-paso3-canal-card:hover {
  border-color: var(--ec-color-brand-400);
  box-shadow: 3px 8px 20px rgba(0, 0, 0, 0.1);
}

.ec-crear-paso3-canal-card:has(input:checked) {
  border-color: var(--ec-color-brand-900);
  border-width: 2px;
  box-shadow: 3px 8px 20px rgba(0, 0, 0, 0.15);
}

.ec-crear-paso3-canal-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.ec-crear-paso3-canal-icon svg {
  width: 100%;
  height: 100%;
}

.ec-crear-paso3-canal-label {
  font-family: var(--ec-font-family-sans);
  font-size: var(--ec-font-size-18);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
}

/* Opciones de envío: una sola fila, aspecto checkbox */
.ec-crear-paso3-opciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ec-space-16);
  justify-content: space-between;
  width: 100%;
}

/* Radio con apariencia de checkbox (cuadrado + check cuando seleccionado) */
.ec-crear-paso3-check {
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  border: 2px solid var(--ec-color-brand-900);
  border-radius: 4px;
  background: var(--ec-color-white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
}
.ec-crear-paso3-check:checked {
  background: var(--ec-color-brand-900);
  border-color: var(--ec-color-brand-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.ec-crear-paso3-check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ec-color-focus-ring);
}

.ec-crear-paso3-nota {
  font-size: var(--ec-font-size-16);
}

.ec-crear-paso3-nav {
  flex-shrink: 0;
  border-top: 1px solid rgba(28, 61, 110, 0.08);
}

.ec-crear-paso3-email {
  width: 75%;
  background-color: #d9d9d9;
}

/* Input de teléfono con prefijo (sub-paso WhatsApp) */
.ec-phone-wrap {
  display: flex;
  align-items: stretch;
  width: 75%;
  border: 1.5px solid var(--ec-color-brand-200);
  border-radius: 12px;
  overflow: hidden;
  background: #d9d9d9;
}

.ec-phone-wrap2 {
  width: 100% !important;
}

.ec-phone-prefix {
  flex-shrink: 0;
  border: none;
  border-right: 1.5px solid var(--ec-color-brand-200);
  background: #d9d9d9;
  color: var(--ec-color-brand-900);
  font-family: var(--ec-font-family-sans);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  padding: 0 10px;
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.ec-phone-prefix:focus {
  background: var(--ec-color-brand-200);
}

.ec-phone-number {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-width: 0;
}
.btn-enviar-test{
  width: 21%;
}

/* Panel derecho: fondo gris, título centrado, mockup centrado */
.ec-crear-paso3-card--right {
  background: #d9d9d9;
  border-radius: var(--ec-radius-20);
  overflow: hidden;
  border: 1px solid rgba(28, 61, 110, 0.08);
}

/* Bloque previsualización: título + conjunto superpuesto (imagen 2: portada atrás, interior delante) */
.ec-crear-paso3-preview-box {
  padding: var(--ec-space-24);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ec-crear-paso3-preview-title {
  text-align: center;
  margin: 0 0 var(--ec-space-24);
}

/* Contenedor del conjunto: portada e interior superpuestos en un solo bloque */
.ec-crear-paso3-mockup-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 50px;
}

/* Imagen carta abierta (interior) debajo de la portada */
.ec-crear-paso3-carta-open {
  width: 100%;
  max-width: 360px;
  display: block;
  border-radius: 12px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* Portada plegada: arriba y ligeramente detrás (z-index menor), inclinada */
.ec-crear-paso3-folded {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.ec-crear-paso3-folded-cover {
  width: 180px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
}

.ec-crear-paso3-folded-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interior abierto: debajo y delante (z-index mayor), solapando la portada */
.ec-crear-paso3-open {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  display: flex;
  width: 100%;
  min-height: 220px;
  background: var(--ec-color-white);
  border-radius: 16px;
  box-shadow: var(--ec-shadow-elev-1);
  overflow: hidden;
}

.ec-crear-paso3-open-left {
  flex: 0 0 42%;
  background: var(--ec-color-white);
  border-right: 1px solid rgba(28, 61, 110, 0.12);
}

.ec-crear-paso3-preview-wrap {
  min-height: 0;
  padding: var(--ec-space-20);
}

.ec-crear-paso3-open-right {
  flex: 1 1 58%;
  padding: var(--ec-space-20);
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  text-align: left;
}

.ec-crear-paso3-mockup-title {
  font-size: var(--ec-font-size-20);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-12);
}

.ec-crear-paso3-mockup-msg {
  margin: 0 0 var(--ec-space-8);
  line-height: 1.45;
  color: var(--ec-color-brand-900);
  opacity: 0.85;
}

.ec-crear-paso3-mockup-firma {
  margin: var(--ec-space-16) 0 var(--ec-space-4);
  opacity: 0.9;
}

.ec-crear-paso3-mockup-sig {
  margin: 0;
  font-weight: var(--ec-font-weight-semibold);
}

/* Botones del paso 3: fuera de los contenedores, debajo de los dos paneles */
.ec-crear-paso3-nav {
  flex-shrink: 0;
  border-top: none;
}

.ec-crear-step3 .min-height-0 {
  min-height: 0;
}

.ec-obra-escogida {
  font-size: var(--ec-font-size-18);
  font-weight: var(--ec-font-weight-semibold);
  color: var(--ec-color-brand-900);
  margin: 0 0 var(--ec-space-8);
}

.ec-obra-escogida-hint {
  font-size: var(--ec-font-size-16);
  font-weight: var(--ec-font-weight-medium);
  color: var(--ec-color-brand-900);
  opacity: 0.75;
  margin: 0 0 var(--ec-space-24);
}

.opacity-75 {
  opacity: 0.75;
}

/* =====================================
   Responsive tweaks
   ===================================== */

@media (max-width: 991.98px) {
  .ec-home__hero {
    padding-top: var(--ec-space-48);
    padding-bottom: var(--ec-space-48);
  }

  .ec-home__feature {
    padding: var(--ec-space-32) 0;
  }

  .ec-home__how {
    padding: var(--ec-space-48) 0 var(--ec-space-32);
  }
}

@media (max-width: 767.98px) {
  .ec-home__hero {
    text-align: center;
  }

  .ec-home__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .ec-home__title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .ec-home__eyebrow {
    font-size: var(--ec-font-size-16);
  }

  .ec-home__how-title {
    font-size: 1.75rem;
  }

  .ec-step {
    text-align: center;
  }

  .ec-home__demo .ec-card__body {
    padding-inline: var(--ec-space-16);
  }

  .ec-home__hero .d-flex {
    justify-content: center !important;
  }

  /* Fan layout: vertical stack on mobile */
  .ec-fan {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ec-space-16);
    margin-top: var(--ec-space-32);
  }

  .ec-fan__card {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: min(260px, 80vw);
    opacity: 0;
    animation: ec-fan-vertical 700ms ease-out forwards;
  }

  .ec-fan__card--left {
    animation-delay: 100ms;
  }

  .ec-fan__card--middle {
    animation-delay: 280ms;
  }

  .ec-fan__card--right {
    animation-delay: 460ms;
  }

  @keyframes ec-fan-vertical {
    0% {
      transform: translateY(16px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

@media (max-width: 575.98px) {
  .ec-home__header {
    min-height: 56px;
  }

  .ec-home__title {
    font-size: 1.9rem;
  }

  .ec-home__subtitle {
    font-size: var(--ec-font-size-18);
  }

  .ec-step__num {
    font-size: 2.5rem;
  }

  .ec-card__title {
    font-size: 1.1rem;
  }

  .ec-card__text {
    font-size: 0.95rem;
  }
}

.boton-ir-web{
  margin: auto;
}