/* ==========================================================================
   EduConecta Theme - Main Stylesheet
   Designed for High Conversion (CRO) & Core Web Vitals (<2.5s LCP)
   ========================================================================== */

/* --- Reset & Global --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px * var(--fs, 1));
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial'), local('Roboto'), local('Helvetica Neue'), local('sans-serif');
  ascent-override: 96.8%;
  descent-override: 25.1%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

body {
  font-family: 'Montserrat', 'Montserrat Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ec-text);
  background-color: var(--ec-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header Sticky --- */
.ec-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ec-white);
  border-bottom: 1px solid var(--ec-border);
  padding: 0.75rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 59px;
  box-sizing: border-box;
}

.ec-header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.ec-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ec-logo-img {
  height: 34px;
  width: auto;
  aspect-ratio: 802 / 120;
  max-width: 227px;
  display: block;
  object-fit: contain;
}

.ec-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: nowrap;
}

.ec-nav a {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--ec-navy);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ec-nav a:hover {
  color: var(--ec-red);
}

.ec-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ec-red);
  transition: width 0.2s ease;
}

.ec-nav a:hover::after {
  width: 100%;
}

.ec-header-cta {
  background: var(--ec-red);
  color: var(--ec-white) !important;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.ec-header-cta:hover {
  background: var(--ec-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(209, 32, 39, 0.25);
}

.ec-header-cta:active {
  transform: translateY(0);
}

.ec-header-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ec-header-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 66, 138, 0.05);
  color: var(--ec-navy);
  border: 1px solid rgba(29, 66, 138, 0.1);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ec-header-social-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ec-header-social-link.ig:hover {
  background: #E1306C;
  border-color: #E1306C;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(225, 48, 108, 0.25);
}

.ec-header-social-link.tt:hover {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  .ec-header-socials {
    display: none;
  }
}

.ec-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.ec-mobile-toggle:focus {
  outline: 2px solid var(--ec-navy);
}

.ec-mobile-toggle svg {
  width: 26px;
  height: 26px;
  stroke: var(--ec-navy);
  stroke-width: 2;
  display: block;
}

.ec-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ec-white);
  flex-direction: column;
  padding: 1.25rem;
  gap: 1rem;
  border-bottom: 1px solid var(--ec-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.ec-mobile-nav.is-open {
  display: flex;
}

.ec-mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ec-navy);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ec-bg);
}

.ec-mobile-nav a:last-child {
  border-bottom: none;
}

/* --- Hero Section --- */
.ec-hero-wrapper {
  background: radial-gradient(ellipse at 80% 20%, rgba(29, 66, 138, 0.05), transparent 65%);
  position: relative;
}

.ec-hero {
  padding: 4.5rem 2rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ec-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-navy);
  width: fit-content;
}

.ec-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ec-red);
  animation: ec-pulse 2s ease-in-out infinite;
}

.ec-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ec-navy);
  letter-spacing: -0.03em;
}

.ec-hero h1 .highlight {
  color: var(--ec-red);
  position: relative;
}

.ec-hero-sub {
  font-size: 1rem;
  color: var(--ec-text-body);
  line-height: 1.7;
  max-width: 500px;
}

.ec-hero-sub strong {
  color: var(--ec-navy);
  font-weight: 700;
}

.ec-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary {
  background: var(--ec-red);
  color: var(--ec-white) !important;
  border: 2px solid var(--ec-red);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(209, 32, 39, 0.25);
}

.btn-primary:hover {
  background: var(--ec-red-hover);
  border-color: var(--ec-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 32, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ec-navy) !important;
  border: 2px solid var(--ec-navy);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: var(--ec-navy);
  color: var(--ec-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 66, 138, 0.2);
}

.ec-hero-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ec-hero-social .avatars {
  display: flex;
}

.ec-hero-social .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ec-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: -8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ec-hero-social .avatars span:first-child {
  margin-left: 0;
}

.ec-hero-social .avatars span:nth-child(1) { background: #E8D5D6; color: var(--ec-red); }
.ec-hero-social .avatars span:nth-child(2) { background: #D5DDE8; color: var(--ec-navy); }
.ec-hero-social .avatars span:nth-child(3) { background: #D6E8D5; color: #2D6B2F; }
.ec-hero-social .avatars span:nth-child(4) { background: var(--ec-bg); color: var(--ec-text); }

.ec-hero-social p {
  font-size: 0.8125rem;
  color: var(--ec-text-muted);
  font-weight: 600;
}

.ec-hero-illust {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ec-bg);
  box-shadow: 0 20px 50px rgba(29, 66, 138, 0.2);
}

.ec-hero-illust img,
.ec-hero-illust video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-hero-illust::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  pointer-events: none;
  z-index: 2;
}

.ec-hero-illust .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(209, 32, 39, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s;
  box-shadow: 0 8px 32px rgba(209, 32, 39, 0.5);
  z-index: 5;
}

.ec-hero-illust .play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--ec-red);
}

.ec-hero-illust .play-overlay svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.ec-hero-illust .ai-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ec-navy);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ec-hero-illust .ai-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec-red);
  animation: ec-pulse 2s ease-in-out infinite;
}

.ec-hero-illust .caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 5;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 700;
}

.ec-hero-illust .caption span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 0.125rem;
}

/* --- Trust Bar --- */
.ec-trust {
  padding: 2rem;
  background: var(--ec-bg);
  border-top: 1px solid var(--ec-border);
  border-bottom: 1px solid var(--ec-border);
}

.ec-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.ec-trust-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ec-trust-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ec-trust-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: #CBD5E1;
}

.ec-trust-logo .trust-img {
  max-height: 38px;
  object-fit: contain;
  display: block;
}

.ec-trust-logo .trust-img:not(.icef-logo):not(.lc-logo) {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
}

.ec-trust-logo .trust-img.icef-logo {
  width: 80px;
  height: 32px;
  aspect-ratio: 80 / 32;
}

.ec-trust-logo .trust-img.lc-logo {
  width: 85px;
  height: 36px;
  aspect-ratio: 85 / 36;
}

.ec-trust-logo .trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.ec-trust-logo .trust-text strong {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ec-navy);
}

.ec-trust-logo .trust-text span {
  font-size: 0.72rem;
  color: var(--ec-text-muted);
  font-weight: 600;
}

/* --- Common Section Elements --- */
.ec-section {
  padding: 4.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ec-section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ec-navy);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.ec-section-sub {
  font-size: 0.9375rem;
  color: var(--ec-text-muted);
  text-align: center;
  margin-bottom: 2.75rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Problem / Solution (3 Cards) --- */
.ec-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.ec-card-ps {
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-card-ps:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.ec-card-ps .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-card-ps .icon svg {
  width: 24px;
  height: 24px;
}

.ec-card-ps h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ec-text);
  line-height: 1.4;
}

.ec-card-ps .arrow {
  font-size: 0.8125rem;
  color: var(--ec-navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ec-card-ps .arrow svg {
  width: 14px;
  height: 14px;
}

.ec-card-ps .solution {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ec-red);
}

/* --- Catalog Section (4 Cards) --- */
.ec-catalog {
  padding: 4.5rem 2rem;
  background: var(--ec-white);
}

.ec-catalog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ec-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ec-card-catalog {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ec-card-catalog:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ec-card-catalog.featured {
  border: 2px solid var(--ec-red);
  background: linear-gradient(to bottom, #FFF5F5 0%, var(--ec-white) 35%);
}

.ec-card-catalog .badge-featured {
  position: absolute;
  top: 0;
  left: 1.25rem;
  background: var(--ec-red);
  color: var(--ec-white);
  padding: 0.2rem 0.65rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
}

.ec-card-catalog .cat-icon {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.25rem;
  background: var(--ec-bg);
}

.ec-card-catalog .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-card-catalog h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ec-navy);
}

.ec-card-catalog .price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ec-red);
  background: #FEF2F2;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  width: fit-content;
}

.ec-card-catalog ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.ec-card-catalog ul li {
  font-size: 0.8125rem;
  color: var(--ec-text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.ec-card-catalog ul li::before {
  content: '✓';
  color: var(--ec-navy);
  font-weight: 800;
  font-size: 0.8125rem;
  margin-top: 0.05rem;
}

.ec-card-catalog .card-cta {
  display: block;
  text-align: center;
  padding: 0.6875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
}

.ec-card-catalog .card-cta.primary {
  background: var(--ec-red);
  color: var(--ec-white) !important;
}

.ec-card-catalog .card-cta.primary:hover {
  background: var(--ec-red-hover);
  box-shadow: 0 4px 12px rgba(209, 32, 39, 0.3);
}

.ec-card-catalog .card-cta.secondary {
  background: transparent;
  color: var(--ec-navy) !important;
  border: 1.5px solid var(--ec-navy);
}

.ec-card-catalog .card-cta.secondary:hover {
  background: var(--ec-navy);
  color: var(--ec-white) !important;
}

/* --- Comparison Table --- */
.ec-compare {
  padding: 4.5rem 2rem;
  background: var(--ec-bg);
}

.ec-compare-inner {
  max-width: 920px;
  margin: 0 auto;
}

.ec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ec-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ec-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.ec-table thead th {
  background: var(--ec-navy);
  color: var(--ec-white);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.ec-table thead th:first-child {
  text-align: left;
}

.ec-table thead th.highlight-col {
  background: var(--ec-red);
}

.ec-table tbody td {
  padding: 0.9375rem 1.25rem;
  font-size: 0.8125rem;
  text-align: center;
  border-bottom: 1px solid var(--ec-bg);
}

.ec-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ec-text);
}

.ec-table tbody tr:last-child td {
  border-bottom: none;
}

.ec-table .check {
  color: #16A34A;
  font-weight: 800;
  font-size: 1.0625rem;
}

.ec-table .cross {
  color: #DC2626;
  font-weight: 800;
  font-size: 1.0625rem;
}

.ec-table .partial {
  color: #F59E0B;
  font-size: 0.75rem;
  font-weight: 700;
}

.ec-table .highlight-cell {
  background: #FEF2F2;
  font-weight: 700;
  color: var(--ec-red);
}

/* --- Test de Nivel Band --- */
.ec-test-band {
  padding: 3.5rem 2rem;
  background: var(--ec-white);
}

.ec-test-band-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: 16px;
  padding: 2.25rem 2.75rem;
}

.ec-test-band-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
}

.ec-test-band-text .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ec-test-band-text h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ec-navy);
  line-height: 1.3;
}

.ec-test-band-text p {
  font-size: 0.875rem;
  color: var(--ec-text-body);
  line-height: 1.6;
}

.ec-test-band-text .meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.375rem;
}

.ec-test-band-text .meta span {
  font-size: 0.75rem;
  color: var(--ec-text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.ec-test-band-text .meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--ec-navy);
}

.ec-test-cta {
  background: transparent;
  color: var(--ec-navy) !important;
  border: 2px solid var(--ec-navy);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.ec-test-cta:hover {
  background: var(--ec-navy);
  color: var(--ec-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 66, 138, 0.2);
}

/* --- Offer Banner --- */
.ec-offer {
  padding: 3.75rem 2rem;
  background: var(--ec-navy);
  position: relative;
  overflow: hidden;
}

.ec-offer-deco {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.ec-offer-deco-2 {
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(209, 32, 39, 0.1);
  pointer-events: none;
}

.ec-offer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.ec-offer-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ec-offer-text .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ec-offer-text h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--ec-white);
  line-height: 1.3;
}

.ec-offer-text h2 .red {
  color: #FF6B6B;
}

.ec-offer-text p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.ec-offer-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ec-offer-cta {
  background: var(--ec-red);
  color: var(--ec-white) !important;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(209, 32, 39, 0.4);
}

.ec-offer-cta:hover {
  background: var(--ec-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(209, 32, 39, 0.5);
}

.ec-offer-countdown {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* --- Lead Form Section --- */
.ec-form-section {
  padding: 4.5rem 2rem;
  background: var(--ec-white);
}

.ec-form-inner {
  max-width: 600px;
  margin: 0 auto;
}

.ec-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.ec-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ec-form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ec-text);
}

.ec-form-group input,
.ec-form-group select,
.ec-form-group textarea {
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--ec-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ec-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--ec-white);
  width: 100%;
}

.ec-form-group input:focus,
.ec-form-group select:focus,
.ec-form-group textarea:focus {
  outline: none;
  border-color: var(--ec-navy);
  box-shadow: 0 0 0 3px rgba(29, 66, 138, 0.12);
}

.ec-form-group input::placeholder {
  color: #9CA3AF;
}

.ec-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ec-form .submit-btn {
  background: var(--ec-red);
  color: var(--ec-white);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(209, 32, 39, 0.3);
}

.ec-form .submit-btn:hover {
  background: var(--ec-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 32, 39, 0.4);
}

.ec-form .note {
  font-size: 0.75rem;
  color: var(--ec-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Nosotros / About Section --- */
.ec-about {
  padding: 4.5rem 2rem;
  background: var(--ec-bg);
}

.ec-about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ec-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ec-about-text .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.ec-about-text h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ec-navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.ec-about-text p {
  font-size: 0.9375rem;
  color: var(--ec-text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ec-about-text .cred {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.ec-about-text .cred span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-navy);
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  padding: 0.375rem 0.85rem;
  border-radius: 6px;
}

.ec-about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ec-about-illust {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4/3;
  background: var(--ec-bg);
}

.ec-about-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ec-about-stat {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ec-about-stat .num {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ec-red);
  line-height: 1;
}

.ec-about-stat .label {
  font-size: 0.75rem;
  color: var(--ec-text-muted);
  font-weight: 600;
  margin-top: 0.375rem;
}

.ec-about-stat.wide {
  grid-column: span 2;
}

.ec-about-stat.wide .num {
  color: var(--ec-navy);
}

/* --- Footer --- */
.ec-footer {
  padding: 2.5rem 2rem;
  background: var(--ec-bg);
  border-top: 1px solid var(--ec-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ec-text-muted);
}

.ec-footer-logo {
  display: inline-block;
  margin-bottom: 0.875rem;
}

.ec-footer-logo-img {
  height: 28px;
  width: auto;
  aspect-ratio: 802 / 120;
  max-width: 187px;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.ec-footer-logo-img:hover {
  opacity: 1;
}

.ec-footer-social {
  margin: 0.85rem 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ec-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ec-navy);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  background: rgba(29, 66, 138, 0.04);
  border-radius: 9999px;
  border: 1px solid rgba(29, 66, 138, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ec-footer-social-link svg {
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.ec-footer-social-link.instagram svg {
  color: #E1306C;
}

.ec-footer-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.3);
}

.ec-footer-social-link.instagram:hover svg {
  color: #ffffff !important;
  transform: scale(1.15) rotate(-4deg);
}

.ec-footer-social-link.tiktok svg {
  color: #000000;
}

.ec-footer-social-link.tiktok:hover {
  background: #000000;
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.ec-footer-social-link.tiktok:hover svg {
  color: #ffffff !important;
  transform: scale(1.15) rotate(4deg);
}

.ec-footer a {
  color: var(--ec-navy);
  font-weight: 600;
}

.ec-footer a:hover {
  color: var(--ec-red);
}

/* Hide intrusive floating social share bar that intercepts touch/click events */
.sharemypost-share-bar.sharemypost-floating-bar,
.sharemypost-floating-bar,
.smp-floating-container,
div[class*="sharemypost-floating"] {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -1 !important;
}

/* --- Floating WhatsApp Button --- */
.ec-wa-float {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ec-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ec-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  background: #20BA5A;
}

.ec-wa-float svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .ec-wa-float {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
  .ec-wa-float svg {
    width: 26px;
    height: 26px;
  }
}


/* --- Inner Page Styles (for page.php) --- */
.ec-page-wrapper {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 60vh;
}

.ec-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ec-navy);
  margin-bottom: 1.5rem;
}

.ec-page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ec-text-body);
}

.ec-page-content h2,
.ec-page-content h3 {
  color: var(--ec-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ec-page-content p {
  margin-bottom: 1.25rem;
}

.ec-page-content ul,
.ec-page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* --- Test de Nivel Page & ILAC Proxy Form --- */
.ec-test-page {
  padding-bottom: 4rem;
}

.ec-test-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.ec-test-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ec-test-feat-item {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-test-feat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.ec-test-feat-item .feat-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.ec-test-feat-item .feat-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ec-navy);
  font-weight: 700;
}

.ec-test-feat-item .feat-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--ec-text-muted);
}

.ec-test-form-container {
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.ec-test-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.ec-test-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ec-test-card-header h2 {
  font-size: 1.5rem;
  color: var(--ec-navy);
  margin-bottom: 0.5rem;
}

.ec-test-card-header p {
  color: var(--ec-text-muted);
  font-size: 0.9375rem;
}

.ec-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.ec-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ec-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ec-navy);
}

.ec-form-group label .req {
  color: var(--ec-red);
}

.ec-form-group label .opt {
  font-weight: 400;
  color: var(--ec-text-muted);
  font-size: 0.8125rem;
}

.ec-form-group input,
.ec-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--ec-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ec-text-dark);
  background-color: #FAFAFA;
  transition: all 0.2s ease;
  outline: none;
}

.ec-form-group input:focus,
.ec-form-group select:focus {
  background-color: var(--ec-white);
  border-color: var(--ec-navy);
  box-shadow: 0 0 0 3px rgba(29, 66, 138, 0.12);
}

.ec-input-hint {
  font-size: 0.75rem;
  color: var(--ec-text-muted);
}

.ec-form-status-msg {
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ec-form-status-msg.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.ec-form-status-msg.success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
}

.ec-form-footer-action {
  margin-top: 1.75rem;
}

.ec-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  justify-content: center;
  cursor: pointer;
}

.ec-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-spinner .spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.btn-spinner .path {
  stroke: #FFFFFF;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.ec-form-legal-notice {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ec-text-muted);
  line-height: 1.5;
}

.ec-form-legal-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #6B7280;
}

/* Success State */
.ec-test-success-state {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: #DCFCE7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.success-title {
  font-size: 1.625rem;
  color: var(--ec-navy);
  margin-bottom: 0.75rem;
}

.success-message {
  font-size: 0.95rem;
  color: var(--ec-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.success-instructions-card {
  background: #F8FAFC;
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.success-instructions-card h4 {
  color: var(--ec-navy);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.success-instructions-card ol {
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ec-text-dark);
  line-height: 1.7;
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-wa-action {
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-link-restart {
  background: none;
  border: none;
  color: var(--ec-text-muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.btn-link-restart:hover {
  color: var(--ec-navy);
}

/* FAQ Grid */
.ec-test-info-section {
  margin-top: 4rem;
  border-top: 1px solid var(--ec-border);
  padding-top: 3.5rem;
}

.ec-test-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ec-faq-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: 14px;
  padding: 1.5rem;
}

.ec-faq-card h4 {
  color: var(--ec-navy);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.ec-faq-card p {
  color: var(--ec-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .ec-test-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ec-test-card {
    padding: 1.75rem 1.25rem;
  }
  
  .ec-form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .ec-test-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ec-test-features-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Animations --- */
@keyframes ec-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .ec-header {
    padding: 0.75rem 1.25rem;
  }
  
  .ec-nav {
    display: none;
  }
  
  .ec-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ec-cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ec-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
  }
  
  .ec-hero-illust {
    max-width: 540px;
    margin: 0 auto;
  }
  
  .ec-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .ec-header {
    padding: 0.625rem 1rem;
  }
  
  .ec-hero {
    padding: 2.5rem 1.25rem;
  }
  
  .ec-hero-ctas {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .ec-cards-3 {
    grid-template-columns: 1fr;
  }
  
  .ec-cards-4 {
    grid-template-columns: 1fr;
  }
  
  .ec-offer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .ec-offer-cta-box {
    width: 100%;
  }
  
  .ec-offer-cta {
    width: 100%;
  }
  
  .ec-form-row {
    grid-template-columns: 1fr;
  }
  
  .ec-table {
    font-size: 0.75rem;
  }
  
  .ec-table thead th,
  .ec-table tbody td {
    padding: 0.625rem 0.75rem;
  }

  .ec-test-band-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
  
  .ec-test-band-text .meta {
    justify-content: center;
  }
  
  .ec-test-cta {
    width: 100%;
  }
  
  .ec-about-stats {
    grid-template-columns: 1fr;
  }
  
  .ec-about-stat.wide {
    grid-column: span 1;
  }
  
  .ec-wa-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .ec-header {
    padding: 0.5rem 0.75rem;
    min-height: 43px;
  }
  
  .ec-header-container {
    gap: 0.5rem;
  }
  
  .ec-logo-img {
    height: 26px;
    width: auto;
    aspect-ratio: 802 / 120;
    max-width: 174px;
  }
  
  .ec-header-cta {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
  }
  
  .ec-mobile-toggle {
    padding: 0.25rem;
  }
  
  .ec-mobile-toggle svg {
    width: 24px;
    height: 24px;
  }
}

/* --- Cursos Catalog Page (2-Column Grid) --- */
.ec-cursos-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.ec-curso-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.ec-curso-card.featured {
  background: #FFFDFD;
  border: 2px solid #D12027;
  box-shadow: 0 4px 20px rgba(209, 32, 39, 0.08);
}

.ec-curso-card h3 {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  color: var(--ec-navy);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ec-curso-card p {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ec-curso-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ec-curso-tag.tag-blue {
  color: #1D428A;
  background: #EBF2FE;
}

.ec-curso-tag.tag-red {
  color: #FFFFFF;
  background: #D12027;
}

.ec-curso-tag.tag-amber {
  color: #D97706;
  background: #FEF3C7;
}

.ec-curso-fee-box {
  background: #F8FAFC;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  border: 1px solid #EDF2F7;
}

.ec-curso-fee-box.featured-box {
  background: #FFFFFF;
  border: 1px solid #FED7D7;
}

.ec-curso-fee-box .fee-label {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.ec-curso-fee-box .fee-main {
  font-weight: 800;
  color: var(--ec-navy);
  font-size: 1.2rem;
}

.ec-curso-fee-box .fee-detail {
  font-size: 0.775rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

.ec-curso-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.ec-curso-points li {
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.ec-card-btn {
  text-align: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  display: flex;
}

@media (max-width: 768px) {
  .ec-cursos-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Global Grid Fix for WordPress Content --- */
.entry-content p:empty,
.entry-content div[style*="display: grid"] > p,
.ec-page-content p:empty,
.ec-page-content div[style*="display: grid"] > p {
  display: none !important;
}

/* --- Precios Page Dedicated Styles --- */
.ec-precios-section-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ec-precios-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 1rem;
}

.ec-precios-sec-header h2 {
  color: var(--ec-navy);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.5rem 0 0 0;
}

.ec-promo-pill {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #D12027;
  font-weight: 700;
}

.ec-precios-subblock {
  margin-bottom: 2rem;
}

.ec-precios-subblock h3 {
  color: var(--ec-navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-mini {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  color: #FFFFFF;
}

.badge-mini.navy {
  background: var(--ec-navy);
}

.badge-mini.red {
  background: var(--ec-red);
}

.subblock-desc {
  color: #6B7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.ec-fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.ec-fee-table thead tr {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}

.ec-fee-table th {
  padding: 0.875rem 1rem;
  color: var(--ec-navy);
  font-weight: 700;
}

.ec-fee-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #EDF2F7;
}

.ec-fee-table .price-val {
  font-weight: 700;
}

.ec-fee-table .price-val.red {
  color: var(--ec-red);
}

.ec-fee-table .price-val.green {
  color: #16A34A;
}

.ec-fee-table .highlight-row {
  background: #FFFDF5;
}

.ec-fee-table .highlight-row-alt {
  background: #F0FDF4;
}

.ec-table-notes {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #4B5563;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  border: 1px solid #E2E8F0;
}

/* Section 4: Alojamiento Grid (Clean 2 columns) */
.ec-alojamiento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ec-alojamiento-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ec-mini-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EDF2F7;
}

.ec-mini-table thead tr {
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.ec-mini-table th {
  padding: 0.6rem 0.75rem;
  color: var(--ec-navy);
  font-weight: 700;
  font-size: 0.8125rem;
}

.ec-mini-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #EDF2F7;
}

.ec-mini-table tr.sub-fee-row {
  background: #FFF5F5;
}

@media (max-width: 880px) {
  .ec-alojamiento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Google reCAPTCHA Widget --- */
.ec-recaptcha-wrapper {
  margin: 1.25rem 0 0.5rem 0;
}

.ec-recaptcha-container {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .ec-recaptcha-container {
    transform: scale(0.88);
    transform-origin: 0 0;
  }
}

/* --- EduConecta Modern Success Modal Popup --- */
.ec-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ec-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.ec-modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ec-modal-overlay.is-active .ec-modal-box {
  transform: scale(1) translateY(0);
}

.ec-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ec-modal-close:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.ec-modal-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ec-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ec-navy);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.ec-modal-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ec-modal-info-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ec-modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.4;
}

.ec-modal-info-item strong {
  display: block;
  color: #0F172A;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ec-modal-info-icon {
  font-size: 1.125rem;
  line-height: 1;
  margin-top: 2px;
}

.ec-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ec-modal-btn-close {
  background: var(--ec-navy);
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex: 1;
  min-width: 140px;
}

.ec-modal-btn-close:hover {
  background: #15326c;
  transform: translateY(-1px);
}

.ec-modal-btn-wa {
  background: #25D366;
  color: #FFFFFF !important;
  text-decoration: none;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s, transform 0.15s;
  flex: 1;
  min-width: 180px;
}

.ec-modal-btn-wa:hover {
  background: #1ebc59;
  transform: translateY(-1px);
}

.ec-form-status-msg {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ec-form-status-msg.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.ec-form-status-msg.success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
}

/* ==========================================================================
   Hero Explainer Video Modal / Lightbox
   ========================================================================== */
.ec-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.ec-video-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.ec-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.ec-video-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  background: #0b1528;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ec-video-modal.is-active .ec-video-modal-dialog {
  transform: scale(1) translateY(0);
}

.ec-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ec-video-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ec-video-modal-title h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.ec-video-modal-title .ec-modal-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(209, 32, 39, 0.2);
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(209, 32, 39, 0.35);
}

.ec-video-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.ec-video-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ec-video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-video-modal-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ec-video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ec-video-modal-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
  max-width: 440px;
}

.ec-video-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ec-video-modal-actions .btn-secondary-sm {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ec-video-modal-actions .btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.ec-video-modal-actions .btn-primary-sm {
  background: var(--ec-red, #D12027);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ec-video-modal-actions .btn-primary-sm:hover {
  background: #b51a20;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ec-video-modal {
    padding: 0.75rem;
  }
  .ec-video-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .ec-video-modal-actions {
    flex-direction: column;
  }
  .ec-video-modal-actions a {
    text-align: center;
    width: 100%;
  }
}



