/* TOP SAFETY V31 — páginas internas de pilares 02, 03 y equipo. */
.ts31-page{--ts31-red:#d90008;--ts31-ink:#161719;--ts31-paper:#f4f3f2}
.ts31-page .v17-hero-grid{grid-template-columns:minmax(0,1fr) minmax(250px,350px);gap:48px;align-items:center}
.ts31-page .v17-hero-art.ts31-emblem{display:grid!important;place-items:center;width:100%;height:auto;aspect-ratio:1;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.ts31-page .ts31-emblem::before,.ts31-page .ts31-emblem::after{display:none!important;content:none!important}
.ts31-emblem img{width:100%;height:auto;max-width:350px;object-fit:contain;filter:drop-shadow(0 18px 24px #0007) drop-shadow(0 0 24px #e0000036);animation:ts31-float 5s ease-in-out infinite}
@keyframes ts31-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.ts31-secondary{display:inline-block;margin:18px 0 0 20px;color:#fff!important;font-size:13px;font-weight:700;border-bottom:1px solid #ffffff60;padding-bottom:5px}
.ts31-section{padding:80px 0 90px;background:var(--ts31-paper)}
.ts31-section-dark{background:linear-gradient(125deg,#141518,#211719);color:#fff}
.ts31-heading{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr);gap:45px;align-items:end;margin-bottom:36px}
.ts31-heading h2,.ts31-profile-heading h2,.ts31-expert h2{font-size:clamp(32px,4.2vw,56px);font-weight:800;line-height:1.1;letter-spacing:-1.6px;margin:14px 0 0;color:#191a1e}
.ts31-heading h2 em,.ts31-profile-heading h2 em{font-style:normal;color:var(--ts31-red)}
.ts31-heading p,.ts31-expert p{color:#626367;font-size:15px;line-height:1.85;margin:0}
.ts31-section-dark .ts31-heading h2{color:#fff}.ts31-section-dark .ts31-heading p{color:#ccc}.ts31-section-dark .ts31-heading h2 em{color:#ff4a50}
.ts31-grid{display:grid;gap:18px;align-items:stretch}.ts31-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ts31-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ts31-card{min-width:0;display:flex;flex-direction:column;background:#161719;color:#fff;border:1px solid #292b2e;transition:transform .35s,border-color .35s,box-shadow .35s}
.ts31-card:hover{transform:translateY(-4px);border-color:#e00000;box-shadow:0 16px 36px #0002}
.ts31-photo{aspect-ratio:1.78;position:relative;overflow:hidden;background:#222}
.ts31-photo img{width:100%;height:100%;display:block;object-fit:cover;filter:brightness(.76) saturate(.85);transition:filter .5s,transform .7s}
.ts31-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#101113e3,transparent 72%);pointer-events:none}
.ts31-card:hover img{filter:brightness(1) saturate(1);transform:scale(1.045)}
.ts31-num,.ts31-photo-label{position:absolute;z-index:1;color:#fff;font-size:10px;letter-spacing:1.6px;font-weight:750}.ts31-num{top:16px;left:19px;padding:5px 9px;background:var(--ts31-red)}.ts31-photo-label{bottom:15px;left:19px;right:10px}
.ts31-card-body{padding:24px;display:flex;flex-direction:column;flex:1;min-width:0}
.ts31-card h3{font-size:clamp(21px,2.1vw,29px);color:#fff;font-weight:800;line-height:1.18;letter-spacing:-.55px;margin:0 0 14px}
.ts31-card-body>p{font-size:14px;line-height:1.75;color:#d0d0d2;margin:0 0 17px}
.ts31-list{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:7px}.ts31-list li{position:relative;padding-left:17px;font-size:13px;line-height:1.6;color:#ebebec}.ts31-list li:before{content:"";width:6px;height:6px;position:absolute;top:.65em;left:0;transform:rotate(45deg);background:#ff363d}
.ts31-deliverable{border-top:1px solid #ffffff26;padding:15px 0 20px;margin-top:auto;font-size:12px;line-height:1.7;color:#c8c8ca}.ts31-deliverable strong{color:#ff666b}
.ts31-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:13px 17px;background:var(--ts31-red);color:#fff!important;font-size:13px;font-weight:750;line-height:1.45;text-decoration:none;transition:background .3s,transform .3s;max-width:100%}.ts31-cta:hover{background:#ac0005;transform:translateY(-2px)}.ts31-cta:focus-visible,.ts31-secondary:focus-visible,.ts31-profile-image a:focus-visible{outline:2px solid #ff6267;outline-offset:4px}
.ts31-expert{background:#fff;padding:50px 0;border-top:1px solid #ddd}.ts31-expert>.container{display:flex;align-items:center;justify-content:space-between;gap:30px}.ts31-expert h2{font-size:clamp(26px,3vw,40px);margin-bottom:12px}.ts31-expert .ts31-cta{flex:none}
/* Equipo: protagonista Harry, perfiles técnicos y equipo de apoyo. */
.ts31-team-hero-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.75fr);gap:65px;align-items:center}
.ts31-team-hero h1{font-size:clamp(44px,5.5vw,74px);line-height:1.06;max-width:800px}.ts31-team-hero h1 em{color:#ff4148;font-style:normal;display:block}
.ts31-team-hero-photo,.ts31-profile-image{position:relative;overflow:hidden;background:#222;border-bottom:4px solid var(--ts31-red)}
.ts31-team-hero-photo{height:420px;max-width:420px;width:100%;justify-self:end}.ts31-team-hero-photo img,.ts31-profile-image img,.ts31-person-photo img{width:100%;height:100%;object-fit:cover;object-position:center 28%;display:block;filter:grayscale(1) brightness(.88);transition:filter .5s,transform .7s}
.ts31-team-hero-photo:hover img,.ts31-profile-image:hover img,.ts31-person:hover img{filter:grayscale(0) brightness(1);transform:scale(1.035)}
.ts31-team-hero-photo>div,.ts31-profile-image>div{position:absolute;inset:auto 0 0;padding:60px 25px 22px;background:linear-gradient(0deg,#08090bf5,transparent);color:#fff;display:flex;flex-direction:column;gap:6px}
.ts31-team-hero-photo>div span,.ts31-profile-image>div span,.ts31-person-copy>span{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#ff5158}.ts31-team-hero-photo strong,.ts31-profile-image strong{font-size:26px;line-height:1.2;color:#fff}.ts31-profile-image a{font-size:13px;color:#eee!important;overflow-wrap:anywhere}
.ts31-profile{padding:82px 0 92px;background:#fff}.ts31-profile-heading{margin-bottom:40px}.ts31-profile-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.25fr);gap:55px;align-items:start}.ts31-profile-image{height:540px}.ts31-profile-copy{min-width:0}.ts31-profile-copy h2{font-size:clamp(32px,4.5vw,59px);line-height:1.05;letter-spacing:-1.7px;font-weight:800;margin:12px 0;color:#18191d}.ts31-role{font-size:15px!important;font-weight:750;color:var(--ts31-red)!important;margin:0 0 16px!important}.ts31-profile-copy>p{font-size:15px;line-height:1.8;color:#57595d;margin:0 0 22px}
.ts31-credentials{display:grid;gap:15px;margin-top:25px}.ts31-credential{border-top:1px solid #dedee0;padding-top:15px}.ts31-credential h3{font-size:18px;line-height:1.3;font-weight:800;color:#202126;margin:0 0 11px}.ts31-credential ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}.ts31-credential li{font-size:14px;line-height:1.65;color:#53545a;padding-left:17px;position:relative}.ts31-credential li:before{content:"";position:absolute;top:.65em;left:0;width:6px;height:6px;background:var(--ts31-red);transform:rotate(45deg)}
.ts31-profile-dark{background:#17181b;color:#fff}.ts31-profile-dark .ts31-profile-heading h2,.ts31-profile-dark .ts31-profile-copy h2,.ts31-profile-dark .ts31-credential h3{color:#fff}.ts31-profile-dark .ts31-profile-heading h2 em,.ts31-profile-dark .ts31-role{color:#ff5158!important}.ts31-profile-dark .ts31-profile-copy>p,.ts31-profile-dark .ts31-credential li{color:#d1d1d3}.ts31-profile-dark .ts31-credential{border-color:#ffffff28}.ts31-profile-dark .ts31-cta{margin-top:24px;width:fit-content}.ts31-profile-dark .ts31-profile-image{height:490px}
.ts31-person{min-width:0;background:#161719;color:#fff;border:1px solid #292a2d;transition:border-color .3s,transform .35s}.ts31-person:hover{transform:translateY(-3px);border-color:#d90008}.ts31-person-photo{height:330px;overflow:hidden}.ts31-person-copy{padding:22px}.ts31-person-copy h3{font-size:26px;font-weight:800;color:#fff;margin:10px 0 8px;line-height:1.13}.ts31-person-copy .ts31-role{color:#ff555b!important}.ts31-person-copy p:last-child{font-size:14px;line-height:1.7;color:#ccc;margin:0}
@media(min-width:1100px){.ts31-page .primary-nav{gap:clamp(10px,1.4vw,20px)!important}.ts31-page .primary-nav a{font-size:12px!important;white-space:nowrap}}
@media(max-width:1020px){.ts31-page .v17-hero-grid{grid-template-columns:minmax(0,1fr) 235px;gap:25px}.ts31-heading{gap:25px}.ts31-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.ts31-team-hero-grid,.ts31-profile-grid{gap:30px}.ts31-profile-image{height:440px}.ts31-team-hero-photo{height:350px}}
@media(max-width:760px){.ts31-page .v17-hero-grid,.ts31-team-hero-grid,.ts31-profile-grid{display:grid;grid-template-columns:1fr;gap:28px}.ts31-page .v17-hero-art.ts31-emblem{width:205px;margin:auto}.ts31-secondary{margin-left:0;display:table}.ts31-section,.ts31-profile{padding:55px 0 62px}.ts31-heading,.ts31-cols-2,.ts31-cols-3{grid-template-columns:1fr;gap:18px}.ts31-heading{margin-bottom:24px}.ts31-card-body{padding:22px}.ts31-expert>.container{flex-direction:column;align-items:flex-start}.ts31-team-hero-photo{justify-self:center;max-width:340px;height:365px}.ts31-profile-image,.ts31-profile-dark .ts31-profile-image{height:390px;max-width:420px;width:100%;margin:auto}.ts31-person-photo{height:360px}.ts31-profile-heading{margin-bottom:26px}.ts31-person-copy h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.ts31-emblem img{animation:none}.ts31-card,.ts31-photo img,.ts31-cta,.ts31-person,.ts31-team-hero-photo img,.ts31-profile-image img,.ts31-person-photo img{transition:none}.ts31-card:hover,.ts31-person:hover,.ts31-cta:hover{transform:none}}

/* Botón opcional del acordeón de equipo en la página principal. */
#equipo .ts31-home-team-link{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;margin-top:24px;padding:15px 22px;background:#d90008;color:#fff!important;font-size:13px;font-weight:750;text-decoration:none;border:1px solid #d90008;transition:background .3s,transform .3s}
#equipo .ts31-home-team-link:hover{background:#b00006;transform:translateY(-2px)}
#equipo .ts31-home-team-link:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(prefers-reduced-motion:reduce){#equipo .ts31-home-team-link{transition:none}#equipo .ts31-home-team-link:hover{transform:none}}
