/* ============================================================
   WEB ECONÓMICA CARTAGENA — style.css
   ============================================================ */

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a2b5e;
  --primary-d: #0d1b3e;
  --accent:    #e8601c;
  --accent2:   #25c16f;
  --light-bg:  #f4f6fb;
  --white:     #ffffff;
  --text:      #22304a;
  --text-light:#ffffff;
  --gray:      #6b7c96;
  --border:    #d9e1f0;
  --hero-overlay: rgba(6, 14, 38, 0.82);
  --shadow:    0 4px 24px rgba(26,43,94,0.13);
  --radius:    12px;
  --font-base: 18px;
  --font-sm:   16px;
  --font-lg:   20px;
  --font-xl:   24px;
  --font-xxl:  32px;
  --font-hero: 54px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: var(--font-base);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.22;
  color: var(--primary);
}
h1 { font-size: clamp(32px, 5vw, var(--font-hero)); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: var(--font-xl); }

p { margin-bottom: 1.15em; font-size: var(--font-base); }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .4em; }

strong, b { font-weight: 700; color: var(--primary); }

section { padding: 72px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* --- HEADER / NAV ----------------------------------------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary-d);
  box-shadow: 0 2px 16px rgba(10,20,50,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo .we {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px 0 0 6px;
  font-size: 20px;
}
.logo .brand {
  background: var(--white);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 18px;
  font-weight: 800;
}

/* NAV MENU */
nav { display: flex; align-items: center; gap: 4px; }

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #d0daf7;
  font-size: 15.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-link .arrow { font-size: 11px; transition: transform .2s; }

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10,20,50,.22);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item:hover .arrow { transform: rotate(180deg); }

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dropdown a:hover { background: var(--light-bg); color: var(--accent); }

/* Contacto link */
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 700;
}
.nav-cta:hover { background: #c04f14 !important; color: #fff !important; }

/* MOBILE TOGGLE */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s;
}

/* --- FLOATING CTA ----------------------------------------- */
.float-cta {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.35); text-decoration: none; color: #fff; }
.float-btn.phone { background: var(--accent); }
.float-btn.whatsapp { background: #25d366; }
.float-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* --- HERO / PAGE HEADER ----------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-overlay),
              url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1920&q=80')
              center/cover no-repeat;
  z-index: 0;
}

/* Fallback gradient for hero on inner pages */
.hero-inner .hero-bg {
  background: linear-gradient(135deg, var(--primary-d) 0%, #243880 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 40px 24px;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #d6e0ff;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* --- SECTION ALTERNATING BACKGROUNDS ---------------------- */
.bg-white   { background: var(--white); }
.bg-light   { background: var(--light-bg); }
.bg-primary { background: var(--primary); color: var(--text-light); }
.bg-primary h2, .bg-primary h3, .bg-primary p, .bg-primary li, .bg-primary strong { color: var(--text-light); }
.bg-primary strong { font-weight: 700; }
.bg-dark    { background: var(--primary-d); color: var(--text-light); }
.bg-dark h2, .bg-dark h3, .bg-dark p, .bg-dark li, .bg-dark strong { color: var(--text-light); }

/* Hero unique bg */
.hero-section-bg { background: linear-gradient(135deg, #0d1b3e 0%, #1a2b5e 100%); color: #fff; }
.hero-section-bg h1, .hero-section-bg h2, .hero-section-bg h3, .hero-section-bg p { color: #fff; }
.hero-section-bg strong { color: #f9c96b; }

/* --- PAGE INNER HERO -------------------------------------- */
.page-hero {
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .hero-subtitle { color: #cdd8f0; font-size: 20px; margin-bottom: 0; }

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.18); text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c04f14; color: #fff; }

.btn-secondary { background: var(--accent2); color: #fff; }
.btn-secondary:hover { background: #1aaa58; color: #fff; }

.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-d); color: #fff; }

.cta-group { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* --- PRICING ---------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.price-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px 40px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  text-align: center;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,43,94,.18); }

.price-card.featured {
  border-color: var(--accent);
  transform: scale(1.04);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.badge-recommended {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-name {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 52px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.price-amount span { font-size: 26px; }
.price-amount.consult { font-size: 26px; color: var(--gray); padding: 16px 0; }

.price-period {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.price-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* --- FEATURES / ICONS GRID -------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 15.5px; color: var(--gray); margin: 0; }

/* --- STATS / CIFRAS --------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.stat-number {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.stat-card p { font-size: 17px; margin: 0; color: #d0e0ff; }

/* Stats on light bg */
.stats-light .stat-card { background: var(--white); border: 2px solid var(--border); }
.stats-light .stat-number { color: var(--accent); }
.stats-light .stat-card p { color: var(--text); }

/* --- TESTIMONIALS ----------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  position: relative;
}

.testimonial-text {
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-text::before { content: '\201C'; font-size: 48px; color: var(--accent); line-height: 0; vertical-align: -18px; margin-right: 4px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-bg);
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info .name { font-weight: 700; font-size: 15.5px; color: var(--primary); }
.author-info .role { font-size: 14px; color: var(--gray); }
.stars { color: #f5a623; font-size: 15px; letter-spacing: 1px; }

/* --- PROCESS ---------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 24px 20px;
  position: relative;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 30px;
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}
.process-step:last-child::after { display: none; }

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 15px; color: var(--gray); margin: 0; }

/* --- ZONES ------------------------------------------------ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.zone-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--accent);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.zone-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(26,43,94,.18); text-decoration: none; color: var(--text); }
.zone-card .zone-icon { font-size: 34px; margin-bottom: 12px; }
.zone-card h3 { font-size: 19px; color: var(--primary); margin-bottom: 8px; }
.zone-card p { font-size: 15px; color: var(--gray); margin: 0; }

/* --- FAQ -------------------------------------------------- */
.faq-list { margin-top: 36px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(26,43,94,.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}
.faq-question:hover { background: var(--light-bg); }
.faq-chevron { font-size: 18px; transition: transform .3s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* --- CONTENT TEXT ----------------------------------------- */
.content-text h3 { margin: 28px 0 12px; }
.content-text p   { margin-bottom: 1.2em; }
.section-intro { max-width: 720px; margin: 0 auto 16px; text-align: center; font-size: 19px; color: var(--gray); }

/* --- SERVICES CARDS --------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s;
  border-bottom: 4px solid var(--accent);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.service-card:hover { transform: translateY(-5px); text-decoration: none; color: var(--text); }
.service-card .s-icon { font-size: 36px; margin-bottom: 14px; }
.service-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 15.5px; color: var(--gray); margin: 0; }

/* --- CONTACT PAGE ----------------------------------------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-item .ci-icon { font-size: 28px; flex-shrink: 0; }
.contact-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 16px; margin: 0; color: var(--text); }
.contact-item a:hover { color: var(--accent); }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.map-container iframe { width: 100%; height: 420px; border: none; }

/* Phases */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.phase-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 28px 22px;
  border-top: 4px solid var(--accent);
  text-align: center;
}
.phase-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.phase-card h3 { font-size: 18px; margin-bottom: 10px; }
.phase-card p { font-size: 15px; color: var(--gray); margin: 0; }

/* --- FOOTER ----------------------------------------------- */
footer {
  background: var(--primary-d);
  color: #a8b8d8;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-col p { font-size: 15px; margin-bottom: 10px; }
.footer-col a { color: #a8b8d8; font-size: 15px; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #6b7c96;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 900px) {
  .process-step::after { display: none; }
  .process-grid { gap: 20px; }
}

@media (max-width: 768px) {
  :root { --font-base: 17px; }
  section { padding: 52px 0; }

  nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary-d); padding: 16px 0; z-index: 999; }
  nav.open { display: flex; }

  .nav-item { width: 100%; }
  .nav-link { border-radius: 0; padding: 12px 24px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; background: rgba(255,255,255,.05); max-height: 0; overflow: hidden; transition: max-height .3s; pointer-events: none; }
  .nav-item.open-m .dropdown { max-height: 400px; pointer-events: auto; }
  .dropdown a { color: #ccd8f0; padding: 10px 40px; }
  .hamburger { display: flex; }

  .float-btn span { display: none; }
  .float-btn { padding: 13px 15px; border-radius: 50%; }
  .float-cta { bottom: 20px; left: 16px; gap: 10px; }

  .price-card.featured { transform: none; }

  h1 { font-size: clamp(28px, 8vw, 42px); }
  h2 { font-size: clamp(22px, 6vw, 32px); }
}

/* Section header */
.section-header { text-align: center; margin-bottom: 16px; }
.section-header h2 { margin-bottom: 12px; }
.section-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-tag.green { background: var(--accent2); }

/* Divider */
.divider { height: 4px; width: 60px; background: var(--accent); border-radius: 2px; margin: 14px auto 24px; }

/* List checkmarks */
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .6em; }
.check-list li::before { content: '✔'; color: var(--accent2); font-weight: 700; flex-shrink: 0; margin-top: 3px; }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Rich text sections */
.rich-text p { margin-bottom: 1.3em; }
.rich-text h3 { margin-top: 28px; margin-bottom: 12px; }

/* CTA section */
.cta-section { text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: #ccd5f4; font-size: 19px; max-width: 620px; margin: 0 auto 0; }


/* --- Home hero readability improvements ------------------- */
.hero-bg {
  background: linear-gradient(rgba(7, 16, 42, 0.82), rgba(7, 16, 42, 0.76)),
              url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero .hero-content {
  background: rgba(8, 18, 46, 0.35);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.hero .hero-subtitle { color: #eef4ff; }
.hero .btn-outline {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.85);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.24);
}

/* --- Blog styles ------------------------------------------ */
.blog-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
  margin-top:36px;
}
.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  text-decoration:none;
  color:var(--text);
  display:block;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,43,94,.18); text-decoration:none; color:var(--text); }
.blog-card img { width:100%; height:220px; object-fit:cover; }
.blog-card-body { padding:24px; }
.blog-card-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.blog-pill { display:inline-block; font-size:12px; font-weight:700; padding:4px 10px; border-radius:20px; background:var(--light-bg); color:var(--primary); text-transform:uppercase; letter-spacing:.4px; }
.blog-card h3 { font-size:22px; margin-bottom:10px; }
.blog-card p { font-size:16px; color:var(--gray); margin-bottom:18px; }
.blog-readmore { font-weight:700; color:var(--accent); }
.blog-hero-image { margin: 18px 0 32px; }
.blog-hero-image img { width:100%; border-radius:18px; box-shadow: var(--shadow); }
.article-meta { display:flex; gap:12px; flex-wrap:wrap; color:var(--gray); font-size:14px; margin: 10px 0 18px; }
.article-meta .blog-pill { background:#edf1fb; }
.article-content { max-width: 900px; margin: 0 auto; }
.article-content h2 { margin-top: 42px; margin-bottom: 14px; }
.article-content h3 { margin-top: 28px; margin-bottom: 12px; }
.article-content p { margin-bottom: 1.25em; }
.article-intro { font-size: 19px; color: var(--text); }
.breadcrumbs { font-size:14px; color:var(--gray); margin-bottom:16px; }
.breadcrumbs a { color:var(--gray); }
.breadcrumbs a:hover { color:var(--accent); }


/* ── Dropdown hover fix: bridge padding so cursor can reach submenu ── */
.nav-item {
  position: relative;
}
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  /* padding-top bridges the gap between nav link and dropdown */
  padding-top: 8px;
  margin-top: -2px;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}
/* Invisible pseudo-element covers the gap between nav-link bottom and dropdown top */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px; /* matches gap */
  display: none;
}
.nav-item:hover::after {
  display: block;
}
