/*
Theme Name: ConLinux
Theme URI: https://conlinux.net
Author: ConLinux
Description: Tema comercial ligero para servicios de hosting, correo y automatización.
Version: 2.0.0
Text Domain: conlinux
*/

:root {
  --navy: #182552;
  --navy-2: #0c1535;
  --blue: #075fc0;
  --blue-2: #0b79e3;
  --yellow: #ffcf33;
  --ice: #edf6ff;
  --white: #fff;
  --ink: #172033;
  --muted: #5e6b82;
  --line: #d7e4f1;
  --success: #08785e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(24, 37, 82, .10);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: white; color: var(--navy); padding: 12px 16px; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 21, 53, .97); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; font-size: 1.22rem; font-weight: 850; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); color: var(--navy); font-weight: 900; }
.brand-dot { color: var(--yellow); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #f5f8ff; font-weight: 700; font-size: .94rem; }
.main-nav a:hover { color: var(--yellow); text-decoration: none; }
.nav-cta { padding: 10px 17px; border-radius: 999px; background: var(--yellow); color: var(--navy) !important; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.4); background: transparent; color: white; border-radius: 10px; padding: 8px 12px; }

.hero { overflow: hidden; background: radial-gradient(circle at 76% 28%, rgba(11,121,227,.40), transparent 31%), linear-gradient(135deg, var(--navy-2), var(--navy)); color: white; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; padding-block: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--yellow); font-size: .82rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.hero .lead { max-width: 660px; margin: 26px 0 0; color: #dce8ff; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 2px solid transparent; border-radius: 12px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { background: var(--yellow); color: var(--navy); }
.button-secondary { border-color: rgba(255,255,255,.55); color: white; }
.button-blue { background: var(--blue); color: white; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; color: #dce8ff; font-size: .92rem; }
.hero-proof li::before { content: "✓"; margin-right: 7px; color: var(--yellow); font-weight: 900; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 28px; border: 1px solid rgba(255,255,255,.23); box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.visual-note { position: absolute; left: -28px; bottom: -20px; max-width: 230px; padding: 16px 18px; border-radius: 16px; background: white; color: var(--ink); box-shadow: var(--shadow); font-size: .9rem; font-weight: 750; }

.section { padding-block: 88px; }
.section-ice { background: var(--ice); }
.section-dark { background: var(--navy-2); color: white; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; }
.section-dark h2 { color: white; }
.section-head p { margin: 15px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #cbd9f2; }

.need-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.need-card { min-height: 215px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(24,37,82,.05); color: var(--ink); transition: .2s ease; }
.need-card:hover { border-color: var(--blue-2); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-4px); }
.need-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--ice); color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.need-card h3 { margin: 0; color: var(--navy); font-size: 1.22rem; line-height: 1.25; }
.need-card p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tab-button { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--navy); padding: 10px 18px; font-weight: 800; cursor: pointer; }
.tab-button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.tab-panel[hidden] { display: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; right: 18px; padding: 5px 11px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.price-card h3 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.price { margin: 17px 0 4px; color: var(--navy); font-size: 2.25rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.price small { font-size: .85rem; font-weight: 650; color: var(--muted); }
.plan-for { min-height: 44px; margin: 10px 0 17px; color: var(--muted); font-size: .9rem; }
.feature-list { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; font-size: .91rem; }
.feature-list li { padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.feature-list li::before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 900; }
.price-card .button { width: 100%; }
.catalog-note { margin: 22px auto 0; max-width: 780px; text-align: center; color: var(--muted); font-size: .9rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: steps; }
.step { counter-increment: steps; }
.step::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--yellow); font-size: 1.4rem; font-weight: 900; }
.step h3 { margin: 0; font-size: 1.12rem; }
.step p { margin: 9px 0 0; color: #cbd9f2; font-size: .94rem; }

.trust-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.trust-grid img { border-radius: 24px; box-shadow: var(--shadow); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 28px; }
.check-item { padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; font-weight: 750; }
.check-item::before { content: "✓"; margin-right: 9px; color: var(--success); }

.cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 42px; border-radius: 24px; background: linear-gradient(125deg, var(--blue), #00428c); color: white; }
.cta-box h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-box p { margin: 10px 0 0; color: #dceaff; }
.cta-box .button-primary { white-space: nowrap; }

.site-footer { padding: 56px 0 24px; background: var(--navy-2); color: #cbd9f2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: white; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dce8ff; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .87rem; }
.entry { width: min(calc(100% - 40px), 900px); margin: 60px auto; }
.entry h1 { color: var(--navy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; }
.woocommerce-page main { width: min(calc(100% - 40px), var(--wrap)); margin: 50px auto; }

@media (max-width: 980px) {
  .hero-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-visual { max-width: 660px; }
  .need-grid, .pricing-grid, .pricing-grid.five { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 20px; background: var(--navy-2); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .section { padding-block: 66px; }
  .hero-grid { padding-block: 54px 72px; gap: 34px; }
  .hero h1 { font-size: 2.65rem; }
  .visual-note { position: static; margin: 14px 0 0; max-width: none; }
  .need-grid, .pricing-grid, .pricing-grid.five, .process-grid, .check-grid, .footer-grid { grid-template-columns: 1fr; }
  .price-card { padding: 26px 22px; }
  .cta-box { grid-template-columns: 1fr; padding: 30px 24px; }
}

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