/*
Theme Name: Contanext Corporativo
Author: Contanext
Description: Tema corporativo para servicios contables, auditoría, finanzas y consultoría.
Version: 1.0.0
Text Domain: contanext
*/

:root {
  --cx-blue: #075f91;
  --cx-navy: #073957;
  --cx-cyan: #26afd2;
  --cx-sky: #eaf7fb;
  --cx-ink: #223946;
  --cx-muted: #657985;
  --cx-line: #d9e6eb;
  --cx-white: #fff;
  --cx-shadow: 0 16px 45px rgba(4, 48, 72, .11);
  --cx-serif: Georgia, "Times New Roman", serif;
  --cx-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cx-ink); background: #fff; font: 16px/1.7 var(--cx-sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.cx-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.cx-topbar { color: #d8edf5; background: var(--cx-navy); font-size: .82rem; }
.cx-topbar .cx-wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cx-topbar p { margin: 0; }
.cx-topbar a { color: #fff; text-decoration: none; }
.cx-header { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid rgba(7,57,87,.08); }
.cx-nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cx-brand img { display: block; width: 255px; max-height: 74px; object-fit: contain; object-position: left center; }
.cx-menu { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.cx-menu a { color: var(--cx-navy); text-decoration: none; font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cx-menu a:hover, .cx-menu .current-menu-item > a { color: var(--cx-cyan); }
.cx-menu-cta { padding: 12px 18px; color: #fff !important; background: var(--cx-blue); }
.cx-menu-toggle { display: none; padding: 8px; border: 0; color: var(--cx-navy); background: transparent; font-size: 1.7rem; }

.cx-hero { position: relative; overflow: hidden; min-height: 610px; display: grid; align-items: center; color: #fff; background: linear-gradient(112deg, rgba(4,45,69,.97) 0 54%, rgba(7,95,145,.90) 54% 100%); }
.cx-hero::before { content: ""; position: absolute; inset: 0 0 0 48%; opacity: .36; background: repeating-linear-gradient(135deg, transparent 0 30px, rgba(255,255,255,.08) 30px 31px); transform: skewX(-9deg); }
.cx-hero::after { content: ""; position: absolute; right: -130px; top: 58px; width: 500px; height: 500px; border: 85px solid rgba(38,175,210,.22); border-radius: 50%; }
.cx-hero .cx-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .75fr; gap: 90px; align-items: center; padding-block: 92px; }
.cx-overline { margin: 0 0 14px; color: var(--cx-cyan); font-size: .77rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.cx-hero h1 { max-width: 720px; margin: 0 0 22px; color: #fff; font: 700 clamp(3rem, 5.4vw, 5rem)/1.03 var(--cx-serif); letter-spacing: -.035em; }
.cx-hero-lead { max-width: 680px; margin: 0 0 34px; color: #d9eaf1; font-size: 1.12rem; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cx-button { display: inline-block; padding: 14px 24px; color: #fff !important; background: var(--cx-cyan); border: 2px solid var(--cx-cyan); text-decoration: none; font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; transition: .2s ease; }
.cx-button:hover { transform: translateY(-2px); background: #1599bb; border-color: #1599bb; }
.cx-button-outline { color: #fff !important; background: transparent; border-color: rgba(255,255,255,.55); }
.cx-hero-card { position: relative; padding: 35px; background: rgba(255,255,255,.96); color: var(--cx-ink); box-shadow: var(--cx-shadow); }
.cx-hero-card::before { content: ""; position: absolute; top: 0; left: 0; width: 90px; height: 6px; background: var(--cx-cyan); }
.cx-hero-card h2 { margin: 5px 0 10px; color: var(--cx-navy); font: 700 2rem/1.15 var(--cx-serif); }
.cx-hero-card p { color: var(--cx-muted); }
.cx-chart { height: 120px; display: flex; align-items: end; gap: 12px; padding: 20px 0 0; border-bottom: 1px solid var(--cx-line); }
.cx-chart span { flex: 1; background: linear-gradient(var(--cx-cyan), var(--cx-blue)); }
.cx-chart span:nth-child(1) { height: 35%; }.cx-chart span:nth-child(2) { height: 52%; }.cx-chart span:nth-child(3) { height: 68%; }.cx-chart span:nth-child(4) { height: 88%; }

.cx-section { padding-block: 88px; }
.cx-section-soft { background: #f3f8fa; }
.cx-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.cx-kicker { margin: 0 0 8px; color: var(--cx-cyan); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.cx-heading h2, .cx-copy h2 { margin: 0 0 16px; color: var(--cx-navy); font: 700 clamp(2.2rem, 3.6vw, 3.35rem)/1.13 var(--cx-serif); }
.cx-heading p, .cx-copy p { color: var(--cx-muted); }
.cx-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cx-service-card { position: relative; min-height: 330px; padding: 34px 30px; overflow: hidden; background: #fff; border: 1px solid var(--cx-line); box-shadow: 0 8px 25px rgba(6,57,87,.055); }
.cx-service-card::after { content: attr(data-number); position: absolute; right: -2px; bottom: -28px; color: #e8f4f8; font: 700 8rem/1 var(--cx-serif); }
.cx-service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 24px; color: #fff; background: var(--cx-blue); font-size: 1.15rem; font-weight: 900; }
.cx-service-card h3 { position: relative; z-index: 1; margin: 0 0 12px; color: var(--cx-navy); font: 700 1.55rem/1.2 var(--cx-serif); }
.cx-service-card p { position: relative; z-index: 1; color: var(--cx-muted); }
.cx-service-card a { position: relative; z-index: 1; color: var(--cx-blue); font-size: .79rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }

.cx-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
.cx-feature-panel { min-height: 430px; position: relative; display: grid; align-content: end; padding: 42px; color: #fff; background: linear-gradient(145deg, var(--cx-blue), var(--cx-navy)); overflow: hidden; }
.cx-feature-panel::before { content: "CN"; position: absolute; right: -15px; top: -40px; color: rgba(255,255,255,.07); font: 800 14rem/1 var(--cx-sans); }
.cx-feature-panel h3 { position: relative; margin: 0 0 12px; color: #fff; font: 700 2.25rem/1.12 var(--cx-serif); }
.cx-feature-panel p { position: relative; margin: 0; color: #d9eef5; }
.cx-checks { display: grid; gap: 18px; margin-top: 30px; }
.cx-check { position: relative; padding-left: 52px; }
.cx-check::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--cx-cyan); font-weight: 900; }
.cx-check h3 { margin: 0 0 4px; color: var(--cx-navy); font-size: 1.05rem; }
.cx-check p { margin: 0; color: var(--cx-muted); }

.cx-stats { color: #fff; background: var(--cx-navy); }
.cx-stats .cx-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.cx-stat { padding: 32px; border-right: 1px solid rgba(255,255,255,.14); text-align: center; }
.cx-stat:last-child { border-right: 0; }
.cx-stat strong { display: block; color: var(--cx-cyan); font: 700 2.4rem/1 var(--cx-serif); }
.cx-stat span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

.cx-cta { color: #fff; background: linear-gradient(110deg, var(--cx-blue), #087bad); }
.cx-cta .cx-wrap { min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cx-cta h2 { margin: 0; color: #fff; font: 700 clamp(2rem,3.5vw,3.2rem)/1.12 var(--cx-serif); }
.cx-cta p { margin: 7px 0 0; color: #d8f0f7; }
.cx-button-white { color: var(--cx-blue) !important; background: #fff; border-color: #fff; white-space: nowrap; }

.cx-page-hero { position: relative; overflow: hidden; padding-block: 82px; color: #fff; background: linear-gradient(105deg, var(--cx-navy), var(--cx-blue)); }
.cx-page-hero::after { content: ""; position: absolute; right: -90px; top: -130px; width: 380px; height: 380px; border: 70px solid rgba(38,175,210,.22); border-radius: 50%; }
.cx-page-hero .cx-wrap { position: relative; z-index: 1; }
.cx-page-hero h1 { max-width: 850px; margin: 0 0 15px; color: #fff; font: 700 clamp(2.8rem,4.7vw,4.4rem)/1.04 var(--cx-serif); }
.cx-page-hero p:last-child { max-width: 760px; margin: 0; color: #d8ebf2; font-size: 1.08rem; }
.cx-service-index { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.cx-index-card { padding: 36px; background: #fff; border-left: 5px solid var(--cx-cyan); box-shadow: var(--cx-shadow); }
.cx-index-card h2 { margin: 0 0 10px; color: var(--cx-navy); font: 700 1.85rem/1.2 var(--cx-serif); }
.cx-index-card p { color: var(--cx-muted); }
.cx-index-card a { color: var(--cx-blue); font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.cx-detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 70px; align-items: start; }
.cx-detail-grid h2 { color: var(--cx-navy); font: 700 2.2rem/1.2 var(--cx-serif); }
.cx-detail-grid p, .cx-detail-grid li { color: var(--cx-muted); }
.cx-detail-grid li { margin-bottom: 9px; }
.cx-sidebar { position: sticky; top: 30px; padding: 28px; background: #f1f7f9; border-top: 5px solid var(--cx-cyan); }
.cx-sidebar h3 { margin-top: 0; color: var(--cx-navy); font: 700 1.35rem var(--cx-serif); }
.cx-sidebar ul { margin: 0; padding: 0; list-style: none; }
.cx-sidebar li { margin: 0; border-bottom: 1px solid var(--cx-line); }
.cx-sidebar a { display: block; padding: 12px 3px; color: var(--cx-navy); text-decoration: none; font-weight: 700; }
.cx-contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; }
.cx-contact-box { padding: 36px; background: var(--cx-navy); color: #d9edf4; }
.cx-contact-box h2 { margin-top: 0; color: #fff; font: 700 2rem var(--cx-serif); }
.cx-contact-box a { color: #fff; }

.cx-footer { padding-top: 62px; color: #b9d0db; background: #032d43; }
.cx-footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .8fr; gap: 70px; padding-bottom: 42px; }
.cx-footer-logo { width: 230px; filter: brightness(0) invert(1); opacity: .9; }
.cx-footer h3 { margin-top: 0; color: #fff; font: 700 1.25rem var(--cx-serif); }
.cx-footer ul { margin: 0; padding: 0; list-style: none; }
.cx-footer li { margin-bottom: 7px; }
.cx-footer a { color: #d4e6ed; text-decoration: none; }
.cx-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

@media (max-width: 950px) {
  .cx-menu-toggle { display: block; }
  .cx-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 22px; background: #fff; box-shadow: var(--cx-shadow); flex-direction: column; align-items: flex-start; gap: 18px; }
  .cx-menu.is-open { display: flex; }
  .cx-hero .cx-wrap, .cx-split, .cx-detail-grid, .cx-contact-grid { grid-template-columns: 1fr; }
  .cx-hero { background: linear-gradient(130deg, var(--cx-navy), var(--cx-blue)); }
  .cx-hero .cx-wrap { gap: 45px; }
  .cx-service-grid { grid-template-columns: repeat(2,1fr); }
  .cx-footer-grid { grid-template-columns: 1fr 1fr; }
  .cx-detail-grid { gap: 38px; }
  .cx-sidebar { position: static; }
}
@media (max-width: 620px) {
  .cx-wrap { width: min(100% - 28px, 1160px); }
  .cx-topbar .cx-wrap { padding-block: 8px; flex-direction: column; gap: 1px; align-items: flex-start; }
  .cx-nav { min-height: 80px; }
  .cx-brand img { width: 205px; max-height: 60px; }
  .cx-hero { min-height: auto; }
  .cx-hero .cx-wrap { padding-block: 64px; }
  .cx-hero h1 { font-size: 2.75rem; }
  .cx-section { padding-block: 64px; }
  .cx-service-grid, .cx-service-index, .cx-stats .cx-wrap, .cx-footer-grid { grid-template-columns: 1fr; }
  .cx-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .cx-cta .cx-wrap { padding-block: 44px; align-items: flex-start; flex-direction: column; }
}
