/*
Theme Name: Cybertron Solutions v8
Theme URI: https://cybertronsolutions.es/
Author: Cybertron Solutions, S.L.
Description: Web comercial accesible de Cybertron Solutions.
Version: 8.1.1
Text Domain: cybertron-solutions-v8
*/

:root {
  --navy: #062838;
  --navy-2: #0a4054;
  --teal: #007b88;
  --teal-dark: #007b88;
  --cyan: #61dce4;
  --ice: #edf8f9;
  --mist: #f6fafb;
  --ink: #102b3a;
  --muted: #516974;
  --line: #cce4e7;
  --white: #fff;
  --success: #09795d;
  --danger: #d94b49;
  --danger-dark: #a92f32;
  --shadow: 0 18px 50px rgba(5, 47, 62, .12);
  --radius: 1.35rem;
  --shell: min(1180px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[id] { scroll-margin-top: 7rem; }
:focus-visible { outline: 3px solid #f7b500; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: .75rem; left: .75rem; transform: translateY(-200%); background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: .5rem; font-weight: 800; }
.skip-link:focus { transform: none; }
.page-shell { width: var(--shell); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(204,228,231,.75); backdrop-filter: blur(16px); }
.nav-shell { width: var(--shell); min-height: 82px; margin-inline: auto; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 1.5rem; transition: min-height .22s ease, grid-template-columns .22s ease; }
.brand { display: block; width: 238px; overflow: hidden; transition: width .22s ease; }
.brand img { width: 238px; max-width: none; object-fit: contain; }
.site-header.is-compact .nav-shell { min-height: 66px; grid-template-columns: 72px 1fr auto; }
.site-header.is-compact .brand { width: 62px; }
.main-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.main-nav a { text-decoration: none; font-size: .94rem; font-weight: 700; color: #244452; }
.main-nav a:hover { color: var(--teal-dark); }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 0; background: none; padding: .7rem; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: var(--navy); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .85rem 1.35rem; border: 2px solid var(--teal); border-radius: .75rem; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 850; box-shadow: 0 9px 22px rgba(0,159,175,.2); transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); }
.button:disabled { border-color: #637983; background: #637983; color: var(--white); box-shadow: none; cursor: not-allowed; transform: none; }
.button-small { min-height: 44px; padding: .55rem 1rem; font-size: .94rem; }
.button-secondary { background: var(--white); color: var(--navy); border-color: var(--white); }
.button-secondary:hover { color: var(--white); }
.text-link { display: inline-flex; gap: .45rem; align-items: center; padding: .75rem .25rem; color: var(--navy); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-image, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-image { background: url("assets/negocio-protegido-v2.png") center / cover no-repeat; }
.hero-overlay { z-index: -1; background: linear-gradient(90deg, rgba(248,252,252,.99) 0%, rgba(248,252,252,.94) 43%, rgba(248,252,252,.28) 70%, rgba(248,252,252,.02) 100%); }
.hero-content { padding-block: 5.6rem 4rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal-dark); font-size: .78rem; line-height: 1.3; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 1.35rem; font-size: clamp(2.8rem, 5.8vw, 5.35rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.15rem, 4vw, 3.7rem); }
h3 { font-size: 1.35rem; }
.hero-lead { max-width: 650px; margin: 0 0 1.5rem; color: #2b4b59; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-proof { max-width: 750px; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.hero-proof li { position: relative; padding-left: 1.45rem; font-weight: 750; }
.hero-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }

.risk-strip { background: var(--navy); color: var(--white); }
.risk-grid { display: grid; grid-template-columns: 1.2fr .72fr .72fr; align-items: center; gap: 1rem 2rem; padding-block: 1.6rem; }
.risk-intro { margin: 0; font-size: 1.15rem; font-weight: 750; }
.risk-grid div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; }
.risk-grid strong { color: #ff7773; font-size: 1.55rem; line-height: 1; }
.risk-grid span { color: #d3e9ed; font-size: .83rem; line-height: 1.35; }
.risk-source { grid-column: 2 / -1; justify-self: end; color: #b8dce2; font-size: .74rem; text-underline-offset: 3px; }

.section { padding-block: clamp(4.6rem, 8vw, 7.6rem); }
.section-light { background: var(--mist); }
.section-dark { color: var(--white); background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--cyan); }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2.2rem, 6vw, 5.5rem); align-items: center; }
.section-lead, .section-heading > p:not(.eyebrow), .technical-intro > p:not(.eyebrow) { max-width: 730px; color: var(--muted); font-size: 1.12rem; }
.section-heading { max-width: 820px; margin-bottom: 3rem; }
.check-list { display: grid; gap: .85rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-size: 1.2rem; font-weight: 900; }
.media-frame { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.media-frame img { aspect-ratio: 16 / 8.3; object-fit: cover; }
.media-frame figcaption { padding: 1rem 1.2rem; color: var(--muted); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { min-height: 285px; padding: 1.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.steps .step-accent { color: var(--white); background: var(--navy); border-color: var(--navy); transform: translateY(-.75rem); box-shadow: var(--shadow); }
.steps .step-accent h3 { color: var(--white); }
.step-number { display: block; margin-bottom: 2.2rem; color: var(--teal-dark); font-weight: 900; letter-spacing: .08em; }
.step-accent .step-number { color: var(--cyan); }
.steps p { color: var(--muted); }
.step-accent p { color: #d3e9ed; }
.plain-note { margin: 2rem 0 0; color: var(--success); text-align: center; }

.benefit-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 2rem; align-items: start; }
.benefit-lead p:last-child { color: #c5dce1; }
.benefit-grid article { padding-top: .6rem; border-top: 2px solid rgba(97,220,228,.65); }
.benefit-grid article span { color: var(--cyan); font-weight: 900; }
.benefit-grid article h3 { margin: 1.25rem 0 .75rem; }
.benefit-grid article p { margin: 0; color: #c5dce1; }

.technical-section { background: linear-gradient(180deg, #fff 0%, #eef9fa 100%); }
.technical-shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.technical-intro { position: sticky; top: 120px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem .25rem; color: var(--navy); font-size: 1.08rem; font-weight: 850; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { color: var(--teal-dark); font-size: 1.6rem; font-weight: 400; transition: transform .2s ease; }
.accordion details[open] summary span { transform: rotate(45deg); }
.details-body { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
.details-body p { margin: 0; }

.price-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.price-layout h2 { margin-bottom: 0; color: var(--teal-dark); }
.price-tax { margin-top: .15rem; color: var(--success); font-weight: 850; }
.included-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.included-list li { display: flex; justify-content: space-between; gap: 2rem; padding: 1rem .1rem; border-bottom: 1px solid var(--line); }
.included-list strong { color: var(--success); }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.support-section { padding-bottom: 0; color: var(--white); background: var(--teal-dark); }
.support-section h2, .support-section .eyebrow { color: var(--white); }
.support-section .section-lead { color: #dff5f6; }
.support-split { overflow: hidden; }
.support-split > div { padding-bottom: 5.5rem; }
.support-image { align-self: end; width: 100%; max-height: 520px; object-fit: cover; object-position: center; border-radius: var(--radius) var(--radius) 0 0; }

.conversion { padding-block: 4.5rem; color: var(--white); background: #041c27; }
.conversion h2 { color: var(--white); }
.conversion .eyebrow { color: var(--cyan); }
.conversion-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.conversion-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.light-link { color: var(--white); }
.conversion-actions small { color: #9fc0c8; }

.accessibility-summary { padding-block: 2.25rem; border-bottom: 1px solid var(--line); background: var(--ice); }
.accessibility-summary h2 { margin-bottom: .55rem; font-size: 1.5rem; }
.accessibility-summary p { max-width: 850px; margin: 0; }
.accessibility-summary a { color: var(--teal-dark); font-weight: 750; text-underline-offset: 3px; }
.accessibility-summary a, .conversion-actions small { overflow-wrap: anywhere; }
.site-footer { padding-top: 4rem; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, .7fr); gap: 2.5rem; }
.footer-brand img { width: 210px; }
.footer-brand p { max-width: 330px; color: var(--muted); }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid strong { margin-bottom: .45rem; color: var(--navy); }
.footer-grid a, .footer-grid span { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

.legal-header { border-bottom: 1px solid var(--line); background: var(--white); }
.legal-header .nav-shell { grid-template-columns: 260px 1fr; }
.legal-home-link { justify-self: end; color: var(--navy); font-weight: 800; text-underline-offset: 4px; }
.legal-main { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--mist); }
.legal-article { max-width: 900px; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.legal-article > h1 { max-width: none; font-size: clamp(2.35rem, 5vw, 4.25rem); }
.legal-meta { margin: -.5rem 0 2.25rem; color: var(--muted); }
.legal-copy h2 { margin-top: 2.5rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.02em; }
.legal-copy h3 { margin-top: 1.75rem; font-size: 1.15rem; letter-spacing: -.01em; }
.legal-copy p, .legal-copy li { color: #2c4855; }
.legal-copy a { color: var(--teal-dark); font-weight: 750; overflow-wrap: anywhere; }
.legal-copy table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .94rem; }
.legal-copy th, .legal-copy td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-copy th { color: var(--navy); background: var(--ice); }
.legal-copy .legal-note { padding: 1rem 1.15rem; border-left: 5px solid var(--teal); background: var(--ice); }

.insight-toast { position: fixed; z-index: 200; right: 1.5rem; bottom: 1.5rem; width: min(510px, calc(100% - 3rem)); padding: 1.65rem 3.5rem 1.45rem 1.65rem; border: 1px solid #e9a6a4; border-left: 9px solid var(--danger); border-radius: 1.15rem; background: linear-gradient(135deg, #fff 0%, #fff7f6 100%); box-shadow: 0 24px 70px rgba(91,20,24,.24); text-transform: uppercase; }
.insight-toast[hidden] { display: none; }
.toast-close { position: absolute; top: .75rem; right: .9rem; border: 0; background: transparent; color: var(--danger-dark); font-size: 1.9rem; cursor: pointer; }
.toast-label { margin: 0 0 .65rem; color: var(--danger-dark); font-size: .78rem; line-height: 1.3; font-weight: 950; letter-spacing: .13em; }
.toast-headline { margin: 0 0 .55rem; color: var(--danger-dark); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.08; font-weight: 950; letter-spacing: -.02em; }
.toast-copy { margin: 0 0 1rem; color: #542f31; font-size: .92rem; line-height: 1.45; font-weight: 750; }
.toast-trend { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: .38rem; min-height: 86px; margin: .15rem 0 1rem; padding: .65rem .65rem .4rem; border: 1px solid #edc7c5; border-radius: .75rem; background: rgba(255,255,255,.72); }
.toast-trend[hidden] { display: none; }
.trend-year { display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: .18rem; height: 70px; color: var(--danger-dark); font-size: .59rem; font-weight: 900; text-align: center; }
.trend-bar { width: 100%; min-height: 8px; border-radius: .25rem .25rem .08rem .08rem; background: linear-gradient(180deg, #e3403a, #8f1f24); box-shadow: 0 3px 8px rgba(143,31,36,.18); }
.trend-value { font-size: .55rem; letter-spacing: -.02em; }
.toast-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 1px solid #edc7c5; }
.toast-counter { color: var(--danger-dark); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.insight-toast a { color: var(--danger-dark); font-size: .82rem; font-weight: 900; }
.toast-pause { min-width: 44px; min-height: 44px; padding: .35rem .55rem; border: 2px solid var(--danger-dark); border-radius: .5rem; background: var(--white); color: var(--danger-dark); font-size: .78rem; font-weight: 900; cursor: pointer; }

@media (forced-colors: active) {
  .button, .toast-pause { border: 2px solid ButtonText; }
}

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto auto; min-height: 72px; }
  .brand img { width: 205px; }
  .brand { width: 205px; }
  .site-header.is-compact .nav-shell { grid-template-columns: 72px auto auto; }
  .menu-button { display: block; grid-column: 2; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { padding: .65rem; }
  .header-cta { grid-column: 3; }
  .hero { min-height: 660px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(248,252,252,.99) 0%, rgba(248,252,252,.95) 55%, rgba(248,252,252,.55) 100%); }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .risk-intro { grid-column: 1 / -1; }
  .risk-source { grid-column: 1 / -1; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step-accent { transform: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-lead { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 1.4rem, 1180px); }
  .header-cta { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .site-header.is-compact .nav-shell { grid-template-columns: 1fr auto; }
  .site-header.is-compact .brand { width: 56px; }
  .hero { min-height: 720px; align-items: end; }
  .hero-image { background-position: 64% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(248,252,252,.56) 0%, rgba(248,252,252,.95) 45%, rgba(248,252,252,1) 72%); }
  .hero-content { padding-block: 12rem 2.5rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-proof { display: grid; }
  .risk-grid, .split, .technical-shell, .price-layout, .faq-layout, .conversion-inner, .footer-grid { grid-template-columns: 1fr; }
  .risk-grid div { grid-template-columns: 110px 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .step-number { margin-bottom: 1rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-lead { grid-column: auto; }
  .technical-intro { position: static; }
  .media-frame { order: -1; }
  .support-split > div { padding-bottom: 1rem; }
  .support-image { max-height: 360px; }
  .footer-bottom { flex-direction: column; }
  .insight-toast { right: .7rem; bottom: .7rem; width: calc(100% - 1.4rem); padding: 1.25rem 2.9rem 1.15rem 1.15rem; border-left-width: 7px; }
  .toast-headline { font-size: 1.25rem; }
  .toast-trend { gap: .22rem; padding-inline: .4rem; }
  .trend-value { font-size: .49rem; }
  .toast-footer { align-items: flex-start; flex-wrap: wrap; }
  .legal-header .nav-shell { grid-template-columns: 1fr auto; }
  .legal-copy { overflow-wrap: anywhere; }
  .legal-copy table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
