/* VALTRIS V1.81 — Gastos médicos: editorial visual, closing story, accessible timed reveals.
   Scope strictly limited to this page. No changes to Valentín or other insurance pages. */
body.v118-product--gastos-medicos{--g181-ink:#052844;--g181-accent:#05a8d8;--g181-radius:21px}
/* Calculator info dialogs: a drawn, perfectly centered X instead of the font-dependent glyph. */
body.v118-product--gastos-medicos .g180-calculator .v139-tip button[data-close-tip]{
  position:absolute!important;top:10px!important;right:10px!important;width:30px!important;height:30px!important;
  padding:0!important;margin:0!important;border-radius:50%!important;line-height:0!important;font-size:0!important;
  background:#fff!important;border:1px solid #87c9eb!important;box-shadow:0 2px 8px rgba(5,46,82,.07)!important;
  display:block!important;cursor:pointer!important;flex:none!important;box-sizing:border-box!important
}
body.v118-product--gastos-medicos .g180-calculator .v139-tip button[data-close-tip]::before,
body.v118-product--gastos-medicos .g180-calculator .v139-tip button[data-close-tip]::after{
  content:''!important;display:block!important;position:absolute!important;top:50%!important;left:50%!important;
  width:12px!important;height:1.7px!important;background:#083659!important;border-radius:2px!important;
  transform:translate(-50%,-50%) rotate(45deg)!important;pointer-events:none!important
}
body.v118-product--gastos-medicos .g180-calculator .v139-tip button[data-close-tip]::after{transform:translate(-50%,-50%) rotate(-45deg)!important}
body.v118-product--gastos-medicos .g180-calculator .v139-tip button[data-close-tip]:focus-visible{outline:3px solid #19a7dc!important;outline-offset:3px!important}
/* Narrative spacing: deeper contrast and softer color shifts. */
body.v118-product--gastos-medicos #gmm-beneficios{background:linear-gradient(180deg,#f9fcff 0%,#edf7fc 66%,#fff 100%)}
body.v118-product--gastos-medicos #gmm-configuracion{background:linear-gradient(180deg,#fff 0%,#f5faff 100%)}
body.v118-product--gastos-medicos #gmm-situaciones{background:linear-gradient(180deg,#eaf4fa,#f9fcff)}
body.v118-product--gastos-medicos #gmm-estadisticas{background:linear-gradient(180deg,#fff 0%,#f6fbff 100%)}
body.v118-product--gastos-medicos .g181-benefits-intro{font-size:14px!important;color:#0a6b9d!important;font-weight:650;margin:12px 0 0!important;max-width:720px;line-height:1.55!important}
/* Benefit tiles: editorial photo strips and an icon badge with a soft focus aura. */
body.v118-product--gastos-medicos .g180-benefits-grid{gap:16px}
body.v118-product--gastos-medicos .g180-benefit{position:relative;background:rgba(255,255,255,.88);border:1px solid #cae1f0;border-radius:var(--g181-radius);box-shadow:0 10px 28px rgba(7,39,69,.055);isolation:isolate;will-change:transform;transition:transform .3s cubic-bezier(.2,.75,.24,1),box-shadow .3s,border-color .3s,background .3s}
body.v118-product--gastos-medicos .g180-benefit:hover,body.v118-product--gastos-medicos .g180-benefit:focus-within,body.v118-product--gastos-medicos .g180-benefit:has([aria-expanded='true']){border-color:#49aeea;transform:translateY(-4px);box-shadow:0 17px 38px rgba(0,104,172,.18),0 0 0 1px rgba(46,187,250,.25),0 0 26px rgba(0,165,255,.11);background:#fff}
body.v118-product--gastos-medicos .g180-benefit::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(125deg,rgba(255,255,255,.0) 0%,rgba(255,255,255,.28) 35%,transparent 65%);transition:opacity .25s}
body.v118-product--gastos-medicos .g180-benefit:hover::after{opacity:1}
body.v118-product--gastos-medicos .g180-benefit-btn{display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-height:227px;padding:0 13px 18px;position:relative;z-index:1}
body.v118-product--gastos-medicos .g181-benefit-media{display:block;width:calc(100% + 26px);height:110px;margin:0 -13px 0;position:relative;overflow:hidden;background:#d5edf8;border-radius:19px 19px 0 0}
body.v118-product--gastos-medicos .g181-benefit-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,45,77,.025),rgba(5,43,69,.24));pointer-events:none}
body.v118-product--gastos-medicos .g181-benefit-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .58s cubic-bezier(.2,.75,.25,1),filter .45s;filter:saturate(.88) contrast(1.05)}
body.v118-product--gastos-medicos .g180-benefit:hover .g181-benefit-media img{transform:scale(1.075);filter:saturate(1.1) contrast(1.06)}
body.v118-product--gastos-medicos .g180-benefit-btn>.g180-icon{position:relative;z-index:2;width:35px;height:35px;padding:7px;box-sizing:content-box;background:linear-gradient(145deg,#f8fdff,#dff4ff);color:#087ab9;box-shadow:0 3px 12px rgba(0,80,146,.12),inset 0 1px 0 #fff;border:1px solid #cae9fa;border-radius:17px;margin:-31px 0 0;transition:background .28s,box-shadow .28s,transform .28s}
body.v118-product--gastos-medicos .g180-benefit:hover .g180-benefit-btn>.g180-icon{background:#dff6ff;box-shadow:0 0 20px #40bafe60;transform:translateY(-2px)}
body.v118-product--gastos-medicos .g180-benefit-btn strong{font-size:14px;min-height:36px;display:flex;align-items:center;justify-content:center;margin-top:0;color:#062b4a}
body.v118-product--gastos-medicos .g180-plus{margin-top:auto;background:#fff;box-shadow:0 2px 7px rgba(1,93,140,.06)}
body.v118-product--gastos-medicos .g180-benefit-answer{padding:0 17px 20px;position:relative;z-index:2}
/* Decisions feel like high-end actionable tiles; illustrated slots are photo-ready. */
body.v118-product--gastos-medicos .g180-decisions{gap:13px}
body.v118-product--gastos-medicos .g180-decision{border-radius:19px;background:#fff;position:relative;overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s}
body.v118-product--gastos-medicos .g180-decision:hover,body.v118-product--gastos-medicos .g180-decision:focus-within,body.v118-product--gastos-medicos .g180-decision:has([aria-expanded='true']){transform:translateY(-4px);border-color:#56b6e9;box-shadow:0 13px 32px #0873bc23,0 0 21px #16a7ea16}
body.v118-product--gastos-medicos .g181-decision-media{position:relative;height:90px;display:grid;place-items:center;margin:-16px -13px 6px;border-radius:17px 17px 11px 11px;background:linear-gradient(145deg,#d8edf8,#ecfaff);overflow:hidden}
body.v118-product--gastos-medicos .g181-decision-media::after{content:'';position:absolute;width:110px;height:110px;border-radius:50%;left:58%;top:-50px;box-shadow:0 0 0 25px rgba(255,255,255,.26),0 0 0 54px rgba(255,255,255,.19)}
body.v118-product--gastos-medicos .g181-decision-media svg.g180-icon{width:38px;height:38px;padding:12px;box-sizing:content-box;border-radius:18px;background:rgba(255,255,255,.89);box-shadow:0 6px 21px #09619f23;color:#046aa9;z-index:1;transition:transform .3s}
body.v118-product--gastos-medicos .g180-decision:hover .g181-decision-media svg{transform:scale(1.07)}
body.v118-product--gastos-medicos .g181-decision-media--cyan{background:linear-gradient(135deg,#d9f1fc,#e8f6ff)}
body.v118-product--gastos-medicos .g181-decision-media--indigo{background:linear-gradient(145deg,#e4edff,#f0f4ff)}
body.v118-product--gastos-medicos .g181-decision-media--teal{background:linear-gradient(145deg,#def7f1,#e9fbf9)}
body.v118-product--gastos-medicos .g181-decision-media--azure{background:linear-gradient(145deg,#e2f4fe,#eef8ff)}
/* Make scenarios & statistic cards respond consistently to pointer focus/hover */
body.v118-product--gastos-medicos .g180-scene,body.v118-product--gastos-medicos .g180-stat{transition:transform .3s,box-shadow .3s,border-color .3s}
body.v118-product--gastos-medicos .g180-scene:hover,body.v118-product--gastos-medicos .g180-scene:focus-within,body.v118-product--gastos-medicos .g180-stat:hover,body.v118-product--gastos-medicos .g180-stat:focus-within{transform:translateY(-4px);box-shadow:0 15px 33px #0878b020,0 0 24px #21b9fa1c;border-color:#51b7e9}
body.v118-product--gastos-medicos .g180-scene>img,body.v118-product--gastos-medicos .g180-stat-expand img{transition:filter .35s;filter:saturate(.9)}
body.v118-product--gastos-medicos .g180-scene:hover>img{filter:saturate(1.16) contrast(1.03)}
/* Timed details appear with a restrained fade & upward drift; still immediate on keyboard/click. */
@keyframes g181-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
body.v118-product--gastos-medicos .g180-benefit-answer:not([hidden]),
body.v118-product--gastos-medicos .g180-decision-detail:not([hidden]),
body.v118-product--gastos-medicos .g180-scene-expand:not([hidden]),
body.v118-product--gastos-medicos .g180-stat-expand:not([hidden]){animation:g181-enter .27s ease both}
/* The closing banner is a genuine visual transition to the visitor's next action. */
body.v118-product--gastos-medicos .g181-story-banner{position:relative;display:grid;grid-template-columns:minmax(230px,.82fr) minmax(0,1.4fr);gap:0;padding:0!important;border-radius:24px;min-height:310px;background:#052a4b;color:#fff;text-align:left;overflow:hidden;box-shadow:0 20px 47px rgba(1,44,83,.17);border:1px solid #0b5c86;margin-top:34px}
body.v118-product--gastos-medicos .g181-story-photo{position:relative;min-height:310px;background:linear-gradient(0deg,rgba(0,36,68,.35),rgba(0,36,68,0)),url('/assets/photos/v120-familia-jardin-large.webp') center 42% / cover no-repeat}
body.v118-product--gastos-medicos .g181-story-photo-label{position:absolute;bottom:22px;left:25px;color:#fff;font-weight:700;max-width:240px;font-size:17px;line-height:1.24;text-shadow:0 2px 9px #002c53a8}
body.v118-product--gastos-medicos .g181-story-content{position:relative;z-index:1;padding:35px clamp(24px,4.2vw,58px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:radial-gradient(ellipse at 95% -15%,#117aa457,transparent 58%),linear-gradient(132deg,#063356,#05253e)}
body.v118-product--gastos-medicos .g181-story-eyebrow{color:#7ee3fa;font-size:10px;letter-spacing:.14em;font-weight:800;margin-bottom:8px}
body.v118-product--gastos-medicos .g181-story-content>strong{font-size:clamp(23px,2.65vw,39px);line-height:1.08;letter-spacing:-.035em;max-width:600px;color:#fff}
body.v118-product--gastos-medicos .g181-story-content>p{font-size:14px;color:#cce5f2;line-height:1.6;margin:15px 0 18px;max-width:570px}
body.v118-product--gastos-medicos .g181-story-points{display:flex;flex-wrap:wrap;gap:8px}
body.v118-product--gastos-medicos .g181-story-points span{display:inline-flex;align-items:center;padding:7px 11px;border-radius:7px;background:#4fc8ee1b;border:1px solid #7ccee747;color:#d7f4ff;font-size:11px;font-weight:600}
body.v118-product--gastos-medicos .g181-story-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}
body.v118-product--gastos-medicos .g181-story-actions a{display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:9px;padding:12px 17px;text-decoration:none;font-size:12px;font-weight:750;transition:box-shadow .25s,transform .25s,background .25s}
body.v118-product--gastos-medicos .g181-story-primary{background:#20a9df;color:#fff;box-shadow:0 8px 22px #0005}
body.v118-product--gastos-medicos .g181-story-secondary{color:#fff;border:1px solid #77b7d2;background:#fff1}
body.v118-product--gastos-medicos .g181-story-actions a:hover{transform:translateY(-2px);box-shadow:0 7px 20px #0bc9fd44}
body.v118-product--gastos-medicos .g181-story-content>small{font-size:10px;margin-top:14px;color:#a8c5d4;line-height:1.5}
@media(max-width:940px){body.v118-product--gastos-medicos .g180-decisions{grid-template-columns:repeat(3,minmax(0,1fr))}body.v118-product--gastos-medicos .g181-story-banner{grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr)}}
@media(max-width:680px){body.v118-product--gastos-medicos .g181-story-banner{grid-template-columns:1fr}body.v118-product--gastos-medicos .g181-story-photo{min-height:190px;max-height:230px;background-position:center 40%}body.v118-product--gastos-medicos .g181-story-content{padding:27px 23px 30px}body.v118-product--gastos-medicos .g181-story-photo-label{font-size:14px}body.v118-product--gastos-medicos .g180-decisions{grid-template-columns:repeat(2,minmax(0,1fr))}body.v118-product--gastos-medicos .g181-decision-media{height:77px}body.v118-product--gastos-medicos .g181-decision-media svg.g180-icon{width:30px;height:30px;padding:10px}body.v118-product--gastos-medicos .g180-benefit-btn{min-height:211px;padding:0 10px 15px;gap:6px}body.v118-product--gastos-medicos .g181-benefit-media{width:calc(100% + 20px);height:88px;margin:0 -10px 0}body.v118-product--gastos-medicos .g180-benefit-btn strong{min-height:44px;font-size:12px}body.v118-product--gastos-medicos .g180-benefit-btn>.g180-icon{width:28px;height:28px;padding:6px;margin-top:-26px}body.v118-product--gastos-medicos .g180-benefits-grid{gap:11px}body.v118-product--gastos-medicos .g180-benefit{border-radius:16px}body.v118-product--gastos-medicos .g181-benefit-media{border-radius:15px 15px 0 0}}
@media(prefers-reduced-motion:reduce){body.v118-product--gastos-medicos .g180-benefit-answer:not([hidden]),body.v118-product--gastos-medicos .g180-decision-detail:not([hidden]),body.v118-product--gastos-medicos .g180-scene-expand:not([hidden]),body.v118-product--gastos-medicos .g180-stat-expand:not([hidden]){animation:none!important}body.v118-product--gastos-medicos .g180-benefit,body.v118-product--gastos-medicos .g180-scene,body.v118-product--gastos-medicos .g180-stat,body.v118-product--gastos-medicos .g180-decision{transform:none!important}}

/* Last alignment polish: decision illustrated strip fills card; banner media is a real, responsive image. */
body.v118-product--gastos-medicos .g181-decision-media{width:calc(100% + 26px)!important;flex-shrink:0;box-sizing:border-box}
body.v118-product--gastos-medicos .g181-story-photo-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 43%;display:block}
body.v118-product--gastos-medicos .g181-story-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,32,53,.52),transparent 65%);pointer-events:none}
body.v118-product--gastos-medicos .g181-story-photo-label{z-index:2}
