/*
  Estilos exclusivos de la pagina solucion/estudios-contables
  Usa las variables de color del tema (root.css)
*/

.ec-cta-btn {
  display: inline-block;
  background-color: var(--naranja);
  color: #fff;
  font-weight: 600;
  text-transform: none;
  border: 0;
  border-radius: 8px;
  padding: 15px 34px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ec-cta-btn:hover {
  background-color: #e67700;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

/* El clip-path diagonal del hero expone el borde del compositing layer de
   #main-content-wrap (overflow:hidden del tema/Bootstrap grid).
   Lo anulamos solo en esta página para eliminar el artefacto gris.
   No hay riesgo de scroll horizontal porque esta página no usa filas Bootstrap con overflow. */
#main-content-wrap { overflow: visible !important; }

/* Hero */
.ec-hero {
  position: relative;
  background: linear-gradient(115deg, #1B3F7E 0%, #3171E2 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 7rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}
.ec-hero .container { position: relative; z-index: 2; padding-top: 6.5rem; padding-bottom: 4rem; }
.ec-hero .ec-hero-title {
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.ec-hero .ec-hero-title b { color: var(--amarillo); }
.ec-hero .ec-hero-text {
  font-size: 1.15rem;
  max-width: 560px;
  opacity: .95;
  margin-bottom: 1.75rem;
}
.ec-hero .ec-hero-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 26px rgba(10, 34, 87, .18));
  transition: filter .25s ease;
}
.ec-hero .ec-hero-image:hover {
  filter: drop-shadow(0 30px 32px rgba(10, 34, 87, .24));
}

/* Decoraciones de fondo del hero */
.ec-hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: .12;
}
.ec-hero-deco-top { top: 16%; right: 0; width: 150px; }
.ec-hero-deco-bars1 { bottom: 22%; right: 13%; width: 120px; }
.ec-hero-deco-bars2 { top: 40%; left: 34%; width: 95px; }

@media (max-width: 991px) {
  .ec-hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%); padding-bottom: 4rem; }
  .ec-hero .ec-hero-title { font-size: 2rem; }
  .ec-hero .ec-hero-image { margin-top: 2rem; }
  .ec-hero-deco-bars2 { display: none; }
}

/* Banda subtitulo */
.ec-subtitle-band {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #2C66CC;
  margin-bottom: 0;
}

/* Features (4 cards) */
.ec-features-section { position: relative; overflow: visible; padding-top: 2.5rem; padding-bottom: 7.5rem; }
.ec-features-section .container { position: relative; z-index: 2; }
.ec-features-deco {
  position: absolute;
  z-index: 0;
  opacity: .03;
  pointer-events: none;
}
.ec-deco-blob { top: 50px; left: 0; width: 440px; max-width: 36%; }
.ec-deco-ese { bottom: 24px; right: 0; width: 185px; }

.ec-features-grid,
.ec-features-row,
.ec-bento-section,
.ec-bento,
.ec-bento-row,
#ec-contacto,
#ec-contacto .container,
.ec-cta-inner,
.ec-cta-photo { overflow: visible; }

/* observeMe agrega overflow:hidden a [data-observe].js (especificidad 0,2,0);
   lo neutralizamos en todos los contenedores que necesitan dejar pasar sus iconos */
.ec-features-row[data-observe].js,
.ec-bento[data-observe].js { overflow: visible !important; }

.ec-features-grid { position: relative; z-index: 1; max-width: 1024px; margin: 2.5rem auto 0; padding: 0 12px; }
.ec-features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.ec-feature {
  flex: 0 0 207px;
  max-width: 207px;
  min-height: 163px;
  text-align: center;
  padding: 0 14px 18px;
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(40, 65, 120, .13);
  overflow: visible;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ec-feature:hover {
  border-color: rgba(45, 105, 210, .28);
  box-shadow: 0 22px 42px rgba(40, 65, 120, .18);
  transform: translateY(-6px);
}
.ec-feature .ec-feature-icon {
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.ec-feature .ec-feature-icon img {
  max-width: 100%;
  height: auto;
}
.ec-features-row .ec-feature:nth-child(-n+3) .ec-feature-icon img { transform: translateY(-12px); }
.ec-feature h5 {
  font-size: .82rem;
  font-weight: 600;
  color: #4C4C4C;
  line-height: 1.35;
  margin-top: 26px;
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .ec-features-section { padding-bottom: 2rem; }
  .ec-features-row { gap: 40px 18px; }
  .ec-features-row .ec-feature:nth-child(-n+3) .ec-feature-icon img { transform: none; }
  .ec-feature { flex: 0 0 46%; max-width: 46%; }
}

/* Bento section */
.ec-bento-section {
  background: #fff;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.ec-bento-section h2 { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }

/* Bento grid — proporciones y alturas del Figma (1122×752) */
.ec-bento {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1122px;
  margin: 0 auto;
}
.ec-bento-row {
  display: grid;
  gap: 12px;
}
.ec-bento-row-1 { grid-template-columns: 463fr 347fr 292fr; }
.ec-bento-row-2 { grid-template-columns: 360fr 372fr 373fr; }
.ec-bento-row-3 { grid-template-columns: 559fr 553fr; }

.ec-bento-card {
  border-radius: 12px;
  position: relative;
  overflow: visible;
  color: #fff;
  isolation: isolate;
  transition: box-shadow .22s ease, transform .22s ease;
}
.ec-bento-card::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 52%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.ec-bento-card:hover {
  box-shadow: 0 18px 36px rgba(24, 64, 130, .22);
}
.ec-bento-card:hover::after { opacity: 1; }
.ec-bento-row-1 .ec-bento-card { height: 241px; }
.ec-bento-row-2 .ec-bento-card { height: 259px; }
.ec-bento-row-3 .ec-bento-card { height: 228px; }

.ec-bento-card h4 {
  font-weight: 400;
  margin: 0 0 .5rem;
  line-height: 1.15;
}
.ec-bento-card h4 b { font-weight: 700; }
.ec-bento-card h4 i { font-style: italic; font-weight: 400; }
.ec-bento-card h4 b i, .ec-bento-card h4 i b { font-weight: 700; font-style: italic; }
.ec-bento-card p { font-size: .82rem; margin: 0; line-height: 1.45; }

.ec-bento-royal { background: #2D69D2; }
.ec-bento-royal p { color: rgba(255,255,255,.92); }
.ec-bento-cyan { background: #05ADEA; }
.ec-bento-cyan p { color: rgba(255,255,255,.95); }
.ec-bento-orange { background: #F8AF19; }
.ec-bento-orange p { color: rgba(255,255,255,.95); }

.ec-bento-ic {
  position: absolute;
  height: auto;
  pointer-events: none;
  z-index: 1;
}
.ec-bento-body { position: relative; z-index: 2; }

/* Card 1: Estado de cuenta */
.ec-l-estado { padding: 35px 38px; }
.ec-l-estado h4 { font-size: 1.65rem; max-width: 70%; }
.ec-l-estado p { max-width: 52%; }
.ec-l-estado .ec-bento-ic { right: 28px; top: 50%; transform: translateY(-50%); }

/* Card 2: Gestión de deuda */
.ec-l-gestion { padding: 45px 28px; }
.ec-l-gestion h4 { font-size: 1.35rem; letter-spacing: -.04em; max-width: 90%; }
.ec-l-gestion p { max-width: 85%; }

/* Card 3: Reporte CFE — titulo arriba, icono + texto en fila abajo */
.ec-l-cfe {
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ec-l-cfe .ec-bento-body {
  display: flex;
  flex-direction: column;
}
.ec-l-cfe h4 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 0; }
.ec-l-cfe .ec-cfe-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.ec-l-cfe .ec-cfe-row img { flex-shrink: 0; height: auto; display: block; }
.ec-l-cfe .ec-cfe-row p { margin: 0; font-size: .82rem; line-height: 1.35; }

/* Card 4: Retención */
.ec-l-retencion { padding: 47px 34px; }
.ec-l-retencion h4 { font-size: 1.15rem; line-height: 1.15; max-width: 48%; }
.ec-l-retencion p { max-width: 78%; margin-top: 24px; }
.ec-l-retencion .ec-bento-ic { right: 20px; top: 57px; }

/* Card 5: Formulario */
.ec-l-formulario { padding: 55px 26px; }
.ec-l-formulario h4 { font-size: 1.75rem; line-height: 1.08; max-width: 92%; }
.ec-l-formulario p { font-size: .95rem; line-height: 1.35; max-width: 88%; margin-top: 22px; }

/* Card 6: Exportación parametrizable — icono arriba */
.ec-l-export-param { padding: 0; }
.ec-l-export-param .ec-bento-ic {
  position: relative;
  display: block;
  margin: 22px auto 0;
}
.ec-l-export-param .ec-bento-body { padding: 8px 35px 24px; }
.ec-l-export-param h4 { font-size: 1.05rem; line-height: 1.2; max-width: 88%; }
.ec-l-export-param p { max-width: 82%; margin-top: 8px; }

/* Card 7: Usuario */
.ec-l-usuario { padding: 39px 41px; }
.ec-l-usuario h4 { font-size: 1.55rem; line-height: 1.1; max-width: 55%; }
.ec-l-usuario p { max-width: 55%; margin-top: 18px; }
.ec-l-usuario .ec-bento-ic { right: 36px; top: 50%; transform: translateY(-50%); }
.ec-l-usuario:hover .ec-bento-ic { transform: translateY(-52%) scale(1.03); }

/* Card 8: Exportación por períodos — icono arriba centrado */
.ec-l-export-periodos { padding: 0; box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.ec-l-export-periodos .ec-bento-ic {
  position: relative;
  display: block;
  margin: 24px auto 0;
}
.ec-l-export-periodos .ec-bento-body { padding: 10px 27px 22px; }
.ec-l-export-periodos h4 { font-size: 1.35rem; letter-spacing: -.04em; max-width: 92%; }
.ec-l-export-periodos p { max-width: 92%; margin-top: 6px; }

@media (max-width: 991px) {
  .ec-bento { max-width: 100%; }
  .ec-bento-row-1,
  .ec-bento-row-2 { grid-template-columns: 1fr 1fr; }
  .ec-bento-row-3 { grid-template-columns: 1fr; }
  .ec-bento-row-1 .ec-bento-card:first-child,
  .ec-bento-row-2 .ec-bento-card:last-child { grid-column: span 2; }
  .ec-bento-row-1 .ec-bento-card,
  .ec-bento-row-2 .ec-bento-card,
  .ec-bento-row-3 .ec-bento-card { height: auto; min-height: 200px; }
  .ec-l-cfe p { padding-left: 0; }
  .ec-l-estado p,
  .ec-l-usuario h4,
  .ec-l-usuario p { max-width: 100%; }
}
@media (max-width: 575px) {
  .ec-bento-row-1,
  .ec-bento-row-2,
  .ec-bento-row-3 { grid-template-columns: 1fr; }
  .ec-bento-row-1 .ec-bento-card:first-child,
  .ec-bento-row-2 .ec-bento-card:last-child { grid-column: span 1; }
}

/* Bento acordeón móvil — bloque independiente, oculto en desktop */
.ec-bento-mob-accordion { display: none; }

@media (max-width: 575px) {
  .ec-bento { display: none !important; }

  .ec-bento-mob-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }
  .ec-accord-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(20,30,80,.08);
  }
  .ec-accord-header {
    width: 100%;
    border: none;
    text-align: left;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }
  .ec-accord-header:focus-visible {
    outline: 2px solid rgba(255,255,255,.7);
    outline-offset: -3px;
  }
  .ec-accord-chev {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    transition: transform .3s ease;
  }
  .ec-accord-item.open .ec-accord-chev { transform: rotate(180deg); }
  .ec-accord-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .ec-accord-panel-inner {
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.92);
  }
  .ec-accord-item.ec-bento-orange .ec-accord-header,
  .ec-accord-item.ec-bento-orange .ec-accord-panel { background: #F8AF19; }
  .ec-accord-item.ec-bento-royal  .ec-accord-header,
  .ec-accord-item.ec-bento-royal  .ec-accord-panel { background: #2D69D2; }
  .ec-accord-item.ec-bento-cyan   .ec-accord-header,
  .ec-accord-item.ec-bento-cyan   .ec-accord-panel { background: #05ADEA; }
}

/* Beneficios */
.ec-benefits-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.ec-deco-benefits {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
}
.ec-deco-benefits-left  { left: -100px; top: 50%; transform: translateY(-50%); width: 480px; max-width: 36%; }
.ec-deco-benefits-right { right: -50px; bottom: 60px; width: 200px; }

.ec-benefits-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
}
.ec-benefits-title b { color: var(--primary); }

.ec-benefits-list { list-style: none; padding: 0; margin: 0; }
.ec-benefits-list li {
  list-style: none;
  background: #F8AF19;
  color: #fff;
  border-radius: 20px;
  padding: 16px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 24px rgba(248, 175, 25, .18);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ec-benefits-list li:hover {
  background: #ffbb2e;
  box-shadow: 0 16px 30px rgba(248, 175, 25, .26);
  transform: translateX(6px);
}
#section-_content .ec-benefits-list li::before,
.ui-section ul.ec-benefits-list li::before { content: none !important; display: none !important; position: static !important; width: 0 !important; height: 0 !important; }
.ec-benefits-list .ec-benefit-num {
  font-size: 1.875rem;
  font-weight: 700;
  min-width: 52px;
  line-height: 1;
}
.ec-benefits-list .ec-benefit-text strong { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.ec-benefits-list .ec-benefit-text span { font-size: .875rem; opacity: .95; }

@media (max-width: 575px) {
  .ec-bento-section  { padding-top: 48px !important; padding-bottom: 40px !important; }
  .ec-benefits-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .ec-benefits-title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    max-width: 334px;
    margin: 0 auto 1.5rem;
  }
  .ec-benefits-list li {
    padding: 11px 16px;
    gap: 14px;
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .ec-benefits-list .ec-benefit-num { font-size: 1.25rem; min-width: 34px; }
  .ec-benefits-list .ec-benefit-text strong { font-size: .95rem; }
  .ec-benefits-list .ec-benefit-text span { font-size: .76rem; }
}

/* Stats + Testimonios: wrapper compartido con degradado que termina detrás del CTA */
.ec-blue-wrapper {
  background: linear-gradient(180deg, #3171E2 0%, #05ADEA 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 220px;
}

/* Decorativos del bloque azul */
.ec-blue-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transition: transform .35s ease;
}
.ec-blue-wrapper:hover .ec-blue-deco-left { transform: translate3d(-6px, -4px, 0); }
.ec-blue-wrapper:hover .ec-blue-deco-right { transform: translate3d(5px, -5px, 0); }
.ec-blue-wrapper:hover .ec-blue-deco-circles { transform: translate3d(0, 8px, 0); }
.ec-blue-deco-left  { left: 19%; top: 60px; width: 165px; }
.ec-blue-deco-right { right: 3%; top: 50px; width: 132px; }
.ec-blue-deco-circles { left: 0; top: 230px; width: 340px; }

/* Stats band */
.ec-stats {
  background: transparent;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
.ec-stats .ec-stats-number {
  font-size: clamp(4rem, 14vw, 14rem);
  font-weight: 800;
  line-height: 1;
}
.ec-stats .ec-stats-text {
  font-size: clamp(1rem, 2.78vw, 2.5rem);
  font-weight: 500;
  max-width: 620px;
  margin: .5rem auto 0;
}
.ec-stats .ec-stats-text strong { font-weight: 700; }

@media (max-width: 575px) {
  .ec-stats .ec-stats-number { font-size: clamp(3.5rem, 20vw, 5rem); }
  .ec-stats .ec-stats-text { font-size: 1.1rem; }
}

/* Testimonios */
.ec-testimonials-section { display: none; }
.ec-testimonials-section {
  background: transparent;
  position: relative;
  z-index: 1;
  padding-top: 117px !important;
  padding-bottom: 80px !important;
}
.ec-testimonials-title { text-align: center; padding-bottom: 3rem !important; }
.ec-testimonials-title h2 { color: var(--primary); font-weight: 700; }
.ec-testimonials-section .ec-testimonials-title h2 { color: #fff; }
.ec-testimonials-section .ec-testimonials-title p { color: rgba(255,255,255,.9); }
/* Carrusel de testimonios: fallback en grilla hasta que Slick inicializa */
.ec-testimonials-grid:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .ec-testimonials-grid:not(.slick-initialized) {
    grid-template-columns: 1fr;
  }
}

.ec-testimonials-grid.slick-initialized {
  display: block;
  margin-left: -12px;
  margin-right: -12px;
}
.ec-testimonials-grid .slick-list {
  padding: 4px 0 18px;
}
.ec-testimonials-grid .slick-track {
  display: flex;
  align-items: stretch;
}
.ec-testimonials-grid .slick-slide {
  height: auto;
}
.ec-testimonials-grid .slick-slide > div,
.ec-testimonial-slide {
  height: 100%;
}
.ec-testimonial-slide {
  padding: 0 12px;
}
.ec-testimonials-grid .slick-prev,
.ec-testimonials-grid .slick-next {
  z-index: 2;
}
.ec-testimonials-grid .slick-prev { left: -34px; }
.ec-testimonials-grid .slick-next { right: -34px; }
.ec-testimonials-grid .slick-dots {
  margin-top: 18px;
}
/* Neutralizar reglas globales .ui-section ul li que rompen los dots */
.ec-testimonials-section .slick-dots li {
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
}

/* Card */
.ec-testimonial-card {
  background: #fff !important;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,.18);
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  height: 100%;
  transition: box-shadow .22s ease, transform .22s ease;
}
.ec-testimonial-card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
  transform: translateY(-5px);
}
.ec-testimonial-stars { color: #F8AF19; font-size: 14px; letter-spacing: 1px; line-height: 1; }
.ec-testimonial-quote {
  color: #1247A9;
  font-size: 15px;
  line-height: 1.6;
  font-style: normal;
  margin: 0 !important;
  flex: 1;
}
.ec-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #E8F0FD;
  padding-top: 9px;
}
.ec-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #E8F0FD;
  background: #E8F0FD !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #1247A9;
  font-size: 15px;
  flex-shrink: 0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ec-testimonial-card:hover .ec-avatar {
  background: #1247A9 !important;
  border-color: #1247A9;
  color: #fff;
}
.ec-author-info strong { display: block; color: #1247A9; font-size: 15px; font-weight: 700; line-height: 1.5; }
.ec-author-info span { display: block; color: #1247A9; opacity: .7; font-size: 13px; line-height: 1.5; }

@media (max-width: 991px) {
  .ec-testimonials-grid .slick-prev { left: -20px; }
  .ec-testimonials-grid .slick-next { right: -20px; }
}

/* CTA final: la sección se monta sobre la sección azul */
#ec-contacto {
  margin-top: -220px;
  position: relative;
  z-index: 5;
  background: transparent !important;
  padding-bottom: 80px !important;
}

/* Decorativo en la sección blanca del CTA */
.ec-cta-deco {
  position: absolute;
  left: 3%;
  bottom: 60px;
  width: 108px;
  pointer-events: none;
  z-index: 0;
}

/* Card CTA — layout coincide con Figma: texto centrado, foto a la derecha */
.ec-final-cta {
  background: #F8AF19;
  border-radius: 28px;
  overflow: visible;
  position: relative;
  z-index: 1;
  box-shadow: 4px 8px 4px rgba(0,0,0,.04);
  transition: box-shadow .24s ease;
}
.ec-final-cta:hover {
  box-shadow: 0 22px 40px rgba(34, 82, 145, .18);
}
.ec-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
/* Columna de texto: centrada */
.ec-cta-text {
  flex: 0 0 62%;
  text-align: center;
  padding: 48px 48px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ec-final-cta h3 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
}
.ec-final-cta p {
  color: rgba(255,255,255,.95);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin: 0;
  max-width: 420px;
}
/* Botón píldora blanca (estilo Figma) */
.ec-final-cta .ec-cta-btn {
  display: inline-block;
  background-color: #fff;
  color: #1247A9;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 4px 2px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  margin: 0;
}
.ec-final-cta .ec-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 6px rgba(0,0,0,.18);
  color: #1247A9;
}
/* Columna de la foto: alineada al fondo derecha */
.ec-cta-photo {
  flex: 0 0 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}
.ec-final-photo {
  display: block;
  height: 330px;
  width: auto;
  max-width: 100%;
  margin-top: -40px;
}
/* Botón volver al inicio — debajo del card, centrado */
.ec-cta-back { text-align: center; }

@media (max-width: 991px) {
  .ec-cta-inner { flex-direction: column; }
  .ec-cta-text { flex: 0 0 auto; padding: 36px 28px 0; }
  .ec-cta-photo { flex: 0 0 auto; max-height: 240px; }
}
@media (max-width: 575px) {
  .ec-cta-photo { display: none; }
  .ec-cta-text { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-cta-btn,
  .ec-hero .ec-hero-image,
  .ec-feature,
  .ec-bento-card,
  .ec-bento-card::after,
  .ec-benefits-list li,
  .ec-blue-deco,
  .ec-testimonial-card,
  .ec-avatar,
  .ec-final-cta,
  .ec-accord-panel,
  .ec-accord-chev {
    transition: none !important;
  }

  .ec-cta-btn:hover,
  .ec-hero .ec-hero-image:hover,
  .ec-feature:hover,
  .ec-bento-card:hover,
  .ec-benefits-list li:hover,
  .ec-testimonial-card:hover,
  .ec-final-cta:hover {
    transform: none !important;
  }
}
