/*
Theme Name: Megasoft Corporate
Theme URI: https://megasoft.com.do/
Author: OpenAI
Author URI: https://openai.com/
Description: Tema corporativo para Megasoft, listo para subir a WordPress.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: megasoft-corporate
*/

:root {
  --primary: #0b5ed7;
  --primary-dark: #083b8a;
  --secondary: #0f172a;
  --accent: #19a7ff;
  --light: #f8fafc;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #0ea5e9;
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.12);
  --radius: 22px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--secondary);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.topbar {
  background: #06152f;
  color: #cbd5e1;
  font-size: 14px;
  padding: 10px 0;
}
.topbar .container,
.nav .container,
.hero-actions,
.stats,
.footer-grid,
.cta-actions {
  display: flex;
  gap: 16px;
}
.topbar .container { justify-content: space-between; flex-wrap: wrap; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}
.nav .container {
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-dark);
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4fc3ff, var(--primary-dark));
  box-shadow: inset -8px -8px 16px rgba(255,255,255,.18), 0 12px 30px rgba(11,94,215,.25);
}
.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 18px 40px rgba(11,94,215,.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(11,94,215,.25);
  color: var(--primary-dark);
  background: rgba(255,255,255,.85);
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(25,167,255,.20), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  padding: 84px 0 64px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .5;
}
.hero::before {
  width: 260px; height: 260px;
  background: rgba(11,94,215,.18);
  left: -40px; top: 80px;
}
.hero::after {
  width: 340px; height: 340px;
  background: rgba(25,167,255,.18);
  right: -80px; top: -40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,94,215,.08);
  color: var(--primary-dark);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(11,94,215,.12);
}
h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}
.hero p {
  font-size: 18px;
  color: #334155;
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-actions, .stats { flex-wrap: wrap; }
.stats { margin-top: 34px; }
.stat {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px;
  padding: 18px 22px;
  min-width: 160px;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}
.stat strong { display: block; font-size: 26px; color: var(--primary-dark); }
.hero-card {
  background: linear-gradient(160deg, #081a36 0%, #0b5ed7 50%, #19a7ff 100%);
  color: white;
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 560px;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  filter: blur(4px);
}
.screen {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(12px);
}
.screen + .screen { margin-top: 18px; }
.tiny-label {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  margin-bottom: 14px;
  font-weight: 700;
}
.bars { display: grid; gap: 10px; }
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #b9ebff);
}
section { padding: 82px 0; }
.section-title { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-title p, .muted { color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 15px 45px rgba(15,23,42,.04);
  transition: .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
  border-color: rgba(11,94,215,.18);
}
.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(11,94,215,.12), rgba(25,167,255,.14));
  margin-bottom: 18px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.split { background: #f8fbff; }
.feature-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: center;
}
.feature-panel {
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.check-list { display: grid; gap: 14px; margin-top: 22px; }
.check-item {
  display: flex;
  gap: 12px;
  align-items: start;
  color: #334155;
  font-weight: 500;
}
.check-item span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,.12);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: 24px;
  min-height: 260px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,8,23,.05), rgba(2,8,23,.82));
}
.gallery-item > div { position: relative; z-index: 1; }
.gallery-item h3 { font-size: 24px; margin-bottom: 8px; }
.gallery-item p { color: rgba(255,255,255,.88); }
.cta {
  background: linear-gradient(135deg, #071731, #0b5ed7 55%, #19a7ff);
  color: white;
  border-radius: 34px;
  padding: 44px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}
.cta p { color: rgba(255,255,255,.9); font-size: 18px; }
.cta .btn-outline {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.contact-card, .form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(15,23,42,.05);
}
.info-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-line:last-child { border-bottom: 0; }
.footer {
  padding: 26px 0 36px;
  background: #06152f;
  color: #cbd5e1;
}
.footer-grid {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 1024px) {
  .hero-grid, .feature-grid, .cta, .contact-grid, .service-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .menu { display: none; }
  .hero-card { min-height: auto; }
}
@media (max-width: 640px) {
  h1 { font-size: 38px; }
  .hero { padding-top: 60px; }
  .cta, .hero-card, .contact-card, .form-card, .card, .feature-panel { padding: 22px; }
}
