/* ============================================================
   dotNET Desarrollo de Sistemas — hoja de estilos única
   Sin dependencias externas. Mobile-first.
   ============================================================ */

:root {
  --navy-900: #0d1f3c;
  --navy-800: #12294d;
  --navy-700: #1b3a6b;
  --navy-600: #24508f;
  --blue-500: #2e79c7;
  --teal-500: #2e9cc0;
  --teal-400: #45b3d4;
  --green-500: #35a87a;

  --ink: #16202e;
  --ink-soft: #4a5567;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-tint: #eef4fb;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 31, 60, .06), 0 2px 8px rgba(13, 31, 60, .05);
  --shadow-md: 0 4px 12px rgba(13, 31, 60, .08), 0 12px 32px rgba(13, 31, 60, .08);

  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.clamp { max-width: 78ch; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-tint); }
.nav-toggle .bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after  { top: 5px; }

.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 14px; }
.site-nav a {
  display: block; padding: 11px 4px; font-weight: 600; color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--blue-500); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--teal-500); }

.lang-switch { display: flex; gap: 6px; padding: 12px 0 4px; align-items: center; }
.lang-switch a {
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.lang-switch a:hover { text-decoration: none; border-color: var(--navy-600); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 10px; margin-left: auto; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border-bottom: 0; padding: 8px 14px; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--bg-tint); }
  .site-nav a[aria-current="page"] { background: var(--bg-tint); color: var(--navy-700); }
  .lang-switch { padding: 0; margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-align: center;
  border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-400); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--navy-600); color: var(--navy-700); }
.btn-outline:hover { background: var(--bg-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-900);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13, 31, 60, .95) 0%, rgba(18, 41, 77, .88) 45%, rgba(46, 156, 192, .55) 100%);
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dbe6f3; max-width: 62ch; }
.hero .eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-400); border: 1px solid rgba(69, 179, 212, .45);
  padding: 5px 12px; border-radius: 999px;
}
.hero .btn-row { margin-top: 26px; }

.page-hero { background: var(--navy-800); color: #fff; }
.page-hero .wrap { padding: 52px 20px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cfdcea; max-width: 70ch; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.tight { padding: 44px 0; }
section.alt { background: var(--bg-alt); }
section.tint { background: var(--bg-tint); }
.section-head { max-width: 70ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow-dark {
  display: block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500);
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--navy-700);
  font-size: 1.25rem; font-weight: 800;
}

.case-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.case-card img { width: 100%; height: 168px; object-fit: cover; background: var(--bg-alt); }
.case-card .body { padding: 22px; flex: 1; }
.case-card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 8px;
}
.case-card h3 { font-size: 1.08rem; }
.case-card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 0; }
.case-card .body > a { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 48px; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Listas con palomita ---------- */
ul.checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
ul.checks li { position: relative; padding: 0 0 10px 30px; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-500); font-weight: 800;
}

/* ---------- Franja PAC ---------- */
.pac-strip {
  background: linear-gradient(100deg, var(--navy-800), var(--navy-600) 60%, var(--teal-500));
  color: #fff;
}
.pac-strip h2 { color: #fff; }
.pac-strip p { color: #dbe8f5; }
.pac-strip .wrap { padding: 52px 20px; }
.pac-strip .split { align-items: center; }

/* ---------- Ficha de datos PAC ---------- */
.data-sheet {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.data-sheet dl { margin: 0; }
.data-sheet .row {
  display: grid; gap: 6px; padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.data-sheet .row:last-child { border-bottom: 0; }
.data-sheet dt { font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; line-height: 1.45; }
.data-sheet dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.data-sheet dd.plain { font-size: 1rem; font-weight: 500; color: var(--ink); }

/* ---------- Distintivo oficial de PAC ---------- */
.pac-badge-wrap { display: flex; justify-content: center; }
.pac-badge {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-md); max-width: 320px;
}
/* El distintivo es un mapa de bits pequeño: se muestra a tamaño natural para que no pixele. */
.pac-badge a { display: block; line-height: 0; border-radius: 6px; }
.pac-badge a:hover { opacity: .82; }
.pac-badge a:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.pac-badge img { width: 80px; height: auto; }
.pac-badge .caption { font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
.pac-badge .caption strong { color: var(--navy-900); }

/* ---------- Reconocimientos ---------- */
.logo-row {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center;
}
.logo-row figure {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; min-width: 150px; text-align: center;
}
.logo-row img { max-height: 54px; width: auto; margin: 0 auto 10px; }
.logo-row figcaption { font-size: .82rem; color: var(--ink-soft); }

/* ---------- CancunIT callout ---------- */
.callout {
  border: 1px solid var(--line); border-left: 5px solid var(--teal-500);
  background: var(--bg-tint); border-radius: var(--radius);
  padding: 26px 28px;
}
.callout h3 { margin-bottom: .5em; }
.callout img.brandmark { max-height: 46px; width: auto; margin-bottom: 16px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .6em; }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px;
}
.contact-list a { font-weight: 600; font-size: 1.05rem; word-break: break-word; }

/* ---------- Anchor nav (índice lateral) ---------- */
.anchor-nav { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); font-size: .9rem; font-weight: 600;
  color: var(--navy-700);
}
.anchor-nav a:hover { background: var(--bg-tint); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c8dc; padding: 54px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cfe0f2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .logo-footer { height: 46px; width: auto; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .87rem;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 6px 14px;
  font-size: .82rem; font-weight: 600; color: #dcecfa;
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }

@media print {
  .site-header, .site-footer, .btn-row, .anchor-nav { display: none; }
  body { font-size: 12pt; }
}
