/* Existing ecommerce-capsule tokens mapped to the supplied class names.
   No width, padding, scale or translation change on hover. */
.service-capsule.capsule-s1 {
  position:relative;max-width:730px;width:90%;margin:18px auto 0;
  background:rgba(9,21,46,.72);backdrop-filter:blur(28px) saturate(140%);
  -webkit-backdrop-filter:blur(28px) saturate(140%);
  border:1px solid rgba(255,255,255,.18);border-radius:46px;
  padding:12px 28px;
  box-shadow:0 16px 40px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.25);
  z-index:15;pointer-events:auto;
}
.capsule-s1 .capsule-header {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:6px;}
.capsule-s1 .capsule-tag {font-size:15px;font-weight:800;letter-spacing:.12em;color:#FFF;text-transform:uppercase;}
.capsule-s1 .capsule-subtitle {
  font-family:"Georgia",serif;font-style:italic;font-size:16px;font-weight:600;letter-spacing:.02em;
  color:#E5A17F;background:linear-gradient(135deg,#FFF 0%,#F1E9DC 25%,#E5A17F 50%,#B56745 80%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 6px rgba(181,103,69,.4));
}
.capsule-s1 .capsule-title {margin:0;font-size:calc(15.5px * var(--capsule1-type-fit,1));font-weight:700;line-height:1.5;color:#FFF;text-align:center;white-space:nowrap;overflow:hidden;mask-image:linear-gradient(to right,#000 0%,#000 82%,transparent 100%);}
.capsule-s1 .capsule-fade {font-size:13.5px;color:rgba(241,233,220,.72);font-weight:400;margin-left:6px;}
.capsule-s1 .capsule-more-hint {font-size:13.5px;color:rgba(241,233,220,.72);font-weight:400;}
.capsule-s1 .capsule-body {margin:4px 0 0;font-size:calc(13.5px * var(--capsule1-type-fit,1));color:rgba(241,233,220,.88);line-height:1.6;text-align:center;}
.capsule-s1:is(:hover,:focus-visible,.is-open,.requested-measuring) .capsule-title {white-space:normal;mask-image:none;}
.capsule-s1:is(:focus-visible,.is-open) {max-height:180px;background:rgba(9,21,46,.92);}
.capsule-s1:is(:focus-visible,.is-open,.requested-measuring) :is(.capsule-fade,.capsule-more-hint) {display:none;}
.capsule-s1:is(:focus-visible,.is-open) .capsule-body {opacity:.88;transform:translateY(0);}
.capsule-s1.requested-measuring {max-height:none!important;transition:none!important;}
.capsule-s1.requested-measuring .capsule-body {transform:none;transition:none;}

/* The supplied maximum-height animation owns clipping, not the rAF height.
   Top anchoring keeps the meta row visible rather than cropping the body. */
#capsuleRetorno {max-height:190px;justify-content:flex-start;translate:none!important;top:44%;transition:top .4s ease,transform .4s ease;}
#capsuleRetorno #morphPhoton {top:50%;margin-top:-8px;}
#capsuleRetorno #morphContent {flex-shrink:0;padding:16px 32px;gap:10px;}
#capsuleRetorno.is-compacted {top:24px;transform:translateX(-50%);}
#capsuleRetorno.is-compacted:not(.is-rescued) :is(.capsule-lead-headline,.capsule-copy-text) {visibility:hidden;}
#capsuleRetorno .capsule-meta-top {min-height:24px;}
#capsuleRetorno .capsule-lead-headline {font-size:calc(clamp(17px,2.3vw,22px) * var(--retorno-type-fit,1));}
#capsuleRetorno .capsule-copy-text {font-size:calc(13.5px * var(--retorno-type-fit,1));}
#capsuleRetorno .capsule-sub-title {font-size:calc(15.5px * var(--retorno-type-fit,1));}
#perimeterCanvas {translate:none!important;}
#seccion-pilares {position:absolute;left:0;width:1px;height:1px;pointer-events:none;visibility:hidden;}
@media(max-width:640px) {
  .service-capsule.capsule-s1 {width:100%;max-width:380px;padding:4px 10px;border-radius:28px;margin:10px auto 0;}
  .capsule-s1 .capsule-header {flex-direction:column;justify-content:center;gap:0;margin-bottom:2px;}
  .capsule-s1 .capsule-tag {font-size:11.5px;letter-spacing:.1em;}
  .capsule-s1 .capsule-subtitle {font-size:13.5px;}
  .capsule-s1 .capsule-title {font-size:calc(13.5px * var(--capsule1-type-fit,1));line-height:1.4;}
  .capsule-s1 :is(.capsule-fade,.capsule-more-hint) {font-size:12px;}
  .capsule-s1 .capsule-body {font-size:calc(12px * var(--capsule1-type-fit,1));line-height:1.4;margin-top:2px;}
}
@media(max-width:768px) {
  #capsuleRetorno #morphContent {padding:6px 10px;gap:3px;}
  #capsuleRetorno .capsule-meta-top {gap:0;min-height:42px;justify-content:center;padding-inline:10px;}
  #capsuleRetorno .capsule-lead-headline {line-height:1.25;}
  #capsuleRetorno .capsule-copy-text {line-height:1.35;}
}

/* CSS CÁPSULA 1 */
.capsule-s1 {
  max-height: 84px;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  cursor: pointer;
}

.capsule-s1:hover {
  max-height: 180px; /* Se despliega al pasar el mouse */
  background: rgba(9, 21, 46, 0.92);
}

.capsule-s1:hover .capsule-fade,
.capsule-s1:hover .capsule-more-hint {
  display: none;
}

.capsule-s1 .capsule-body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.capsule-s1:hover .capsule-body {
  opacity: 0.88;
  transform: translateY(0);
}