/* Nuvorelix v35 · CALY collaboration redesign
   Scoped to .cm-caly-page so it cannot alter the rest of the storefront. */

body.cm-caly-page{
  --cv35-ink:#17140f;
  --cv35-muted:#756e62;
  --cv35-line:rgba(184,137,34,.24);
  --cv35-gold:#c38b10;
  --cv35-gold-2:#e1b335;
  --cv35-paper:#fffdfa;
  --cv35-paper-soft:#f8f2e7;
  --cv35-blue:#1589bc;
}

body.cm-caly-page .caly-collab-v35{
  width:min(100% - 40px,1320px);
  margin:72px auto 84px;
  color:var(--cv35-ink);
}

.caly-collab-v35-intro{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);
  gap:48px;
  align-items:center;
  padding:26px 0 34px;
}
.caly-collab-v35-copy{max-width:710px}
.caly-collab-v35-kicker,
.caly-service-v35-label,
.caly-collab-v35-cta-copy>span{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--cv35-gold);
  font:800 .76rem/1 "IBM Plex Mono",monospace;
  letter-spacing:.17em;
}
.caly-collab-v35-kicker::before{content:"";width:28px;height:1px;background:currentColor}
.caly-collab-v35-copy h2{
  margin:17px 0 18px;
  font-size:clamp(3.25rem,5.4vw,5.55rem);
  line-height:.91;
  letter-spacing:-.064em;
  color:var(--cv35-ink);
}
.caly-collab-v35-copy h2 em{font-style:normal;color:var(--cv35-gold)}
.caly-collab-v35-copy p{
  margin:0;
  max-width:690px;
  color:var(--cv35-muted);
  font-size:1.08rem;
  line-height:1.68;
}
.caly-collab-v35-copy p strong{color:var(--cv35-ink);font-weight:750}

.caly-collab-v35-preview{
  position:relative;
  display:grid;
  grid-template-columns:1fr 52px 1fr;
  align-items:center;
  min-height:340px;
  padding:32px;
  border:1px solid var(--cv35-line);
  border-radius:34px;
  background:
    radial-gradient(circle at 85% 8%,rgba(220,171,49,.17),transparent 37%),
    linear-gradient(145deg,#fffdfa,#f8f0e1);
  overflow:hidden;
  box-shadow:0 26px 70px rgba(86,60,17,.08);
}
.caly-collab-v35-preview::before{
  content:"";position:absolute;inset:auto -90px -125px auto;width:340px;height:340px;border-radius:50%;
  border:1px solid rgba(193,143,30,.14);box-shadow:0 0 0 36px rgba(193,143,30,.04),0 0 0 76px rgba(193,143,30,.025);
}
.caly-preview-card{
  position:relative;z-index:1;min-height:250px;padding:24px;border-radius:24px;border:1px solid rgba(184,137,34,.2);
  background:rgba(255,255,255,.74);box-shadow:0 16px 40px rgba(49,37,14,.06);backdrop-filter:blur(10px);
  display:flex;flex-direction:column;
}
.caly-preview-brand{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.caly-preview-brand>span{width:42px;height:42px;display:grid;place-items:center}
.caly-preview-brand img{width:100%;height:100%;object-fit:contain}
.caly-preview-brand strong{font-size:1.08rem;letter-spacing:.08em}
.caly-preview-caly .caly-preview-brand strong{color:var(--cv35-blue)}
.caly-preview-nuvo .caly-preview-brand strong{color:#8e650d}
.caly-preview-card>small{margin-top:auto;color:#887d6d;font:750 .64rem/1.25 "IBM Plex Mono",monospace;letter-spacing:.12em}
.caly-preview-arrow{
  position:relative;z-index:2;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin:auto;
  background:#fffaf0;border:1px solid rgba(184,137,34,.28);color:var(--cv35-gold);font-size:1.6rem;font-weight:800;
  box-shadow:0 10px 28px rgba(95,66,11,.12);
}
.caly-preview-wireframe{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:44px;gap:8px}
.caly-preview-wireframe i,.caly-preview-wireframe b{display:block;border:1px solid rgba(37,138,187,.16);background:linear-gradient(135deg,rgba(34,159,212,.08),rgba(34,159,212,.02));border-radius:12px}
.caly-preview-wireframe .large{grid-row:span 2}
.caly-preview-wireframe b{display:grid;place-items:center;font-family:Georgia,serif;font-size:1.55rem;color:#151515;background:#fff}
.caly-preview-browser{display:grid;grid-template-columns:repeat(3,8px) 1fr;gap:7px;align-items:start}
.caly-preview-browser>i{width:7px;height:7px;border-radius:50%;background:#ddbd68}
.caly-preview-browser>div{grid-column:1/-1;height:76px;border-radius:12px;background:linear-gradient(135deg,#f2e5c8,#d7b661 62%,#8e6c24)}
.caly-preview-browser>b{height:34px;border-radius:9px;background:#f3eee5;border:1px solid #e8ddc9}.caly-preview-browser>b:last-child{grid-column:3/-1}

.caly-collab-v35-flow{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px;
}
.caly-collab-v35-flow article{
  min-height:260px;padding:26px 26px 24px;border:1px solid var(--cv35-line);border-radius:24px;
  background:linear-gradient(180deg,rgba(255,253,249,.98),rgba(248,241,226,.86));
  box-shadow:0 14px 34px rgba(80,58,19,.045);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
  display:flex;flex-direction:column;
}
.caly-collab-v35-flow article:hover{transform:translateY(-4px);border-color:rgba(184,137,34,.48);box-shadow:0 22px 46px rgba(80,58,19,.075)}
.caly-flow-v35-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.caly-flow-v35-top>span{color:var(--cv35-gold);font:800 .72rem/1 "IBM Plex Mono",monospace;letter-spacing:.08em}
.caly-flow-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#fff8e8;color:var(--cv35-gold);border:1px solid rgba(184,137,34,.14)}
.caly-flow-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.caly-collab-v35-flow h3{margin:0 0 10px;font-size:1.25rem;letter-spacing:-.025em;color:var(--cv35-ink)}
.caly-collab-v35-flow p{margin:0;color:var(--cv35-muted);font-size:.98rem;line-height:1.55}
.caly-collab-v35-flow small{margin-top:auto;padding-top:22px;color:#9a8f7d;font:800 .63rem/1 "IBM Plex Mono",monospace;letter-spacing:.13em}

.caly-collab-v35-cta{
  display:grid;grid-template-columns:minmax(430px,.9fr) minmax(0,1.1fr);gap:56px;align-items:center;
  margin-top:68px;padding:56px;border:1px solid var(--cv35-line);border-radius:32px;position:relative;overflow:hidden;
  background:linear-gradient(145deg,#fffdfa,#faf4e8);
  box-shadow:0 24px 66px rgba(81,57,15,.055);
}
.caly-collab-v35-cta::after{content:"";position:absolute;right:-140px;top:-190px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(222,179,67,.14),transparent 66%);pointer-events:none}
.caly-collab-v35-brands{display:grid;grid-template-columns:1fr 54px 1fr;align-items:center;gap:12px;position:relative;z-index:1}
.caly-service-v35{min-height:310px;padding:27px 25px;border-radius:24px;border:1px solid rgba(184,137,34,.19);background:rgba(255,255,255,.76);box-shadow:0 14px 34px rgba(58,41,10,.05)}
.caly-service-v35-label{font-size:.64rem;letter-spacing:.15em}
.caly-service-v35-caly .caly-service-v35-label{color:var(--cv35-blue)}
.caly-service-v35-brand{display:flex;align-items:center;gap:13px;margin:22px 0 26px}
.caly-service-v35-brand>span{width:48px;height:48px;display:grid;place-items:center}
.caly-service-v35-brand img{width:100%;height:100%;object-fit:contain}
.caly-service-v35-brand strong{font-size:1.45rem;letter-spacing:.055em}
.caly-service-v35-caly .caly-service-v35-brand strong{color:var(--cv35-blue)}
.caly-service-v35-nuvo .caly-service-v35-brand strong{font-size:1.15rem;color:var(--cv35-ink)}
.caly-service-v35 ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.caly-service-v35 li{position:relative;padding-left:27px;color:#625b50;font-size:.93rem;line-height:1.3}
.caly-service-v35 li::before{content:"✓";position:absolute;left:0;top:-1px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#f6e2a6;color:#9b6e09;font-size:.7rem;font-weight:900}
.caly-service-v35-plus{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fffaf0;border:1px solid rgba(184,137,34,.22);color:var(--cv35-gold);font-size:1.55rem;font-weight:900;box-shadow:0 10px 30px rgba(86,60,15,.07)}
.caly-collab-v35-cta-copy{position:relative;z-index:1}
.caly-collab-v35-cta-copy h2{margin:15px 0 16px;font-size:clamp(2.65rem,4vw,4.55rem);line-height:.93;letter-spacing:-.058em;color:var(--cv35-ink);max-width:720px}
.caly-collab-v35-cta-copy p{margin:0;max-width:720px;color:var(--cv35-muted);font-size:1.04rem;line-height:1.62}
.caly-collab-v35-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.caly-v35-btn{min-height:54px;display:inline-flex;align-items:center;justify-content:space-between;gap:24px;padding:0 22px;border-radius:14px;text-decoration:none!important;font-weight:800;font-size:.93rem;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.caly-v35-btn:hover{transform:translateY(-2px)}
.caly-v35-btn-primary{min-width:245px;background:linear-gradient(135deg,#c58c13,#e0b439);color:#17120a!important;border:1px solid #c28c16;box-shadow:0 15px 30px rgba(184,137,34,.16)}
.caly-v35-btn-secondary{min-width:210px;background:#fff;color:#1a1712!important;border:1px solid rgba(184,137,34,.25)}
.caly-collab-v35-note{display:block;margin-top:20px;max-width:680px;color:#948a7b;font-size:.78rem;line-height:1.5}

/* Make every CALY outbound CTA feel like part of the same page. */
body.cm-caly-page a[href="http://localhost/Caly_Studio/"]{cursor:pointer}

html[data-theme="dark"] body.cm-caly-page{
  --cv35-ink:#f5efe4;--cv35-muted:#b9b0a3;--cv35-line:rgba(221,177,62,.2);--cv35-paper:#13120f;--cv35-paper-soft:#191711;
}
html[data-theme="dark"] body.cm-caly-page .caly-collab-v35-preview,
html[data-theme="dark"] body.cm-caly-page .caly-collab-v35-flow article,
html[data-theme="dark"] body.cm-caly-page .caly-collab-v35-cta{
  background:linear-gradient(145deg,#15130f,#0d0c0a);border-color:rgba(218,174,55,.2);box-shadow:none;
}
html[data-theme="dark"] body.cm-caly-page .caly-preview-card,
html[data-theme="dark"] body.cm-caly-page .caly-service-v35{background:rgba(255,255,255,.035);border-color:rgba(218,174,55,.16);box-shadow:none}
html[data-theme="dark"] body.cm-caly-page .caly-preview-arrow,
html[data-theme="dark"] body.cm-caly-page .caly-service-v35-plus,
html[data-theme="dark"] body.cm-caly-page .caly-v35-btn-secondary{background:#171510;color:#eee7dc!important;border-color:rgba(218,174,55,.2)}
html[data-theme="dark"] body.cm-caly-page .caly-flow-icon{background:rgba(222,178,58,.08);border-color:rgba(222,178,58,.16)}
html[data-theme="dark"] body.cm-caly-page .caly-preview-wireframe b{background:#1a1712;color:#f4eee3}
html[data-theme="dark"] body.cm-caly-page .caly-preview-browser>b{background:#1b1914;border-color:#29251d}
html[data-theme="dark"] body.cm-caly-page .caly-service-v35 li{color:#bfb6a8}
html[data-theme="dark"] body.cm-caly-page .caly-collab-v35-copy p strong{color:#f4eee3}

@media (max-width:1120px){
  .caly-collab-v35-intro{grid-template-columns:1fr;gap:28px}
  .caly-collab-v35-preview{max-width:820px}
  .caly-collab-v35-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .caly-collab-v35-cta{grid-template-columns:1fr;gap:42px}
  .caly-collab-v35-brands{max-width:760px}
}
@media (max-width:720px){
  body.cm-caly-page .caly-collab-v35{width:min(100% - 24px,1320px);margin:44px auto 62px}
  .caly-collab-v35-intro{padding-top:8px}
  .caly-collab-v35-copy h2{font-size:clamp(2.7rem,13vw,4.2rem);line-height:.94}
  .caly-collab-v35-copy p{font-size:1rem}
  .caly-collab-v35-preview{grid-template-columns:1fr;gap:12px;padding:18px;border-radius:24px}
  .caly-preview-card{min-height:210px}
  .caly-preview-arrow{transform:rotate(90deg)}
  .caly-collab-v35-flow{grid-template-columns:1fr;gap:12px;margin-top:12px}
  .caly-collab-v35-flow article{min-height:220px}
  .caly-collab-v35-cta{margin-top:42px;padding:24px;border-radius:24px;gap:32px}
  .caly-collab-v35-brands{grid-template-columns:1fr;gap:12px}
  .caly-service-v35{min-height:auto}
  .caly-service-v35-plus{margin:auto}
  .caly-collab-v35-cta-copy h2{font-size:clamp(2.35rem,11vw,3.65rem)}
  .caly-collab-v35-actions{display:grid;grid-template-columns:1fr}
  .caly-v35-btn{min-width:0;width:100%}
}


/* ==========================================================
   NUVORELIX V10.48 · BALANCE VISUAL CALY / NUVORELIX
   Corrige únicamente las tarjetas de servicios comparativas.
   ========================================================== */

body.cm-caly-page .caly-service-v35-brand{
  min-height:68px;
  gap:15px;
  margin:18px 0 22px;
}

/* Ambas marcas mantienen una base consistente */
body.cm-caly-page .caly-service-v35-brand>span{
  flex:0 0 auto;
}

/* CALY necesita más tamaño óptico por el grosor fino de su isotipo */
body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
  width:66px;
  height:66px;
  padding:7px;
  box-sizing:border-box;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(29,169,224,.13),rgba(29,169,224,.045));
  border:1px solid rgba(47,188,239,.20);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}

body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand img{
  width:100%;
  height:100%;
  object-fit:contain;
  transform:scale(1.08);
  filter:
    brightness(0)
    saturate(100%)
    invert(65%)
    sepia(71%)
    saturate(1570%)
    hue-rotate(162deg)
    brightness(103%)
    contrast(101%)
    drop-shadow(0 0 8px rgba(38,187,239,.10));
  opacity:1;
}

body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand strong{
  font-size:1.42rem;
  line-height:1;
  letter-spacing:.075em;
  font-weight:850;
}

/* Nuvorelix se mantiene potente, pero sin ganar por exceso de tamaño */
body.cm-caly-page .caly-service-v35-nuvo .caly-service-v35-brand>span{
  width:58px;
  height:58px;
}

body.cm-caly-page .caly-service-v35-nuvo .caly-service-v35-brand strong{
  font-size:1.18rem;
  line-height:1;
  font-weight:850;
  letter-spacing:.04em;
}

/* Etiquetas superiores alineadas ópticamente */
body.cm-caly-page .caly-service-v35-label{
  display:block;
  min-height:14px;
  font-weight:800;
}

/* Dark mode */
html[data-theme="dark"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
  background:linear-gradient(145deg,rgba(31,174,230,.12),rgba(31,174,230,.035));
  border-color:rgba(64,200,250,.20);
}

/* Light mode */
html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
  background:linear-gradient(145deg,#f7fcff,#eef9fe);
  border-color:rgba(15,143,199,.16);
  box-shadow:0 8px 20px rgba(20,119,159,.07);
}

html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand img{
  filter:
    brightness(0)
    saturate(100%)
    invert(34%)
    sepia(63%)
    saturate(1813%)
    hue-rotate(166deg)
    brightness(91%)
    contrast(94%);
}

@media(max-width:720px){
  body.cm-caly-page .caly-service-v35-brand{
    min-height:58px;
  }

  body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
    width:58px;
    height:58px;
    border-radius:16px;
  }

  body.cm-caly-page .caly-service-v35-nuvo .caly-service-v35-brand>span{
    width:52px;
    height:52px;
  }

  body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand strong{
    font-size:1.28rem;
  }

  body.cm-caly-page .caly-service-v35-nuvo .caly-service-v35-brand strong{
    font-size:1.08rem;
  }
}


/* ==========================================================
   NUVORELIX V10.49 · CALY SERVICE CARD NEUTRALIZATION
   Elimina el look azul de la tarjeta comparativa CALY.
   ========================================================== */

/* Base neutral para CALY en el bloque comparativo */
body.cm-caly-page .caly-service-v35-caly .caly-service-v35-label{
  color:#d9b14a!important;
}

body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand strong{
  color:#f3ede2!important;
  letter-spacing:.055em!important;
}

body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
  background:linear-gradient(145deg,rgba(222,178,58,.09),rgba(255,255,255,.03))!important;
  border:1px solid rgba(218,174,55,.18)!important;
}

body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand img{
  filter:
    brightness(0)
    saturate(100%)
    invert(92%)
    sepia(19%)
    saturate(436%)
    hue-rotate(349deg)
    brightness(99%)
    contrast(94%)
    drop-shadow(0 0 8px rgba(218,174,55,.08))!important;
}

body.cm-caly-page .caly-service-v35-caly li{
  color:#d2c8ba!important;
}

/* Light mode: CALY más sobrio, sin cian */
html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-label{
  color:#b27d14!important;
}

html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand strong{
  color:#1a1712!important;
}

html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand>span{
  background:linear-gradient(145deg,#fffaf0,#fffdfa)!important;
  border-color:rgba(184,137,34,.16)!important;
  box-shadow:0 8px 18px rgba(32,24,11,.05)!important;
}

html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly .caly-service-v35-brand img{
  filter:
    brightness(0)
    saturate(100%)
    invert(29%)
    sepia(31%)
    saturate(884%)
    hue-rotate(5deg)
    brightness(94%)
    contrast(90%)!important;
}

html[data-theme="light"] body.cm-caly-page .caly-service-v35-caly li{
  color:#5d5448!important;
}


/* ==========================================================
   NUVORELIX V10.51 · CALY PREVIEW LOGO FIX
   Corrige el bloque "Del concepto visual al producto digital".
   ========================================================== */

/* CALY preview: usar solo el isotipo limpio y quitar el look azul viejo */
body.cm-caly-page .caly-preview-caly .caly-preview-brand{
  gap:14px!important;
  margin-bottom:22px!important;
}
body.cm-caly-page .caly-preview-caly .caly-preview-brand>span{
  width:54px!important;
  height:54px!important;
  padding:7px!important;
  box-sizing:border-box!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,rgba(216,173,63,.10),rgba(255,255,255,.03))!important;
  border:1px solid rgba(214,171,63,.18)!important;
}
body.cm-caly-page .caly-preview-caly .caly-preview-brand .caly-symbol-dark{
  display:none!important;
}
body.cm-caly-page .caly-preview-caly .caly-preview-brand .caly-symbol-light{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  filter:
    brightness(0)
    saturate(100%)
    invert(92%)
    sepia(17%)
    saturate(394%)
    hue-rotate(353deg)
    brightness(96%)
    contrast(92%)!important;
}
body.cm-caly-page .caly-preview-caly .caly-preview-brand strong{
  color:#f1e8d9!important;
  font-size:1.22rem!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
}

/* Neutralizar el wireframe azul del preview CALY */
body.cm-caly-page .caly-preview-caly .caly-preview-wireframe i,
body.cm-caly-page .caly-preview-caly .caly-preview-wireframe b{
  border-color:rgba(202,160,55,.16)!important;
  background:linear-gradient(135deg,rgba(214,174,69,.08),rgba(255,255,255,.02))!important;
}
body.cm-caly-page .caly-preview-caly .caly-preview-wireframe b{
  background:#f7f0e2!important;
  color:#201810!important;
}
body.cm-caly-page .caly-preview-caly>small{
  color:#9f8f77!important;
}

/* Light mode coherente, sin azul */
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-brand>span{
  background:linear-gradient(145deg,#fffaf0,#fffdfa)!important;
  border-color:rgba(184,137,34,.16)!important;
  box-shadow:0 8px 18px rgba(32,24,11,.05)!important;
}
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-brand .caly-symbol-light{
  filter:
    brightness(0)
    saturate(100%)
    invert(29%)
    sepia(31%)
    saturate(884%)
    hue-rotate(5deg)
    brightness(94%)
    contrast(90%)!important;
}
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-brand strong{
  color:#181510!important;
}
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-wireframe i,
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-wireframe b{
  border-color:rgba(184,137,34,.14)!important;
  background:linear-gradient(135deg,rgba(218,179,77,.09),rgba(255,255,255,.95))!important;
}
html[data-theme="light"] body.cm-caly-page .caly-preview-caly .caly-preview-wireframe b{
  background:#fff!important;
  color:#191510!important;
}

@media(max-width:720px){
  body.cm-caly-page .caly-preview-caly .caly-preview-brand>span{
    width:48px!important;
    height:48px!important;
  }
  body.cm-caly-page .caly-preview-caly .caly-preview-brand strong{
    font-size:1.1rem!important;
  }
}
