/* ===== Titan Data Center Consulting — shared stylesheet ===== */

/* Self-hosted display font (headings, labels, buttons) — no external font
   CDN dependency. Body text uses the OS's native UI font stack, which
   requires no download at all and matches the look Inter was chosen for. */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-deep: #060e1f;
  --navy: #0b1f3a;
  --navy-2: #15366b;
  --navy-soft: #122a52;
  --cyan: #00b4d8;
  --cyan-light: #48cae4;
  --white: #ffffff;
  --steel: #9fb0c8;
  --steel-dark: #5b6b82;
  --line: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --max-w: 1180px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-deep);
  background-image: radial-gradient(70% 35% at 50% 0%, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  background-repeat: no-repeat;
  background-size: 100% 900px;
  color: var(--white);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--steel); margin: 0 0 1em; }
a { color: var(--cyan-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b1f3a;        /* mismo azul del fondo del logo */
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 2in;            /* header ~2 pulgadas (192px) */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 160px; width: auto; display: block; }
@media (max-width: 860px) {
  .nav-wrap { min-height: 96px; padding: 12px 20px; }
  .brand img { height: 72px; }
}
nav.primary-nav { display: flex; align-items: center; gap: 30px; }
nav.primary-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}
nav.primary-nav a:hover { opacity: 1; text-decoration: none; color: var(--cyan-light); }
nav.primary-nav a.active { color: var(--cyan-light); opacity: 1; }
.nav-cta {
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: var(--navy-deep) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { width: 100%; padding: 10px 0; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.22), transparent 65%);
  pointer-events: none;
}
.hero .lead {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 1.12rem;
  color: var(--steel);
}
.hero h1 { max-width: 880px; margin: 0 auto 20px; }
.hero h1 .accent { color: var(--cyan-light); }

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: "Poppins", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: var(--navy-deep);
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-light); text-decoration: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 56px auto 0;
}
.stat {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
}
.stat .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--cyan-light);
  display: block;
}
.stat .label { font-size: 0.82rem; color: var(--steel); }

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 0; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(0, 180, 216, 0.35);
  transform: translateY(-3px);
}
.card .icon-num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(0, 180, 216, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--cyan-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link { font-size: 0.88rem; font-weight: 600; display: inline-block; margin-top: 12px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--steel);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Values / checklist ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--steel);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}
.check-list b { color: var(--white); }

/* ---------- Timeline (How we work) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.4;
}
.timeline .step { position: relative; }
.timeline .step .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.18);
  margin-bottom: 18px;
}
.timeline .step h4 { color: var(--cyan-light); font-size: 1rem; margin-bottom: 6px; }
.timeline .step p { font-size: 0.9rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
table th, table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-light);
  white-space: nowrap;
}
table td { color: var(--steel); }
table td b, table td strong { color: var(--white); }
table tr:last-child td { border-bottom: none; }

/* ---------- Service family detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block .num-badge {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: rgba(0, 180, 216, 0.5);
  font-size: 2.6rem;
  line-height: 1;
}
.service-block .deliverable {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--card-bg);
  margin-bottom: 12px;
}
.service-block .deliverable .what { color: var(--white); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; display: block; }
.service-block .deliverable .detail { color: var(--steel); font-size: 0.88rem; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Package cards ---------- */
.pkg-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.pkg-card .duration {
  align-self: flex-start;
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pkg-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--steel); font-size: 0.9rem; }
.pkg-card ul li { margin-bottom: 6px; }
.pkg-card .best-for { margin-top: auto; font-size: 0.86rem; color: var(--steel); border-top: 1px solid var(--line); padding-top: 14px; }
.pkg-card .best-for b { color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-2));
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 24px;
  padding: 54px 40px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-card .label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-light);
  display: block;
  margin-bottom: 4px;
}
.info-card .value { color: var(--white); font-size: 0.98rem; }
.info-card .placeholder-note { color: var(--steel-dark); font-size: 0.78rem; margin-top: 2px; }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; color: var(--steel); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}
select option { color: #000; background: #fff; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--steel-dark); }
#form-status { font-size: 0.9rem; margin-top: 4px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--steel); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan-light); text-decoration: none; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--steel-dark);
}

/* ---------- Page hero (non-home) ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lead { max-width: 680px; margin: 0 auto; }

/* ---------- Anchors offset for sticky header ---------- */
[id] { scroll-margin-top: 90px; }

.vendor-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 180, 216, 0.07);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 32px;
}
.vendor-note .dot-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-light); font-weight: 700; font-family: "Poppins", sans-serif;
}
.vendor-note p { margin: 0; font-size: 0.92rem; color: var(--steel); }
.vendor-note p b { color: var(--white); }
