/* reglas heredadas de v13 que se conservan (.story, .svc, .modal) */

.story{ position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 360px; padding: 24px; border-radius: 6px; color: #fff; background: #0b0d11; grid-column: span 2; }
.story.wide{ grid-column: span 4; min-height: 420px; }
.story img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story.photo::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,0) 25%, rgba(8,10,14,.93) 100%); }
.story > *{ position: relative; z-index: 2; }
.story > img,.story > .trio-imgs{ position: absolute; z-index: 0; }
.story.photo::after{ z-index: 1; }
.story.solid{ background: var(--accent); color: var(--accent-ink); }
.story.ink{ background: var(--fg); color: var(--bg); }
.trio-imgs{ position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.trio-imgs img{ position: static; width: 100%; height: 100%; object-fit: cover; }
.story .tag{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: none; opacity: .8; }
.story h3{ margin: 0; font-family: var(--font-display); font-stretch: 118%; font-weight: 880; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.04; letter-spacing: -.03em; }
.story .num{ font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(54px, 7vw, 92px); line-height: .9; letter-spacing: -.05em; margin-bottom: auto; }
.story p{ margin: 0; font-size: 15.5px; line-height: 1.5; max-width: 46ch; opacity: .92; }
.story .chip{ align-self: flex-start; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; opacity: .9; }
.story .links{ display: flex; flex-wrap: wrap; gap: 8px; }
.story .links a:hover{ filter: brightness(.9); }
.story .links a{ font-family: var(--font-body); font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: 999px; background: #fff; color: #0D1117; text-decoration: none; }
.story.solid .links a{ background: var(--accent-ink); color: var(--accent); }
.modal{ position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(5,7,10,.88); padding: 16px; }
.modal.open{ display: flex; }
.modal video{ max-height: 90vh; max-width: 100%; width: auto; height: auto; border-radius: 8px; background: #000; }
.modal button{ position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0D1117; font-size: 20px; cursor: pointer; }
.svc.wide{ grid-column: 1 / -1; min-height: 260px; }
.c-grad{ background: linear-gradient(135deg, var(--accent) 0%, #1a1f6b 120%); color: var(--accent-ink); }
.i5 .sp{ transform-box: fill-box; transform-origin: center; }
.svc:hover .i5 .sp{ animation: pulse .9s ease-in-out infinite; }
@media (max-width: 900px){.story,.story.wide{ grid-column: auto; min-height: 340px; }}
.svc-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc{ position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 340px; padding: clamp(22px, 3vw, 34px); border-radius: 10px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; isolation: isolate; }
.svc:hover{ transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(13,17,23,.5); }
.svc-top{ display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.svc-n{ font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(52px, 6vw, 80px); line-height: .9; letter-spacing: -.05em; }
.svc h3{ margin: 12px 0 0; font-family: var(--font-display); font-stretch: 116%; font-weight: 860; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.04; letter-spacing: -.035em; }
.svc p{ margin: 0; max-width: 40ch; opacity: .88; }
.chips{ display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li{ font-family: var(--font-body); font-size: 15px; font-weight: 500; opacity: .9; }
.chips li:not(:last-child)::after{ content: "·"; margin-inline: 10px; opacity: .6; }
.c-ink{ background: var(--fg); color: var(--bg); }
.c-line{ background: transparent; color: var(--fg); border: 2px solid var(--fg); }
.c-white{ background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.ico{ width: 64px; height: 64px; flex: none; overflow: visible; }
.i1 .ph{ transition: transform .9s cubic-bezier(.5,0,.2,1); }
.svc:hover .i1 .ph{ transform: translateX(26px); }
.i1 rect{ transition: transform .6s ease; transform-box: fill-box; }
.svc:hover .i1 rect:nth-of-type(1){ transform: translateX(8px); }
.svc:hover .i1 rect:nth-of-type(3){ transform: translateX(-6px); }
.i2 .ap{ transform-origin: 32px 32px; transition: transform .9s ease; }
.i2 circle:nth-of-type(2){ transform-box: fill-box; transform-origin: center; transition: transform .6s ease; }
.svc:hover .i2 .ap{ transform: rotate(60deg); }
.svc:hover .i2 circle:nth-of-type(2){ transform: scale(1.7); }
.i3 .d{ opacity: .2; transition: opacity .3s ease; }
.svc:hover .i3 .d{ opacity: 1; }
.svc:hover .i3 .d:nth-child(2){ transition-delay: .12s; }
.svc:hover .i3 .d:nth-child(3){ transition-delay: .24s; }
.svc:hover .i3 .d:nth-child(4){ transition-delay: .36s; }
.svc:hover .i3 .d:nth-child(5){ transition-delay: .48s; }
.svc:hover .i3 .d:nth-child(6){ transition-delay: .6s; }
.i4{ transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.svc:hover .i4{ transform: rotate(-12deg) scale(1.06); }
.i5 .sp{ transform-box: fill-box; transform-origin: center; }
.svc:hover .i5 .sp{ animation: twinkle 1s ease-in-out infinite; }
@keyframes twinkle{ 50% { transform: scale(1.18) rotate(18deg); opacity: .75; } }
@media (max-width: 900px){.svc-grid{ grid-template-columns: minmax(0, 1fr); }
.svc{ min-height: 280px; }}
@media (prefers-reduced-motion: reduce){.svc{ transition: none; }}
@media (max-width: 520px){.svc-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc{ min-height: 0; padding: 14px; gap: 8px; }
.svc.wide{ grid-column: 1 / -1; }
.svc-n{ font-size: 34px; }
.svc .ico{ width: 34px; height: 34px; }
.svc h3{ font-size: 17px; margin-top: 6px; }
.svc p{ font-size: 13px; line-height: 1.4; }
.svc:not(.wide) .chips{ display: none; }
.svc.wide .chips li{ font-size: 13px; }}
.story > video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.skip{position:absolute;left:-9999px;top:8px;z-index:10000;background:#fff;color:#000;padding:10px 16px;border-radius:8px;font:600 14px/1 var(--font-body,sans-serif)}
.skip:focus{left:12px;outline:3px solid #2230F5}
main:focus{outline:none}