/* ===================== WorldTech brand ===================== */
:root {
  --navy: #001134;       /* exact navy from the WorldTech logo */
  --blue: #0159fb;       /* exact blue from the WorldTech logo */
  --blue-dark: #0147cc;
  --light-blue: #e6efff;
  --text: #1b2434;
  --muted: #6b7790;
  --bg: #f6f9ff;
  --white: #ffffff;
  --good: #1eaf6b;
  --bad: #e0526b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Foco visible para navegación con teclado (accesibilidad) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ===================== Reusable bits ===================== */
.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn--small { background: var(--blue); color: #fff; padding: 9px 18px; font-size: 14px; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }
/* Instagram glyph */
.ig {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  vertical-align: -0.16em;
  margin-right: 7px;
}

/* grids */
.grid { display: grid; gap: 22px; max-width: 1000px; margin: 0 auto; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ===================== Navbar ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(10,31,68,0.08);
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 34px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--text); font-weight: 600; }
.nav__links a:hover { color: var(--blue); }
.nav__cta { background: var(--blue); color: #fff !important; padding: 9px 18px; border-radius: 30px; }
.nav__cta:hover { background: var(--blue-dark); }

.nav__lang {
  padding: 5px 10px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav__toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #00081c 0%, #001236 50%, #03205e 100%);
  color: #fff;
  text-align: center;
  padding: 110px 24px 120px;
}
/* the 3D dotted globe glowing on the right edge */
.hero__globe {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  height: 125%;
  width: auto;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero__eyebrow { letter-spacing: 3px; font-size: 13px; font-weight: 700; opacity: 0.85; }
.hero h1 { font-size: 58px; line-height: 1.05; margin: 16px 0; }
.hero h1 span { color: #9ec4ff; }
.hero__text { font-size: 19px; opacity: 0.95; margin-bottom: 34px; }
.hero__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Hook ===================== */
.hook {
  text-align: center;
  padding: 70px 24px;
  background: var(--white);
}
.hook h2 { font-size: 34px; color: var(--navy); max-width: 800px; margin: 0 auto 14px; }
.hook h2 span { color: var(--blue); }
.hook p { color: var(--muted); font-size: 18px; }

/* ===================== Services ===================== */
.services { padding: 80px 24px; }
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(10,31,68,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(10,31,68,0.12); }
.card__ico {
  width: 60px; height: 60px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: var(--light-blue);
  border-radius: 14px;
}
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; }

/* ===================== Why (compare) ===================== */
.why { padding: 80px 24px; background: var(--white); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.compare__col { border-radius: 16px; padding: 30px; }
.compare__col--bad { background: #fdeef1; border: 1px solid #f6d2da; }
.compare__col--good { background: #e9f9f1; border: 1px solid #c4ebd6; }
.compare__col h3 { font-size: 20px; margin-bottom: 16px; color: var(--navy); }
.compare__col ul { list-style: none; }
.compare__col li { padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); font-size: 15px; }
.compare__col li:last-child { border-bottom: none; }

/* ===================== Portfolio ===================== */
.portfolio { padding: 80px 24px; }
.work {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(10,31,68,0.06);
}
.work__tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--blue); background: var(--light-blue);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.work h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.work p { color: var(--muted); margin-bottom: 18px; }

/* ===================== Certification ===================== */
.cert { padding: 80px 24px; }
.cert__card {
  display: flex;
  gap: 30px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e3ebf7;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(10,31,68,0.07);
}
.cert__img {
  flex: none;
  display: block;
  line-height: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  transition: transform 0.15s;
}
.cert__img:hover { transform: scale(1.03); }
.cert__img img {
  width: 270px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e3ebf7;
  box-shadow: 0 6px 18px rgba(10,31,68,0.12);
}
.cert__verified {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--good); background: #e9f9f1;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 8px;
}
.cert__body h3 { color: var(--navy); font-size: 20px; }
.cert__issuer { color: var(--blue); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.cert__desc { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.cert__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cert__tags span {
  font-size: 12px; font-weight: 600;
  color: var(--navy); background: var(--light-blue);
  padding: 4px 10px; border-radius: 20px;
}

/* ===================== Process ===================== */
.process { padding: 80px 24px; background: var(--white); }
.step { text-align: center; padding: 20px; }
.step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font-weight: 700; font-size: 20px; border-radius: 50%;
}
.step h3 { color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ===================== Packages / pricing ===================== */
.pricing { padding: 80px 24px; background: var(--white); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e3ebf7;
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 8px 24px rgba(10,31,68,0.06);
}
.plan--featured {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 44px rgba(1,89,251,0.20);
  position: relative;
  transform: scale(1.04);
}
.plan__badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
  white-space: nowrap;
}
.plan__name { color: var(--navy); font-size: 20px; }
.plan__price { color: var(--blue); font-size: 38px; font-weight: 800; margin: 6px 0 2px; }
.plan__for { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.plan__maint {
  font-size: 12.5px;
  color: var(--navy);
  background: var(--light-blue);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.plan__maint b { color: var(--blue); }
.plan__list { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.plan__list li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px dashed #eef2fa;
}
.plan__list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--good); font-weight: 700;
}
.btn--ghost-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  text-align: center;
}
.btn--ghost-blue:hover { background: var(--light-blue); }
.plan .btn { text-align: center; }
.pricing__note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 34px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== FAQ (React) ===================== */
.faq { padding: 80px 24px; background: var(--white); }
.faq__list { max-width: 720px; margin: 0 auto; }
.faq__item {
  border: 1px solid #e3ebf7;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item.is-open { border-color: var(--blue); }
.faq__q {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq__q:hover { background: var(--light-blue); }
.faq__item.is-open .faq__q { color: var(--blue); }
.faq__icon { color: var(--blue); font-size: 24px; font-weight: 700; flex: none; }
.faq__a {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===================== Contact ===================== */
.contact {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(150deg, #03205e 0%, #00081c 100%);
  color: #fff;
}
.contact h2 { font-size: 34px; margin-bottom: 12px; }
.contact p { font-size: 18px; opacity: 0.95; margin-bottom: 28px; }
.contact__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== Lightbox (certificate popup) ===================== */
.lightbox {
  display: none;                 /* hidden until opened */
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 12, 33, 0.88);
  cursor: zoom-out;
  padding: 30px;
  /* center the image */
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.lightbox.open { display: flex; }      /* JS adds .open to show it */
.lightbox img {
  max-width: 92%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 28px;
  font-size: 44px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  background: none;
  border: none;
  padding: 0;
}
.lightbox__close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== Footer ===================== */
.footer { background: var(--navy); color: #fff; text-align: center; padding: 40px 24px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 6px; }
.footer__brand { font-size: 24px; font-weight: 700; }
.footer__brand b { color: var(--blue); }
.footer__slogan { opacity: 0.8; margin: 4px 0 10px; }
.footer__social { margin-bottom: 14px; }
.footer__social a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.9; }
.footer__social a:hover { color: var(--blue); opacity: 1; }
.footer__copy { font-size: 13px; opacity: 0.6; }

/* ===================== Responsive (phones & tablets) ===================== */
@media (max-width: 820px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan--featured { transform: none; }

  /* mobile menu: hidden by default, shown when .open is added */
  .nav__links {
    position: absolute;
    top: 66px; right: 0; left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(10,31,68,0.12);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px; width: 100%; text-align: center; border-top: 1px solid #eef2fa; }
  .nav__cta { border-radius: 0; }
  .nav__lang { margin-left: auto; margin-right: 18px; }
  .nav__toggle { display: block; }

  .hero h1 { font-size: 40px; }
}

@media (max-width: 540px) {
  .grid--4, .grid--2, .compare { grid-template-columns: 1fr; }
  .cert__card { flex-direction: column; text-align: center; }
  .cert__tags { justify-content: center; }
  .hero h1 { font-size: 34px; }
  /* keep the globe subtle behind the text on small phones */
  .hero__globe { opacity: 0.28; height: 100%; right: -90px; }
  .section-title, .hook h2, .contact h2 { font-size: 26px; }
}
