/* ══════════════════════════════════════
   ECOS MEANING — versión cards optimizada
   Reemplaza completamente assets/css/ecos-meaning.css
══════════════════════════════════════ */

.ecos-meaning{
  --em-blue:#5d77ff;
  --em-red:var(--red);
  --em-orange:#ff8a1e;
  --em-gold:var(--gold);
  --em-card-bg:rgba(255,255,255,.045);
  --em-card-border:rgba(255,255,255,.12);
  --em-text-soft:rgba(255,255,255,.68);
  --em-text-muted:rgba(255,255,255,.56);

  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:var(--white);
  padding:clamp(4.6rem,8vw,6.5rem) var(--gap) clamp(3.8rem,7vw,5.5rem);
  background:
    radial-gradient(circle at 50% 22%, rgba(14,48,145,.72) 0%, rgba(5,22,94,.98) 45%, #030a2f 100%);
}

/* Fondo sutil: menos ruido que los puntos/círculos anteriores */
.em-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.em-bg::before{
  content:"";
  position:absolute;
  width:min(980px,90vw);
  height:min(980px,90vw);
  left:50%;
  top:8%;
  transform:translateX(-50%);
  border:1px solid rgba(250,192,24,.10);
  border-radius:50%;
}
.em-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(circle at 50% 18%, black 0%, transparent 58%);
  opacity:.38;
}

/* Se dejan por compatibilidad si existen en el HTML anterior */
.em-dot{ display:none; }

/* ── Encabezado ── */
.em-head{
  position:relative;
  z-index:2;
  max-width:820px;
  margin:0 auto;
  text-align:center;
}

.em-badges{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.85rem;
  flex-wrap:wrap;
  margin-bottom:1.35rem;
}

.em-anniversary{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:.55rem 1.05rem;
  border-radius:999px;
  color:var(--navy);
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold2) 58%, #ff9d00 100%);
  box-shadow:0 16px 35px rgba(250,192,24,.28);
  overflow:hidden;
}
.em-anniversary::after{
  content:"";
  position:absolute;
  inset:0 auto 0 -60%;
  width:42%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation:em-shine 4.2s ease-in-out infinite;
}
@keyframes em-shine{
  0%,62%{ transform:translateX(0); }
  100%{ transform:translateX(390%); }
}

.em-ann-ico{
  position:relative;
  z-index:1;
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.em-ann-ico svg{
  width:100%;
  height:100%;
  display:block;
}

.em-ann-num{
  position:relative;
  z-index:1;
  font-family:var(--ft);
  font-size:1.08rem;
  line-height:1;
  font-weight:850;
  letter-spacing:-.02em;
}

.em-ann-txt{
  position:relative;
  z-index:1;
  font-family:var(--ft);
  font-size:.55rem;
  line-height:1.12;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:pre-line;
}

.em-badges-sep{
  width:1px;
  height:24px;
  background:rgba(255,255,255,.18);
}

.em-eye{
  font-family:var(--ft);
  font-size:.6rem;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gold);
}

.em-title{
  max-width:760px;
  margin:0 auto;
  font-family:var(--ft);
  font-size:clamp(2rem,4.6vw,3.45rem);
  line-height:1.05;
  font-weight:850;
  letter-spacing:-.035em;
  text-transform:uppercase;
  text-wrap:balance;
  color:#fff;
}
.em-title em{
  position:relative;
  display:inline-block;
  font-family:var(--fb);
  font-style:italic;
  font-weight:400;
  text-transform:none;
  letter-spacing:-.02em;
  color:var(--gold);
  white-space:nowrap;
}
.em-title em::after{
  content:"";
  position:absolute;
  left:.08em;
  right:.04em;
  bottom:.03em;
  height:3px;
  border-radius:999px;
  background:var(--gold);
  transform:rotate(-2deg);
  opacity:.95;
}

.em-sub{
  margin:1rem auto 0;
  font-size:clamp(.88rem,1.5vw,1rem);
  line-height:1.55;
  color:rgba(255,255,255,.72);
  font-style:italic;
}
.em-sub strong{
  color:var(--gold);
  font-style:normal;
  font-weight:700;
}

.em-desc-lead{
  max-width:600px;
  margin:1rem auto 0;
  font-size:.88rem;
  line-height:1.68;
  color:var(--em-text-soft);
}

/* ── Cards ── */
.em-grid{
  position:relative;
  z-index:2;
  width:min(var(--max),100%);
  margin:clamp(2.4rem,5vw,3.25rem) auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(.85rem,1.6vw,1.15rem);
  align-items:stretch;
}

.em-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  border:1px solid var(--em-card-border);
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(5,22,94,.45);
  box-shadow:0 16px 38px rgba(0,0,0,.18);
  transform:translateZ(0);
  transition:
    transform .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    background .32s ease;
}
.em-card:hover{
  transform:translateY(-8px);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 28px 58px rgba(0,0,0,.36);
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.032)),
    rgba(5,22,94,.58);
}

.em-card-photo{
  position:relative;
  height:230px;
  flex:0 0 230px;
  overflow:visible;
  background:#06134b;
}

.em-card-photo-inner{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:18px 18px 0 0;
}

.em-card-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:scale(1.02);
  transition:transform .55s ease, filter .55s ease;
}

.em-card:hover .em-card-photo img{
  transform:scale(1.08);
  filter:saturate(1.08) contrast(1.05);
}
.em-card-photo::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px 18px 0 0;
  background:
    linear-gradient(180deg, rgba(5,22,94,.05) 35%, rgba(5,22,94,.90) 100%),
    radial-gradient(circle at 50% 100%, rgba(5,22,94,.80), transparent 48%);
}

.em-card-circle{
  position:absolute;
  left:50%;
  bottom:-31px;
  z-index:100;
  width:66px;
  height:66px;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  border-radius:50%;
  border:4px solid var(--blue-mid);
  font-family:var(--ft);
  font-size:1.75rem;
  line-height:1;
  font-weight:850;
  transition:transform .32s ease;
}
.em-card:hover .em-card-circle{
  transform:translateX(-50%) scale(1.08);
}
.em-card-circle-e{ background:var(--blue-mid); color:#fff; }
.em-card-circle-c{ background:var(--em-red); color:#fff; }
.em-card-circle-o{ background:var(--em-red); color:#fff; }
.em-card-circle-s{ background:var(--em-gold); color:#fff; }

.em-card-body{
  position:relative;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:235px;
  padding:2.9rem 1.18rem 1.35rem;
  text-align:center;
  z-index:1;
}

.em-card-word{
  margin:0 0 .72rem;
  font-family:var(--ft);
  font-size:1.05rem;
  line-height:1.15;
  font-weight:850;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#fff;
}
.em-card-word-first-e{ color:var(--blue-mid); }
.em-card-word-first-c{ color:var(--em-red); }
.em-card-word-first-o{ color:var(--em-red); }
.em-card-word-first-s{ color:var(--em-gold); }

.em-card-desc{
  width:100%;
  max-width:230px;
  margin:0 auto 1.2rem;
  font-size:.78rem;
  line-height:1.58;
  color:var(--em-text-muted);
  transition:color .25s ease;
}
.em-card:hover .em-card-desc{
  color:rgba(255,255,255,.78);
}

.em-card-ico{
  width:34px;
  height:34px;
  margin-top:auto;
  opacity:.95;
  transition:transform .32s ease, opacity .32s ease;
}
.em-card:hover .em-card-ico{
  transform:translateY(-3px) scale(1.06);
  opacity:1;
}
.em-card-ico svg{
  width:100%;
  height:100%;
  display:block;
}
.em-card-ico-e{ color:var(--blue-mid); }
.em-card-ico-c{ color:var(--em-red); }
.em-card-ico-o{ color:var(--em-red); }
.em-card-ico-s{ color:var(--em-gold); }

.em-card-bar{
  display:block;
  height:4px;
  width:56%;
  margin:0 auto;
  border-radius:999px 999px 0 0;
  transition:width .32s ease, box-shadow .32s ease;
}
.em-card:hover .em-card-bar{
  width:72%;
}
.em-card-bar-e{ background:var(--blue-mid); box-shadow:0 0 18px rgba(28,56,145,.45); }
.em-card-bar-c{ background:var(--em-red); box-shadow:0 0 18px rgba(215,35,39,.38); }
.em-card-bar-o{ background:var(--em-red); box-shadow:0 0 18px rgba(215,35,39,.4); }
.em-card-bar-s{ background:var(--em-gold); box-shadow:0 0 18px rgba(250,192,24,.42); }

/* ── Highlights ── */
.em-highlights{
  position:relative;
  z-index:2;
  width:min(var(--max),100%);
  margin:2.05rem auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  flex-wrap:wrap;
  color:rgba(255,255,255,.65);
}
.em-hl-line{
  display:block;
  width:clamp(46px,9vw,130px);
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(250,192,24,.5), transparent);
}
.em-hl-item{
  display:inline-flex;
  align-items:center;
  gap:.48rem;
  font-size:.76rem;
  line-height:1.3;
  font-weight:650;
  white-space:nowrap;
}
.em-hl-item svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:var(--gold);
}
.em-hl-dot{
  color:rgba(255,255,255,.28);
  font-size:.9rem;
}

/* ── Footer ── */
.em-foot{
  position:relative;
  z-index:2;
  margin-top:1.15rem;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.em-foot-txt{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  max-width:min(520px,100%);
  padding:.78rem 1.25rem;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.78);
  font-size:.82rem;
  line-height:1.35;
  font-weight:650;
}
.em-foot-txt::before{
  content:"✈";
  color:var(--gold);
  font-size:1.1rem;
}

/* ── Responsive ── */
@media (max-width:1100px){
  .em-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:760px;
  }
  .em-card-body{
    min-height:210px;
  }
}

@media (max-width:720px){
  .ecos-meaning{
    padding:4.2rem var(--gap) 3.6rem;
  }

  .em-badges{
    gap:.7rem;
    margin-bottom:1.15rem;
  }

  .em-badges-sep{
    display:none;
  }

  .em-eye{
    width:100%;
    text-align:center;
    justify-content:center;
  }

  .em-title{
    font-size:clamp(1.8rem,9vw,2.55rem);
  }

  .em-desc-lead{
    font-size:.84rem;
  }

  .em-grid{
    grid-template-columns:1fr;
    max-width:390px;
    gap:1rem;
    margin-top:2.2rem;
  }

  .em-card-photo{
    aspect-ratio:16/8.7;
  }

  .em-card-body{
    min-height:190px;
    padding:2.75rem 1.25rem 1.35rem;
  }

  .em-highlights{
    flex-direction:column;
    gap:.62rem;
    margin-top:1.8rem;
  }

  .em-hl-line,
  .em-hl-dot{
    display:none;
  }

  .em-hl-item{
    white-space:normal;
    text-align:center;
  }

  .em-foot-txt{
    border-radius:18px;
  }
}

@media (max-width:420px){
  .em-anniversary{
    min-height:40px;
    padding:.48rem .82rem;
  }
  .em-ann-num{
    font-size:.98rem;
  }
  .em-ann-txt{
    font-size:.5rem;
  }
  .em-card-circle{
    width:62px;
    height:62px;
    font-size:1.62rem;
  }
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion:reduce){
  .em-anniversary::after,
  .em-card,
  .em-card-photo img,
  .em-card-circle,
  .em-card-ico,
  .em-card-bar{
    animation:none!important;
    transition:none!important;
  }
}
/* AJUSTE VISUAL ECOS — acercar a muestra original */

.ecos-meaning{
  background:
    linear-gradient(rgba(5,22,94,.92), rgba(5,22,94,.96)),
    url("../img/10.jpg") center center / cover no-repeat;
}

.ecos-meaning::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 20%, rgba(41,85,255,.18), transparent 34%),
    radial-gradient(circle at 50% 45%, rgba(250,192,24,.08), transparent 38%);
  z-index:0;
  pointer-events:none;
}

/* Degradado final sobre la foto (gana por estar más abajo en el archivo) */
.em-card-photo{
  border-radius:18px 18px 0 0;
}

.em-card-photo::after{
  inset:0;
  border-radius:18px 18px 0 0;
  background:
    linear-gradient(
      to bottom,
      rgba(5,22,94,.08) 0%,
      rgba(5,22,94,.18) 35%,
      rgba(5,22,94,.72) 75%,
      rgba(5,22,94,1) 100%
    );
}

/* Tarjetas */
.em-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  height:100%;              /* todas llenan igual */
}

.em-card:hover{
  transform:translateY(-7px);
  box-shadow:
    0 28px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.08);
}

/* Para que el círculo no se corte */
.em-card{
  overflow:visible;
}

.em-card-body{
  position:relative;
  z-index:5;
  background:rgba(8,28,105,.96);
  border-radius:0 0 18px 18px;
}

/* Íconos inferiores según muestra */
.em-card-ico{
  width:36px;
  height:36px;
  margin-top:auto;
}

.em-card-bar{
  width:56%;
  height:4px;
  margin:0 auto;
  border-radius:999px;
}

/* Highlights */
.em-highlights{
  margin-top:2rem;
}

.em-hl-item:nth-child(1) svg{
  color:var(--red);
}

.em-hl-item:nth-child(3) svg{
  color:var(--gold);
}

.em-hl-item:nth-child(5) svg{
  color:var(--blue-mid);
}

/* Pie final como muestra */
.em-foot{
  margin-top:1.3rem;
}

.em-foot-card{
  max-width:520px;
  margin:1.2rem auto 0;
  padding:.9rem 1.4rem;
  background:linear-gradient(135deg, rgba(17,52,140,.96), rgba(8,28,105,.98));
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}

.em-foot-card svg{
  width:28px;
  height:28px;
  color:var(--gold);
  flex-shrink:0;
}

.em-foot-card strong{
  color:var(--gold);
}
/* ══════════════════════════════════════
   ECOS MEANING — integración ¿POR QUÉ ECOS?
   Bloque editorial dentro del acróstico
══════════════════════════════════════ */

.em-why-box{
  position:relative;
  z-index:2;
  width:min(920px,100%);
  margin:clamp(1.7rem,3vw,2.25rem) auto 0;
  padding:clamp(1.15rem,2vw,1.55rem);
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1.15rem;
  align-items:flex-start;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(5,22,94,.36);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  backdrop-filter:blur(14px);
  box-shadow:0 22px 55px rgba(0,0,0,.20);
}

.em-why-box::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(circle at 8% 0%, rgba(215,35,39,.18), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(250,192,24,.10), transparent 34%);
  pointer-events:none;
}

.em-why-mark,
.em-why-copy{
  position:relative;
  z-index:1;
}

.em-why-mark{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--red);
  background:rgba(215,35,39,.09);
  border:1px solid rgba(215,35,39,.58);
  box-shadow:0 0 0 7px rgba(215,35,39,.06);
}

.em-why-mark svg{
  width:23px;
  height:23px;
  display:block;
}

.em-why-copy h3{
  margin:.85rem;
  font-family:var(--ft);
  font-size:clamp(1.25rem,2vw,1.7rem);
  line-height:1.12;
  font-weight:850;
  letter-spacing:-.012em;
  text-transform:uppercase;
  color:#fff;
}

.em-why-text{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.35rem;
}

.em-why-text p{
  margin:0;
  font-size:.88rem;
  line-height:1.75;
  color:rgba(255,255,255,.72);
}

.em-why-text p + p{
  padding-left:1.35rem;
  border-left:1px solid rgba(255,255,255,.15);
}

/* Colores corporativos de los círculos E-C-O-S */
.em-card-circle-e{
  background:var(--blue-mid);
  border-color:#07185f;
  color:#fff;
  box-shadow:
    0 0 0 4px rgba(93,119,255,.18),
    0 0 0 11px rgba(93,119,255,.08),
    0 14px 30px rgba(0,0,0,.42);
}
.em-card-circle-c,
.em-card-circle-o{
  background:var(--red);
  border-color:#07185f;
  color:#fff;
  box-shadow:
    0 0 0 4px rgba(215,35,39,.18),
    0 0 0 11px rgba(215,35,39,.08),
    0 14px 30px rgba(0,0,0,.42);
}
.em-card-circle-s{
  background:var(--gold);
  border-color:#07185f;
  color:var(--navy);
  box-shadow:
    0 0 0 4px rgba(250,192,24,.22),
    0 0 0 11px rgba(250,192,24,.09),
    0 14px 30px rgba(0,0,0,.42);
}

@media(max-width:860px){
  .em-why-box{
    grid-template-columns:1fr;
    text-align:center;
  }

  .em-why-mark{
    margin:0 auto;
  }

  .em-why-text{
    grid-template-columns:1fr;
    gap:.85rem;
  }

  .em-why-text p + p{
    padding-left:0;
    border-left:0;
    padding-top:.85rem;
    border-top:1px solid rgba(255,255,255,.13);
  }
}

/* ══════════════════════════════════════
   AJUSTE GLOBAL SOLO PARA PÁRRAFOS
   (sin tocar headings)
══════════════════════════════════════ */

:root{
  --p-size: clamp(1rem, .97rem + .18vw, 1.06rem);
  --p-size-sm: clamp(.96rem, .94rem + .12vw, 1rem);
  --p-size-lg: clamp(1.05rem, 1rem + .28vw, 1.14rem);

  --p-line: 1.82;
  --p-line-tight: 1.72;
}

/* Párrafo base general */
p{
  font-size: var(--p-size);
  line-height: var(--p-line);
}

/* Párrafos/lead más importantes */
.hero-panorama-desc,
.em-desc-lead,
.em-why-copy p,
.ctg2-lead,
.prog-header p,
.contact-copy,
.ct_form_sub,
.faq-sub{
  font-size: var(--p-size-lg);
  line-height: 1.85;
}

/* Párrafos descriptivos de cards / bloques secundarios */
.em-card-desc,
.ctg2-mini-d,
.exp-card-d,
.prog-photo-desc,
.terraza-copy p,
.eaquals-content p,
.faq-item p,
.contact-card p,
.why-card p{
  font-size: var(--p-size);
  line-height: var(--p-line);
}

/* Texto un poco más compacto, pero no pequeño */
.prog-photo-feat,
.ctg2-bullets li,
.exp-header-note,
.em-highlights,
.em-foot-content,
.trz_h1_d,
.trz_h2_d,
.trz_h3_d,
.trz_h4_d,
.trz_h5_d,
.trz_h6_d{
  font-size: var(--p-size-sm);
  line-height: var(--p-line-tight);
}

/* FAQ answers si usan otra clase */
.faq-a,
.faq-answer{
  font-size: var(--p-size);
  line-height: var(--p-line);
}
