
/* Bercary dental experience — additive, preserving original design */
.dental-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:26px}.dental-feature{padding:21px;border:1px solid var(--line);border-radius:17px;background:var(--card)}.dental-feature strong{display:block;margin:7px 0;color:var(--cream)}.dental-feature p{font-size:13px;margin:0}.dental-feature .emoji{font-size:23px}.phone{border:7px solid #102d27;box-shadow:0 26px 70px #0008}.phone-top{background:#075e54}.screen{background:#e8e3d8;min-height:390px;height:390px;background-image:radial-gradient(#b6b0a126 1px,transparent 1px);background-size:16px 16px}.bubble{position:relative}.bubble .stamp{display:block;font-size:10px;text-align:right;color:#77877d;margin-top:3px}.bubble.visitor{background:#dcf8c6}.demo-controls{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.demo-controls button{background:var(--coral);border:1px solid var(--coral);border-radius:10px;padding:11px 15px;font-weight:700;color:#132b24}.demo-controls button.secondary{background:transparent;color:var(--cream);border-color:var(--line)}.demo-controls button[aria-pressed=true]{outline:2px solid var(--mint);outline-offset:3px}.demo-scenarios{display:none;gap:9px;flex-wrap:wrap;margin-top:12px}.demo-scenarios.visible{display:flex}.demo-scenarios button{border:1px solid #ffffff75;background:#ffffff12;color:var(--cream);border-radius:20px;padding:8px 12px}.demo-status{font-size:12px;color:var(--mint);min-height:22px}.phone-foot input:disabled{opacity:.65}.demo-notice{font-size:12px;color:var(--dim)}@media(max-width:850px){.dental-feature-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.dental-feature-grid{grid-template-columns:1fr}.screen{height:360px;min-height:360px}}@media(prefers-reduced-motion:reduce){.screen{scroll-behavior:auto}}


/* Refined dental cards: compact, consistent, restrained terracotta */
#solucion .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;margin-top:22px}
#solucion .cards>.card{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:166px;height:100%;margin:0;padding:20px 21px;border:1px solid rgba(210,154,129,.42);border-radius:15px;background:#1b4038;box-shadow:0 3px 14px rgba(0,0,0,.055);transition:background .2s ease,border-color .2s ease,transform .2s ease}
#solucion .cards>.card::before{content:none!important}
#solucion .cards>.card .icon,#solucion .cards>.card .emoji{display:flex;align-items:center;justify-content:flex-start;width:auto;height:27px;margin:0 0 10px;padding:0;background:transparent;border:0;border-radius:0;font-size:22px;line-height:1;filter:none}
#solucion .cards>.card h3,#solucion .cards>.card strong{display:block;margin:0 0 7px;color:#f3eee4;font-family:'Fraunces',Georgia,serif;font-size:16px;font-weight:600;line-height:1.28}
#solucion .cards>.card p{margin:0;color:#c7d5cd;font-size:12.5px;line-height:1.55}
#solucion .cards>.card:hover{background:#204940;border-color:#d58a70;transform:translateY(-2px)}
#solucion .cards>.card:focus-within{border-color:#d58a70}
@media(max-width:850px){#solucion .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#solucion .cards{grid-template-columns:1fr;gap:11px}#solucion .cards>.card{min-height:0;padding:18px 19px}}
@media(prefers-reduced-motion:reduce){#solucion .cards>.card{transition:none}#solucion .cards>.card:hover{transform:none}}

/* Keep original multicolor emoji glyphs on all nine feature cards. */
#solucion .cards>.card .icon,#solucion .dental-feature .emoji{color:initial;-webkit-text-fill-color:initial;filter:none!important}

/* Unified nine-card treatment: terracotta headings and clearly defined borders. */
#solucion .cards,
#solucion .dental-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:stretch}
#solucion .cards>.card,
#solucion .dental-feature-grid>.dental-feature{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:168px;height:100%;margin:0;padding:20px 21px;border:2px solid #bd806b;border-radius:16px;background:#1b4038;box-shadow:0 4px 16px rgba(0,0,0,.07);transition:border-color .2s ease,background .2s ease,transform .2s ease}
#solucion .cards>.card h3,
#solucion .cards>.card strong,
#solucion .dental-feature-grid>.dental-feature strong{margin:0 0 8px;color:#e8a58b;font-family:'Fraunces',Georgia,serif;font-size:16px;font-weight:650;line-height:1.3}
#solucion .cards>.card p,
#solucion .dental-feature-grid>.dental-feature p{margin:0;color:#d1ded6;font-size:13px;line-height:1.55}
#solucion .cards>.card .icon,
#solucion .dental-feature-grid>.dental-feature .emoji{display:block;width:auto;height:27px;margin:0 0 10px;padding:0;border:0;background:transparent;font-size:23px;line-height:1;filter:none!important;color:initial;-webkit-text-fill-color:initial}
#solucion .cards>.card:hover,
#solucion .dental-feature-grid>.dental-feature:hover{background:#21483f;border-color:#efb399;transform:translateY(-2px)}
@media(max-width:850px){#solucion .cards,#solucion .dental-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#solucion .cards,#solucion .dental-feature-grid{grid-template-columns:1fr;gap:12px}#solucion .cards>.card,#solucion .dental-feature-grid>.dental-feature{min-height:0;padding:18px 19px}}
@media(prefers-reduced-motion:reduce){#solucion .cards>.card,#solucion .dental-feature-grid>.dental-feature{transition:none;transform:none}}

/* Warm luminous terracotta — stronger titles, cohesive cards, original emoji colors */
#solucion .cards>.card,
#solucion .dental-feature-grid>.dental-feature{
  border:3px solid #efa286;
  background:linear-gradient(145deg,#234c42 0%,#1c4038 100%);
  box-shadow:0 7px 23px rgba(8,21,17,.15),inset 0 1px 0 rgba(255,225,207,.12);
}
#solucion .cards>.card h3,
#solucion .cards>.card strong,
#solucion .dental-feature-grid>.dental-feature strong{
  color:#ffb89b;
  font-weight:800;
  text-shadow:0 0 11px rgba(255,157,117,.34),0 0 24px rgba(255,157,117,.12);
  letter-spacing:.12px;
}
#solucion .cards>.card:hover,
#solucion .dental-feature-grid>.dental-feature:hover{
  border-color:#ffc3a7;
  background:linear-gradient(145deg,#295549,#21473d);
  box-shadow:0 9px 28px rgba(8,21,17,.2),0 0 19px rgba(255,166,127,.19);
}

/* Realistic WhatsApp-style demonstration: neutral UI, separate from Bercary branding */
#demo .phone{width:min(100%,390px);margin-inline:auto;overflow:hidden;border:7px solid #182d2b;border-radius:30px;background:#f0f2f5;box-shadow:0 24px 65px #0007;min-width:0}
#demo .phone-top{display:flex;align-items:center;gap:10px;min-height:66px;padding:10px 13px;background:#075e54;color:white}
#demo .phone-top .wa-back{font-size:22px;line-height:1;color:#fff;opacity:.9}
#demo .phone-top .avatar{width:39px;height:39px;min-width:39px;border-radius:50%;display:grid;place-items:center;background:#d9eee5;color:#075e54;font-weight:800;font-size:17px}
#demo .phone-top .wa-contact{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#demo .phone-top strong{font-size:14px;color:#fff;line-height:1.15;font-family:system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#demo .phone-top small{font-size:11px;color:#d6eee5;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#demo .wa-header-actions{display:flex;gap:14px;align-items:center;color:#fff;font-size:18px;white-space:nowrap}
#demo .wa-date{margin:10px auto 12px;padding:5px 12px;width:max-content;max-width:90%;background:#f5f8fae8;color:#60717b;border-radius:8px;font-size:10px;box-shadow:0 1px 2px #0002}
#demo .screen{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;height:440px;min-height:440px;padding:0 13px 14px;background-color:#e7ded2;background-image:radial-gradient(#fff5 1px,transparent 1px),radial-gradient(#a6b6aa26 1px,transparent 1px);background-size:26px 26px,42px 42px;background-position:0 0,12px 14px;scroll-behavior:smooth}
#demo .screen .bubble{box-sizing:border-box;align-self:flex-start;max-width:86%;width:max-content;margin:0;padding:8px 10px 5px;border-radius:2px 11px 11px 11px;background:#fff;color:#263238;box-shadow:0 1px 1px #0002;font:12.5px/1.42 system-ui,sans-serif;overflow-wrap:anywhere;white-space:pre-wrap}
#demo .screen .bubble.visitor{align-self:flex-end;border-radius:11px 2px 11px 11px;background:#d9fdd3;color:#263238}
#demo .screen .bubble .stamp{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-top:3px;font:9px/1 system-ui,sans-serif;color:#667781;white-space:nowrap}
#demo .screen .bubble .wa-ticks{color:#53a4c8;font-weight:800;font-size:11px;letter-spacing:-3px;margin-right:3px}
#demo .phone-foot{display:flex;align-items:center;gap:8px;padding:9px 9px 12px;background:#f0f2f5;min-height:58px;box-sizing:border-box}
#demo .phone-foot .wa-plus{font-size:23px;color:#667781;line-height:1;padding:0 2px}
#demo .phone-foot input{flex:1;min-width:0;background:#fff!important;border:0!important;border-radius:24px!important;min-height:38px;padding:9px 13px!important;color:#263238!important;font:12px system-ui,sans-serif!important;box-shadow:none!important}
#demo .phone-foot input::placeholder{color:#87959e}
#demo .phone-foot button{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:#008069!important;color:#fff!important;font-size:18px;padding:0}
#demo .phone-foot input:disabled{opacity:1}
#demo .phone-foot:has(input:disabled) button{background:#008069!important}
#demo .phone-wa-label{font:10px system-ui,sans-serif;text-align:center;color:#5b6d6c;background:#e6f0e9;padding:5px 8px}
@media(max-width:560px){#demo .phone{width:100%;max-width:390px;border-width:5px;border-radius:23px}#demo .screen{height:405px;min-height:405px}#demo .phone-top{padding:9px 10px}}

/* Bercary WhatsApp-style conversation mockup: visual simulation only. */
#demo .phone{border:5px solid #142b28;border-radius:26px;box-shadow:0 14px 42px rgba(0,0,0,.28);background:#efeae2;max-width:395px}
#demo .phone-top{background:#075e54;min-height:61px;padding:8px 11px;gap:8px}
#demo .phone-top .wa-contact strong{font-size:13px}
#demo .phone-top .wa-contact small{color:#c7e6dd;font-size:10px}
#demo .wa-header-actions{font-size:17px;gap:13px}
#demo .wa-video-icon{font-size:16px}
#demo .wa-call-icon{font-size:18px}
#demo .screen{background-color:#efeae2;background-image:radial-gradient(ellipse at 10% 25%,rgba(122,137,118,.09) 0 1.4px,transparent 1.8px),radial-gradient(ellipse at 70% 80%,rgba(122,137,118,.08) 0 1.4px,transparent 1.8px);background-size:34px 40px,48px 54px;gap:7px;padding:0 10px 12px;height:425px;min-height:425px}
#demo .screen .bubble{max-width:84%;font-size:12.5px;line-height:1.42;padding:7px 9px 5px;border-radius:3px 9px 9px 9px;box-shadow:0 1px 1px rgba(0,0,0,.1)}
#demo .screen .bubble.visitor{border-radius:9px 3px 9px 9px;background:#d9fdd3}
#demo .phone-foot{background:#f0f2f5;padding:7px 9px;min-height:54px}
#demo .phone-wa-label{background:#f0f2f5;color:#637570;font-size:9px;padding:4px 8px 7px}
@media(max-width:560px){#demo .phone{width:100%;max-width:390px;border-width:4px}#demo .screen{height:385px;min-height:385px}}

.ai-counter{text-align:center;font-size:12px;color:#d9f5e7;padding:8px 0 10px}.demo-scenarios[hidden]{display:none!important}.phone-foot button:disabled{opacity:.4;cursor:not-allowed}

/* Bercary demo information: outside the phone, within the explanatory column */
#demo .bercary-demo-outside{margin:18px 0 16px;padding:18px 20px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.055);color:var(--cream,#fff)}
#demo .bercary-demo-outside h3{font-size:19px;line-height:1.35;margin:0 0 8px;color:inherit}
#demo .bercary-demo-outside p{font-size:13px;line-height:1.6;margin:0 0 9px;color:inherit}
#demo .bercary-demo-outside .bercary-demo-trial{font-weight:700;color:#b9eed7}
#demo .bercary-demo-outside .bercary-demo-explainer{opacity:.86;margin-bottom:0}
#demo .bercary-demo-outside .ai-counter{text-align:left;padding:9px 0 0;color:#b9eed7;font-weight:600}

/* Three-part dental demo: left service, untouched central phone, right demo details. */
@media(min-width:1101px){
  #demo .demo-wrap{display:grid;grid-template-columns:minmax(0,1fr) 395px minmax(0,1fr);gap:22px;align-items:center}
  #demo .demo-wrap > .phone{grid-column:2;grid-row:1}
  #demo .demo-wrap > .bercary-demo-outside{grid-column:3;grid-row:1;margin:0;align-self:center}
  #demo .demo-wrap > div:first-child{grid-column:1;grid-row:1;min-width:0}
}
@media(min-width:851px) and (max-width:1100px){
  #demo .demo-wrap{grid-template-columns:minmax(0,1fr) minmax(0,395px);gap:24px}
  #demo .demo-wrap > .bercary-demo-outside{grid-column:1 / -1;margin:0}
}
@media(max-width:850px){
  #demo .demo-wrap > .bercary-demo-outside{margin:0}
}

/* Layout-only refinement, 2026-11-16. Phone DOM, styling and chat scripts untouched. */
@media (min-width:1101px) {
  #demo .wrap.demo-wrap {
    max-width: 1320px;
    grid-template-columns: minmax(0,1fr) 395px minmax(0,1fr);
    gap: clamp(24px, 2.6vw, 36px);
    align-items: start;
  }
  #demo .demo-wrap > div:first-child { align-self:start; padding-top:8px; }
  #demo .demo-wrap > div:first-child h2 {
    font-size: clamp(30px, 2.65vw, 40px);
    line-height: 1.16;
    letter-spacing: -.025em;
    overflow-wrap: normal;
    hyphens: none;
    margin-bottom: 22px;
  }
  #demo .demo-wrap > div:first-child > p:not(.demo-note) {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    align-self:start;
    margin: 0;
    padding: 22px 22px 24px;
  }
  #demo .demo-wrap > .bercary-demo-outside h3 {font-size: 20px;line-height:1.28;}
  #demo .demo-controls {display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:18px 0 8px;}
  #demo .demo-controls button {max-width:100%;white-space:normal;text-align:center;}
  #demo .demo-wrap > div:first-child .demo-note {margin-top:16px;}
}
@media (min-width:851px) and (max-width:1100px) {
  #demo .demo-wrap > div:first-child h2 {font-size:clamp(31px,3.6vw,42px);line-height:1.16;}
  #demo .demo-wrap > .bercary-demo-outside {max-width:700px;justify-self:center;width:100%;}
}
@media (max-width:850px) {
  #demo .demo-wrap {gap:26px;}
  #demo .demo-wrap > div:first-child h2 {font-size:clamp(32px,7vw,48px);line-height:1.15;}
  #demo .demo-wrap > .bercary-demo-outside {width:100%;max-width:540px;justify-self:center;}
}

/* Equal-width three-panel layout. Only layout of demo wrappers changes.
   Phone CSS, HTML, scripts, and message content remain untouched. */
@media (min-width: 1320px) {
  #demo .wrap.demo-wrap {
    width: min(100% - 48px, 1450px);
    max-width: 1450px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(22px, 2vw, 32px);
    align-items: start;
  }
  #demo .demo-wrap > div:first-child {
    grid-column: 1; grid-row: 1;
    min-width: 0; padding-top: 0; align-self: start;
  }
  #demo .demo-wrap > .phone {
    grid-column: 2; grid-row: 1;
    justify-self: center; align-self: start;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column: 3; grid-row: 1;
    justify-self: stretch; align-self: start;
    width: 100%; margin: 0;
  }
  #demo .demo-wrap > div:first-child h2 {
    font-size: clamp(30px, 2.45vw, 39px);
    line-height: 1.15;
    overflow-wrap: break-word;
  }
}
/* Intermediate screens: two balanced columns with the explanation below.
   This avoids squeezing or scaling the existing 395px phone. */
@media (min-width: 851px) and (max-width: 1319px) {
  #demo .wrap.demo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 395px);
    gap: 26px;
    align-items: start;
  }
  #demo .demo-wrap > div:first-child {grid-column: 1;grid-row: 1;min-width:0;align-self:start;}
  #demo .demo-wrap > .phone {grid-column:2;grid-row:1;justify-self:center;align-self:start;}
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column: 1 / -1;grid-row:2;
    justify-self:stretch;align-self:start;
    width:100%;max-width:none;margin:0;
  }
}
/* Mobile: service -> original phone -> information. */
@media (max-width: 850px) {
  #demo .wrap.demo-wrap {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:26px;}
  #demo .demo-wrap > div:first-child {grid-column:1;grid-row:1;min-width:0;}
  #demo .demo-wrap > .phone {grid-column:1;grid-row:2;justify-self:center;}
  #demo .demo-wrap > .bercary-demo-outside {grid-column:1;grid-row:3;justify-self:stretch;margin:0;}
}

/* Layout experiment: demo details LEFT, service copy CENTER, existing phone RIGHT.
   No phone, conversation, scripts or markup changed. */
@media (min-width: 1101px) {
  #demo .wrap.demo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(22px, 2.3vw, 34px);
    align-items: start;
    max-width: 1440px;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    margin: 0;
  }
  #demo .demo-wrap > div:first-child {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: start;
    padding-top: 0;
  }
  #demo .demo-wrap > .phone {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    align-self: start;
  }
  #demo .demo-wrap > div:first-child h2 {
    font-size: clamp(29px, 2.5vw, 39px);
    line-height: 1.17;
  }
  #demo .demo-wrap > div:first-child .demo-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
/* On smaller screens, retain the existing responsive phone styling and
   place the demo details after the phone for a natural reading order. */
@media (max-width: 1100px) {
  #demo .demo-wrap > div:first-child { order: 1; }
  #demo .demo-wrap > .phone { order: 2; }
  #demo .demo-wrap > .bercary-demo-outside { order: 3; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  #demo .demo-wrap { display: flex; flex-wrap: wrap; justify-content: center; }
  #demo .demo-wrap > div:first-child { flex: 1 1 300px; }
  #demo .demo-wrap > .phone { flex: 0 1 auto; }
  #demo .demo-wrap > .bercary-demo-outside { flex: 1 1 100%; }
}


/* FINAL: services | Sofia demo details | original phone. No phone rules changed. */
@media (min-width: 1200px) {
  #demo .wrap.demo-wrap {
    display:grid; width:min(calc(100% - 48px), 1440px); max-width:1440px;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    gap:clamp(20px,2.1vw,32px); align-items:center;
  }
  #demo .demo-wrap > div:first-child {
    grid-column:1; grid-row:1; align-self:center; min-width:0; padding:0;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column:2; grid-row:1; align-self:center; justify-self:stretch;
    width:100%; max-width:none; min-width:0; margin:0;
  }
  #demo .demo-wrap > .phone {
    grid-column:3; grid-row:1; align-self:center; justify-self:center;
  }
  #demo .demo-wrap > div:first-child h2 {
    font-size:clamp(30px,2.65vw,42px); line-height:1.14;
    overflow-wrap:normal; hyphens:none; margin:0 0 20px;
  }
  #demo .demo-wrap > div:first-child .demo-controls {
    display:flex; flex-direction:column; gap:10px; margin:16px 0 0;
    align-items:stretch;
  }
  #demo .demo-wrap > div:first-child .demo-controls button {width:100%;}
  #demo .bercary-demo-outside {padding:22px 20px;}
}
@media (min-width: 851px) and (max-width:1199px) {
  #demo .wrap.demo-wrap {
    display:grid; grid-template-columns:minmax(0,1fr) 395px;
    gap:24px; align-items:center;
  }
  #demo .demo-wrap > div:first-child {
    grid-column:1;grid-row:1;align-self:center;min-width:0;
  }
  #demo .demo-wrap > .phone {
    grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:center;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column:1;grid-row:2;align-self:start;justify-self:stretch;
    width:100%;max-width:none;margin:0;
  }
}
@media (max-width:850px) {
  #demo .wrap.demo-wrap {
    display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start;
  }
  #demo .demo-wrap > div:first-child {grid-column:1;grid-row:1;min-width:0;}
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column:1;grid-row:2;justify-self:stretch;width:100%;max-width:none;margin:0;
  }
  #demo .demo-wrap > .phone {grid-column:1;grid-row:3;justify-self:center;}
}
/* The informational disclaimer is now grouped with the demo details, not duplicated under buttons. */
#demo .bercary-demo-outside .demo-note {
  display:block;margin:12px 0 0;padding:10px 12px;
  border-left:3px solid var(--coral,#ff8067);
  border-radius:0 8px 8px 0;
  background:rgba(255,255,255,.035);
  font-size:12px;line-height:1.5;
}
#demo .demo-status:empty {display:none;}

/* BERCARY CLEAN TWO-ZONE LAYOUT — content left, original phone right.
   No dimensions, conversation or behaviour of the phone are modified. */
@media (min-width: 851px) {
  #demo .wrap.demo-wrap {
    display:grid;
    width:100%;
    max-width:1240px;
    grid-template-columns:minmax(0,1fr) 395px;
    grid-template-rows:auto auto;
    column-gap:clamp(38px,5vw,92px);
    row-gap:0;
    align-items:start;
    align-content:center;
    margin-inline:auto;
  }
  #demo .demo-wrap > div:first-child {
    grid-column:1;grid-row:1;
    align-self:end;justify-self:stretch;
    min-width:0;margin:0;padding:0;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column:1;grid-row:2;
    align-self:start;justify-self:stretch;
    min-width:0;width:100%;max-width:none;
    margin:12px 0 0;padding:20px 0 0;
    border:0;border-top:1px solid rgba(243,239,228,.19);
    border-radius:0;background:transparent;box-shadow:none;
  }
  #demo .demo-wrap > .phone {
    grid-column:2;grid-row:1 / span 2;
    align-self:center;justify-self:center;
  }
  #demo .demo-wrap > div:first-child h2 {
    max-width:580px;font-size:clamp(35px,3.4vw,53px);
    line-height:1.1;margin:0 0 19px;
  }
  #demo .demo-wrap > div:first-child .demo-controls {
    display:flex;flex-direction:row;align-items:stretch;
    gap:10px;margin:20px 0 0;
  }
  #demo .demo-wrap > div:first-child .demo-controls button {
    width:auto;flex:1 1 0;min-width:0;
  }
}
@media (min-width:851px) and (max-width:1040px) {
  #demo .wrap.demo-wrap {grid-template-columns:minmax(0,1fr) 395px;column-gap:24px;}
  #demo .demo-wrap > div:first-child h2 {font-size:34px;}
  #demo .demo-wrap > div:first-child .demo-controls {flex-direction:column;}
}
@media (max-width:850px) {
  #demo .wrap.demo-wrap {
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:22px;align-items:start;
  }
  #demo .demo-wrap > div:first-child {
    grid-column:1;grid-row:1;min-width:0;margin:0;padding:0;
  }
  #demo .demo-wrap > .phone {
    grid-column:1;grid-row:2;justify-self:center;
  }
  #demo .demo-wrap > .bercary-demo-outside {
    grid-column:1;grid-row:3;justify-self:stretch;
    width:100%;max-width:none;min-width:0;
    margin:0;padding:18px 0 0;border:0;
    border-top:1px solid rgba(243,239,228,.19);
    border-radius:0;background:transparent;box-shadow:none;
  }
}
/* Remove the duplicated auxiliary text link, keeping the actual demo controls. */
#demo .demo-wrap > div:first-child > a.textlink {display:none!important;}
#demo .bercary-demo-outside > p:first-of-type {margin-bottom:10px;}
#demo .bercary-demo-outside .bercary-demo-trial {margin:12px 0 8px;}
#demo .bercary-demo-outside .bercary-demo-explainer {margin-bottom:8px;}
#demo .demo-status:empty {display:none;min-height:0;}

/* BERCARY REFINEMENT — selective borders, one action label, unchanged phone */
#demo .demo-wrap > div:first-child .demo-controls button[aria-pressed="true"] {
  outline:none; outline-offset:0;
}
#demo .demo-wrap > div:first-child .demo-controls button:focus-visible {
  outline:2px solid var(--mint,#35d68a); outline-offset:3px;
}
#demo .bercary-demo-outside {
  border:1px solid rgba(193,224,211,.24) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.045) !important;
  padding:22px 24px !important;
  box-shadow:none !important;
}
#demo .bercary-demo-outside .demo-note {
  border-left:2px solid var(--coral,#ff785b);
  background:rgba(255,255,255,.025);
}
#demo .demo-wrap > div:first-child .demo-controls {gap:12px;}
#demo .demo-wrap > div:first-child .demo-controls button {border-radius:12px;}
#demo .demo-status:empty {display:none!important;min-height:0!important;margin:0!important;padding:0!important;}
@media(min-width:851px) {
  #demo .wrap.demo-wrap {row-gap:0;align-content:center;}
  #demo .demo-wrap > .bercary-demo-outside {margin-top:18px!important;}
}
@media(max-width:850px) {
  #demo .bercary-demo-outside {margin-top:0!important;}
}


/* BERCARY — Sofía demo: improved readability without section frames. */
#demo .bercary-demo-outside h3,
#demo .bercary-demo-outside h4,
#demo .bercary-demo-outside strong {color:#fff0dc!important;}
#demo .bercary-demo-outside p {color:#e5f2eb!important;}
#demo .bercary-demo-outside .demo-note {
  background:rgba(255,133,102,.10)!important;
  border-left:3px solid #ff8a6b!important;
  color:#ffe0ca!important;
}
#demo .bercary-demo-outside .demo-note p {color:#ffe0ca!important;}
/* Dental CRM demonstration — no change to site typography */
#demo .demo-wrap{grid-template-columns:minmax(0,.82fr) minmax(0,1fr) minmax(260px,.84fr);gap:22px;align-items:start}#demo .dental-crm{background:#f6f1e8;color:#19372e;border-radius:22px;padding:20px;min-height:485px;box-shadow:0 18px 42px #0003}#demo .dental-crm h3{font-size:22px;margin:3px 0 0;color:#19372e}#demo .dental-crm-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}#demo .dental-crm-kicker{font-size:10px;letter-spacing:.1em;color:#a35e46;font-weight:700}#demo .dental-crm-icon{font-size:25px}#demo .dental-crm-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}#demo .dental-crm-stats>div{background:white;border-radius:12px;padding:12px}#demo .dental-crm-stats strong{display:block;font-size:27px;color:#1b473a}#demo .dental-crm-stats span{font-size:11px;color:#4c655a}#demo .dental-crm-list{display:grid;gap:9px}#demo .dental-crm-list>p{font-size:13px;color:#48665b}#demo .dental-record{display:grid;gap:3px;background:#fff;border-left:3px solid #b97859;border-radius:10px;padding:12px}#demo .dental-record span,#demo .dental-record small{font-size:12px;color:#476558}#demo .dental-crm-disclaimer{font-size:11px;margin-top:20px;color:#627a6f}#demo .bercary-demo-outside{grid-column:1/-1}#demo .dental-summary{max-width:100%;background:#fff;color:#1a362d;border-radius:12px;padding:12px;box-shadow:0 3px 12px #0002;font-size:12px}#demo .dental-summary-title{display:block;color:#9b553d;margin-bottom:9px}#demo .dental-summary-row{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #eee;padding:5px 0}#demo .dental-summary-row span{color:#52665b}#demo .dental-summary p{color:#53665a;font-size:11px;margin:9px 0}#demo .dental-summary-actions{display:flex;gap:7px}#demo .dental-summary-actions button{flex:1;border:1px solid #b97859;background:white;color:#17382f;border-radius:8px;padding:8px 3px;font-size:11px}#demo .dental-summary-actions .dental-confirm{background:#b97859;color:#fff}@media(max-width:1100px){#demo .demo-wrap{grid-template-columns:1fr 1fr}#demo .demo-wrap>div:first-child{grid-column:1/-1}#demo .dental-crm{min-height:0}}@media(max-width:680px){#demo .demo-wrap{grid-template-columns:1fr}#demo .demo-wrap>div:first-child{grid-column:auto}#demo .dental-crm{min-height:0}}

/* Final layout: information spans the top; original WhatsApp phone and CRM sit side by side below. */
@media (min-width: 681px) {
  #demo .wrap.demo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 395px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(24px, 4vw, 58px);
    row-gap: 30px;
    align-items: start;
    align-content: start;
    max-width: 1180px;
    margin-inline: auto;
  }
  #demo .demo-wrap > .dental-demo-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
  }
  #demo .demo-wrap > .phone {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    /* The phone keeps its previous width and all existing phone styles. */
  }
  #demo .demo-wrap > .dental-crm {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
  }
  #demo .dental-demo-intro .bercary-demo-outside {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 680px) {
  #demo .wrap.demo-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  #demo .demo-wrap > .dental-demo-intro {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  #demo .demo-wrap > .phone {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
  }
  #demo .demo-wrap > .dental-crm {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    width: 100%;
  }
}

/* Proportions finales : smartphone étroit et CRM large, hauteurs alignées. */
@media (min-width: 681px) {
  #demo .wrap.demo-wrap {
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 58px);
    align-items: stretch;
  }
  #demo .demo-wrap > .phone {
    width: 100%;
    max-width: 320px;
    justify-self: start;
    align-self: start;
  }
  #demo .demo-wrap > .dental-crm {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }
}

