@font-face {
  font-family: "Source Sans";
  src: url("source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --ink: #eeeef0;
  --muted: #aaaab3;
  --red: #ff3348;
  --line: #ffffff1c;
  --display: Arial, Helvetica, sans-serif;
  --pad: clamp(22px, 5.7vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.45 "Source Sans", Arial, sans-serif; background: var(--bg); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #ff8190; outline-offset: 4px; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1, h2 { letter-spacing: -.075em; }
h2 { font-size: clamp(32px, 4.85vw, 62px); line-height: 1.08; }
h2 span, .gallery h1 span { color: #b6b6ba; }
em { color: var(--red); font-style: normal; }

.wrap { width: min(calc(100% - 2 * var(--pad)), 1260px); margin-inline: auto; }
.section { padding-block: clamp(58px, 8vw, 112px); }
.eyebrow, .tile-label { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; line-height: 1.3; }
.eyebrow { margin-bottom: 18px; color: #ff7380; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { z-index: 2; top: 12px; left: 12px; width: auto; height: auto; clip-path: none; padding: 10px; background: var(--bg); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; font: 800 21px/1 var(--display); letter-spacing: -.06em; }
.brand span, .brand-dot { color: var(--red); }
.brand small { margin-left: 8px; font: 700 9px/1 "Source Sans", sans-serif; letter-spacing: .22em; color: #c3c3ca; }
nav { display: flex; gap: clamp(16px, 3vw, 34px); color: #d0d0d8; font-size: 13px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, .footer a:hover { color: var(--red); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 9px 17px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s; }
.primary { background: #e81d36; color: #fff; }
.primary:hover { background: #bf142a; }
.outline { border-color: #ffffff3b; }
.outline:hover { background: #ffffff10; border-color: #ffffff8a; }
.header-cta { font-size: 12px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(76px, 13vw, 124px) 0 clamp(72px, 12.5vw, 120px);
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 34px, #ffffff04 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, #ffffff04 34px 35px),
    radial-gradient(ellipse at 90% 22%, #311018 0, #100d10 53%, var(--bg) 78%);
}
.hero::before { content: ""; position: absolute; z-index: -1; width: clamp(295px, 43vw, 640px); aspect-ratio: 1; right: clamp(-175px, -8vw, -55px); top: 6%; border-radius: 50%; background: #0b0c0e99; border: 1px solid #ff334812; box-shadow: 0 0 0 28px #ff334804, 0 0 0 65px #ff334803, 0 0 90px #ff334815; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #ff33487e, transparent); }
.hero-label { margin-bottom: 30px; }
.hero-label::before { content: ""; display: inline-block; background: var(--red); width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }
.hero h1 { font-size: clamp(49px, 8.4vw, 105px); line-height: 1.03; max-width: 1040px; }
.lead { margin-top: 25px; color: var(--muted); font-size: clamp(17px, 2.3vw, 23px); line-height: 1.37; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.stats { margin-top: clamp(46px, 8.5vw, 80px); border-top: 1px solid #ffffff25; padding-top: 24px; display: flex; gap: clamp(16px, 5vw, 85px); }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt { font-size: 10px; color: #b4b4be; letter-spacing: .19em; text-transform: uppercase; }
.stats dd { font: 800 clamp(21px, 3.65vw, 43px)/1.13 var(--display); letter-spacing: -.045em; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-heading p, .gallery-lead { color: var(--muted); margin-top: 12px; }
.section-arrow { color: #ff707b; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 31px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, #22252e, #14161b 74%); transition: transform .22s, border-color .22s, box-shadow .22s; }
.tile:hover, .tile:focus-within { border-color: #ff69747a; box-shadow: 0 12px 35px #0005; transform: translateY(-3px); }
.tile-link { min-height: 232px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; position: relative; padding: clamp(20px, 3.2vw, 36px); border-radius: inherit; }
.tile-label { color: #c4c4cd; }
.tile-arrow { position: absolute; right: clamp(20px, 3vw, 36px); top: clamp(17px, 3vw, 30px); color: #c9c9d0; font-size: 19px; transition: color .2s, transform .2s; }
.tile:hover .tile-arrow { color: var(--red); transform: translate(2px, -2px); }
.tile-art { margin-block: 12px; }
.tile-copy h3 { font-size: clamp(24px, 3.45vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.tile-copy p { margin-top: 7px; color: #b5b5c0; line-height: 1.35; }
.tile-dakoku { grid-column: 1 / -1; background: radial-gradient(circle at 80% 50%, #3b1820, transparent 55%), linear-gradient(120deg, #141519, #1b1d24 60%, #24191e); }
.tile-dakoku .tile-link { min-height: clamp(255px, 34vw, 400px); }
.tile-dakoku .tile-copy h3 { font-size: clamp(37px, 6.1vw, 81px); }
.tile-dakoku .tile-art { position: absolute; right: clamp(20px, 3.8vw, 48px); bottom: clamp(20px, 3.8vw, 48px); margin: 0; }
.clock { width: clamp(168px, 27vw, 315px); padding: 12px; border: 1px solid #ffffff24; border-radius: 10px; background: #191b20; box-shadow: 0 17px 27px #0004; }
.clock small { display: block; text-transform: uppercase; letter-spacing: .05em; color: #ceced7; font-size: 9px; }
.clock strong { display: block; font-size: clamp(25px, 4.3vw, 49px); font-variant-numeric: tabular-nums; line-height: 1.25; margin: 8px 0; }
.progress, .clock-lines { display: block; height: 8px; border-radius: 10px; }
.progress { background: linear-gradient(90deg, #f12945 78%, #44444c 78%); }
.clock-lines { margin-top: 11px; background: linear-gradient(90deg,#62626e 78%, transparent 78% 82%, #42424b 82%); }
.window-dots { display: none; background: #ff4958; width: 8px; height: 8px; border-radius: 50%; box-shadow: 12px 0 #555863, 24px 0 #555863; margin-bottom: 10px; }
.bars { display: flex; align-items: end; gap: 4px; height: 56px; }
.bars i { background: #a1383e; display: block; width: clamp(14px, 2.65vw, 30px); height: 43%; border-radius: 4px 4px 0 0; }
.bars i:nth-child(2) { background:#ff4653; height: 86%; }
.bars i:nth-child(3) { background:#777782; height: 64%; }
.bars i:nth-child(4) { background:#484953; height: 100%; }
.tile-seofin { background: linear-gradient(130deg, #102d30, #12171b); }
.tile-seofin .tile-art { align-self: center; }
.chart { display: block; width: clamp(112px, 21vw, 250px); color: #ff4355; }
.tile-seguridad { background: radial-gradient(ellipse at 79% 76%, #5e1926, #171417 73%); }
.shield { display: block; width: clamp(39px, 7vw, 78px); color: #ff5c6b; }
.tile-ia { background: radial-gradient(ellipse at 49% 64%, #2c2240, #181523 78%); }
.ai-mark { color: #d6c7ff; font: 900 clamp(45px, 12.5vw, 130px)/.92 var(--display); letter-spacing: -.13em; padding-right: .15em; }
.ai-mark span { color: var(--red); }
.home .tile-seguridad, .home .tile-ia { grid-column: 1 / -1; }
.home :is(.tile-seguridad, .tile-ia) .tile-link { min-height: clamp(190px, 27vw, 300px); }
.home :is(.tile-seguridad, .tile-ia) .tile-art { position: absolute; right: clamp(20px, 4vw, 52px); bottom: 15%; margin: 0; }
.home :is(.tile-seguridad, .tile-ia) .tile-copy { max-width: 78%; }
.home :is(.tile-seguridad, .tile-ia) h3 { font-size: clamp(26px, 4vw, 54px); }

.services { background: #141519; }
.service-list { margin-top: 26px; }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list a { position: relative; display: grid; gap: 2px; padding: 16px 36px 16px 0; }
.service-list strong { font-size: clamp(17px, 2.1vw, 25px); }
.service-list small { color: var(--muted); font-size: 14px; }
.service-list span { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #ff7280; font-size: 22px; }
.service-list a:hover strong { color: #ff7280; }
.about { background: radial-gradient(ellipse at 95% 75%, #311217, var(--bg) 78%); }
.about h2, .contact h2 { font-size: clamp(38px, 6vw, 79px); }
.about p:not(.eyebrow), .contact p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 2.15vw, 20px); }
.about p:not(.eyebrow) { max-width: 47ch; }
.contact { text-align: center; background: #1b1319; }
.contact .button { margin-top: 26px; }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer a:not(.brand) { font-size: 14px; color: var(--muted); }

.showcase { background: radial-gradient(ellipse at 95% 2%, #211016, transparent 58%), var(--bg); }
.show-header .header-inner { min-height: clamp(95px, 15vw, 155px); }
.show-header .header-inner > span { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .15em; }
.gallery { padding-top: clamp(18px, 4vw, 45px); padding-bottom: clamp(55px, 8vw, 95px); }
.gallery h1 { font-size: clamp(44px, 8vw, 100px); line-height: 1; }
.gallery-lead { max-width: 62ch; margin-top: 22px; font-size: clamp(16px, 2vw, 20px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filters button { cursor: pointer; min-height: 40px; color: var(--ink); border-radius: 24px; padding: 6px 13px; border: 1px solid #ffffff32; background: transparent; font-size: 14px; }
.filters button:hover { border-color: #ff6777; }
.filters button[aria-pressed="true"] { background: #e81d36; border-color: #e81d36; color: #fff; }
.gallery .tiles { margin-top: 20px; }
.showcase .tile-link { min-height: clamp(214px, 29vw, 350px); }
.showcase .tile-dakoku .tile-link { min-height: clamp(260px, 35vw, 400px); }
.showcase .tile-dakoku { background: radial-gradient(ellipse at 76% 32%, #4a1b26, transparent 33%), linear-gradient(120deg, #1b1f28, #0c0d0f); }
.showcase .tile-dakoku h3 { font-size: clamp(29px, 4vw, 50px); }
.showcase .clock { background: #101216; }
.showcase .window-dots { display: block; }
.showcase .ai-mark { font-size: clamp(45px, 6.5vw, 83px); }
.showcase .tile-seguridad { background: radial-gradient(circle at 60% 56%, #591929, #161317 72%); }
.showcase .tile-ia { background: radial-gradient(circle at 64% 48%, #343254, #16151c 75%); }

.project-details:not([hidden]) { display: grid; gap: 16px; margin-block: 24px; }
.project-detail, dialog { border: 1px solid #ffffff30; border-radius: 14px; background: #17191f; color: var(--ink); padding: clamp(24px, 5vw, 48px); }
.project-detail h2, .dialog-content h2 { font-size: clamp(30px, 5vw, 58px); }
.project-detail p:not(.eyebrow), .dialog-content p:not(.eyebrow) { margin: 16px 0 25px; color: #bbbbc4; font-size: 18px; }
dialog { position: fixed; width: min(560px, calc(100% - 36px)); padding-top: 52px; max-height: calc(100% - 36px); }
dialog::backdrop { background: #08080bd9; backdrop-filter: blur(6px); }
.close { position: absolute; right: 10px; top: 10px; min-width: 42px; min-height: 42px; border: 1px solid #ffffff30; border-radius: 50%; background: transparent; color: var(--ink); font-size: 25px; cursor: pointer; }

@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-block: 10px 2px; }
  .site-header nav { order: 2; width: 100%; gap: 26px; }
  .site-header .button { min-height: 38px; }
  .hero { padding-block: 64px; }
  .hero::before { right: -168px; opacity: .58; }
  .hero-break { display: none; }
  .hero h1 { font-size: clamp(44px, 10.8vw, 65px); }
  .stats { justify-content: space-between; gap: 9px; }
  .stats dt { font-size: 9px; letter-spacing: .1em; }
  .tile-link { padding: 16px; min-height: 202px; }
  .tile-label { letter-spacing: .12em; font-size: 10px; }
  .tile-arrow { right: 14px; top: 12px; }
  .tile-copy h3 { font-size: clamp(19px, 4.8vw, 27px); }
  .tile-copy p { font-size: 14px; }
  .tile-dakoku .tile-link, .showcase .tile-dakoku .tile-link { min-height: 0; gap: 18px; }
  .tile-dakoku .tile-art { position: static; align-self: flex-end; margin-right: 0; }
  .clock { width: min(100%, 195px); min-width: 156px; }
  .home :is(.tile-seguridad, .tile-ia) .tile-art { right: 15px; }
  .show-header .header-inner { min-height: 80px; }
  .showcase .tile-link { min-height: 200px; }
}
@media (max-width: 350px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .gallery h1 { font-size: 39px; }
  .home :is(.tile-seguridad, .tile-ia) .tile-copy { max-width: 100%; }
  .home :is(.tile-seguridad, .tile-ia) .tile-art { bottom: auto; top: 50px; }
  .home :is(.tile-seguridad, .tile-ia) h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.footer .wrap { padding-block: 18px; flex-wrap: wrap; }
.footer .legal-nav { flex: 1 1 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; border-top: 1px solid var(--line); padding-top: 4px; }
.footer .legal-nav a { min-height: 44px; }
.footer a:not(.brand):hover { color: #ff8190; }
.legal-page { max-width: 940px; padding-block: clamp(36px, 7vw, 90px); }
.legal-page .breadcrumbs { align-items: center; flex-wrap: wrap; gap: 0 10px; margin-bottom: 16px; }
.legal-page .section-kicker { color: #ff7380; margin-bottom: 10px; }
.legal-page h1 { font-size: clamp(37px, 7vw, 76px); line-height: 1.07; }
.legal-page .legal-meta { color: var(--muted); margin-top: 12px; }
.legal-page .legal { margin-top: 30px; color: #d0d0d8; overflow-wrap: anywhere; }
.legal-page .legal h2 { color: var(--ink); margin: 29px 0 10px; font-size: clamp(23px, 3.2vw, 34px); letter-spacing: -.045em; }
.legal-page .legal h3 { color: var(--ink); margin: 20px 0 9px; font-size: clamp(18px, 2.6vw, 25px); }
.legal-page .legal p, .legal-page .legal ul { margin-block: 10px; }
.legal-page .legal ul { list-style: disc; padding-left: 22px; }
.legal-page .legal li + li { margin-top: 5px; }
.legal-page .legal a, .legal-page .breadcrumbs a { color: #ff9ba7; text-decoration: underline; text-underline-offset: 3px; }
.legal-page .legal-preview { margin-top: 22px; border-left: 3px solid var(--red); padding: 12px 15px; background: #1b1d23; color: #d8d8df; }

.tile-mail { background: radial-gradient(ellipse at 72% 42%, #28344a, #171a22 78%); }
.tile-panel { background: radial-gradient(ellipse at 65% 54%, #412331, #1b171e 78%); }
.app-mark { display: block; width: clamp(48px, 8vw, 90px); color: #ff7482; }

/* rnova-mejoras-2026-11 */
.pendiente { margin-top: 28px; padding: 14px 18px; border: 1px dashed #ffb02e; border-radius: 10px; color: #ffd38a; background: #ffb02e12; font-size: 15px; }
.partner-intro { max-width: 720px; margin-top: 22px; color: var(--muted); font-size: 18px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.partner-grid a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, #1d2027, #131519 74%); transition: border-color .2s, transform .2s; }
.partner-grid a:hover { border-color: #ff334880; transform: translateY(-2px); }
.partner-grid h3 { font-size: 22px; letter-spacing: -.03em; }
.partner-grid p { color: var(--muted); flex: 1; }
.partner-n { color: #ff7380; font-size: 12px; letter-spacing: .2em; }
.partner-more { color: var(--ink); font-weight: 600; font-size: 14px; }
.origin-steps, .method-steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 40px; counter-reset: paso; }
.origin-steps li, .method-steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); counter-increment: paso; }
.origin-steps li::before, .method-steps li::before { content: counter(paso, decimal-leading-zero); color: var(--red); font: 700 26px var(--display); }
.origin-steps strong, .method-steps strong { font-size: 18px; }
.origin-steps span, .method-steps span { color: var(--muted); }
.origin { background: #101114; }
.secure-layout, .about-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 70px); align-items: start; }
.secure-layout p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.check-list { display: grid; gap: 10px; margin: 18px 0 28px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.about-layout p:not(.eyebrow) { margin-top: 16px; }
.award { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.award img { flex: none; width: 72px; height: 72px; object-fit: contain; }
.award p { margin: 0 !important; font-size: 15px; }
.office { margin: 0; }
.office img { width: 100%; height: auto; border-radius: 13px; display: block; }
.clients { margin-top: clamp(40px, 6vw, 80px); }
.client-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.client-logos li { display: grid; place-items: center; aspect-ratio: 1; padding: 12px; border-radius: 10px; background: #f4f4f2; }
.client-logos img { max-width: 100%; height: auto; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 12px; color: var(--muted); max-width: 780px; }
.contact-data { display: grid; gap: 12px; margin-top: 22px; }
.contact-data li { display: block; }
.contact-data span { display: block; margin-bottom: 2px; color: #ff7380; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.contact-data a { text-decoration: underline; text-underline-offset: 3px; }
.tile-nube { grid-column: 1 / -1; background: radial-gradient(ellipse at 70% 45%, #1f3a3a, #151a1c 78%); }
.footer-contact { flex-basis: 100%; margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }

.infra-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 22px; }
.infra-note p { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.infra-note strong { color: var(--ink); }
.infra-note a { color: #ff7380; font-weight: 600; }
.cases { margin-top: 26px; }
.cases ul { display: grid; gap: 10px; margin-top: 12px; }
.cases li { display: grid; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--red); background: #ffffff08; border-radius: 0 10px 10px 0; }
.cases li span { color: var(--muted); font-size: 15px; }
.nube-precio { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.nube-precio strong { color: var(--ink); }
