/*
Theme Name: Vellex Core
Theme URI: https://vellex.com.mx
Author: Fresh Dev
Author URI: https://vellex.com.mx
Description: Tema minimalista para Vellex — Perfección para todos. Integra la landing estática con el plugin AI Blog Generator.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vellex-core
*/

/* ===============================================
   VELLEX — OBSIDIAN LUXE DESIGN SYSTEM
   =============================================== */

:root {
  --obsidian: #0A0A0A;
  --glass-grey: #1C1C1E;
  --gold: #D4AF37;
  --gold-light: #E8C84A;
  --silver: #F2F2F7;
  --white: #FFFFFF;
  --surface: #141416;
  --border: rgba(212, 175, 55, .15);
  --border-subtle: rgba(255, 255, 255, .06);
  --radius: 14px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--obsidian);
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* ---- UTILS ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #B8962E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.2rem;
  background: rgba(212, 175, 55, .06);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: rgba(242, 242, 247, .65);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---- CURSOR GLOW ---- */
#cglow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left .18s ease, top .18s ease;
  will-change: left, top;
}

/* ---- PARTICLES ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

.logo-tag {
  font-size: .6rem;
  color: rgba(242, 242, 247, .45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: rgba(242, 242, 247, .75);
  font-size: .88rem;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), #B8962E) !important;
  color: var(--obsidian) !important;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: .82rem !important;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, .35);
}

/* ---- NAV DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropbtn {
  cursor: pointer;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 10, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 220px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-dropdown-content li {
  width: 100%;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(242, 242, 247, 0.75);
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-dropdown-content a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold), #B8962E);
  color: var(--obsidian);
  border: none;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, .4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(242, 242, 247, .25);
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .06);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

/* ---- HERO COMPONENTS ---- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: rgba(212, 175, 55, .12);
  top: -10%;
  left: -10%;
  animation: driftA 18s ease-in-out infinite alternate;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, .08);
  bottom: -10%;
  right: -5%;
  animation: driftB 22s ease-in-out infinite alternate;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: rgba(180, 120, 30, .06);
  top: 40%;
  left: 60%;
  animation: driftA 20s ease-in-out infinite alternate-reverse;
}

@keyframes driftA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}

@keyframes driftB {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, 30px); }
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .35rem 1rem;
  margin-bottom: 1.5rem;
}

.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* ---- FOOTER ---- */
#footer {
  background: var(--obsidian);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tag {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: .3rem 0 1rem;
}

.footer-desc {
  font-size: .84rem;
  color: rgba(242, 242, 247, .45);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 999px;
  padding: .4rem 1rem;
  transition: background .2s;
}

.footer-wa:hover {
  background: rgba(212, 175, 55, .08);
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242, 242, 247, .4);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-col a {
  font-size: .84rem;
  color: rgba(242, 242, 247, .55);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: .72rem;
  color: rgba(242, 242, 247, .3);
  line-height: 1.7;
}

.footer-legal {
  margin-top: .5rem;
}

/* ---- WA FLOAT ---- */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: floatIn .6s 1s both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

#wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, .5);
}

#wa-float span {
  font-size: .85rem;
}

/* ---- ANIMATIONS ---- */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- SERVICIOS ---- */
#servicios { padding: 100px 0; background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.scard {
  background: var(--glass-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.scard-img { margin: -2rem -2rem 1.5rem -2rem; height: 180px; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--transition); }
.scard:hover .scard-img img { transform: scale(1.05); }

.scard::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); opacity: 0; transition: opacity .3s; }
.scard:hover { border-color: rgba(212,175,55,.3); transform: translateY(-4px); }
.scard:hover::after { opacity: 1; }

.scard-icon { font-size: 1.3rem; color: var(--gold); margin-bottom: .8rem; }
.scard h3 { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.scard p { font-size: .87rem; color: rgba(242,242,247,.6); flex: 1; margin-bottom: 1.2rem; }

.scard-btn {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  border: 1px solid rgba(212,175,55,.3); border-radius: 999px; padding: .4rem .9rem;
  transition: background .2s, color .2s; align-self: flex-start;
}
.scard-btn:hover { background: var(--gold); color: var(--obsidian); }

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(184,150,46,.06));
  border: 1px solid rgba(212,175,55,.3); border-radius: var(--radius-lg);
  padding: 2rem 2.5rem; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.promo-badge { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .4rem; }
.promo-text h3 { font-size: 1.4rem; font-weight: 700; }
.promo-text p { color: rgba(242,242,247,.75); margin-top: .3rem; }
.promo-text del { color: rgba(242,242,247,.4); }

/* ---- MEDS ---- */
#meds { padding: 100px 0; }

.meds-grid { display: flex; flex-direction: column; gap: 3rem; }
.meds-section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.meds-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.mcard { background: rgba(28,28,30,.8); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 1.5rem; transition: border-color var(--transition), background var(--transition); }
.mcard:hover { border-color: rgba(212,175,55,.25); background: rgba(28,28,30,1); }
.mcard-gold { border-color: rgba(212,175,55,.2); }
.mcard-gold:hover { border-color: var(--gold); }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.mcard h4 { font-size: .92rem; font-weight: 700; line-height: 1.3; }
.mcard-price { font-size: .85rem; font-weight: 800; color: var(--gold); white-space: nowrap; background: rgba(212,175,55,.08); border-radius: 999px; padding: .15rem .6rem; }
.mcard p { font-size: .82rem; color: rgba(242,242,247,.6); margin-bottom: .9rem; }
.mcard-link { font-size: .78rem; font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: .04em; transition: opacity .2s; }
.mcard-link:hover { opacity: .7; }
.meds-cta { text-align: center; padding-top: 2rem; }
.meds-cta p { color: rgba(242,242,247,.5); font-size: .85rem; margin-bottom: 1.2rem; }

/* ---- ESPECIALIDADES ---- */
.spec-grid { display: flex; flex-direction: column; }
.spec-card { display: flex; flex-direction: column; gap: 2rem; background: rgba(28,28,30,.3); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 3rem; margin-bottom: 2rem; }
.spec-img { border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 400px; }
.spec-img img { width: 100%; height: auto; object-fit: cover; }
.spec-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.spec-content h3 { font-size: 2.2rem; font-family: 'Cormorant Garamond', serif; margin-bottom: 1rem; line-height: 1.1; }
.spec-content p { color: rgba(242,242,247,.65); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }
.spec-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.sp-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border-subtle); }
.sp-card .sp-title { font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.sp-card .sp-ref { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.sp-card .sp-price { font-size: 1.5rem; font-weight: 900; }
.sp-card .sp-price span { font-size: .8rem; font-weight: 400; color: rgba(242,242,247,.4); }
.spec-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; color: rgba(242,242,247,.65); margin-bottom: 2rem; }
.spec-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.spec-list li::before { content: '✦'; color: var(--gold); }
.spec-result { font-size: .95rem; color: rgba(242,242,247,.65); margin-bottom: 2rem; border-left: 2px solid var(--gold); padding-left: 1rem; }

@media (min-width: 900px) {
  .spec-card { flex-direction: row; align-items: stretch; }
  .spec-img { flex: 1; max-width: 45%; }
  .spec-content { flex: 1.2; padding-left: 1.5rem; }
}

/* ---- PAQUETES ---- */
#paquetes { padding: 100px 0; background: var(--surface); }
.packages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pkg-card { background: var(--glass-grey); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.pkg-card-img { margin: -2.2rem -2.2rem 0 -2.2rem; height: 200px; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.pkg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--transition); }
.pkg-card:hover .pkg-card-img img { transform: scale(1.05); }
.pkg-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.35); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pkg-card-hero { border-color: rgba(212,175,55,.3); background: linear-gradient(135deg, rgba(28,28,30,1), rgba(20,16,8,1)); }
.pkg-number { font-size: .7rem; font-weight: 900; letter-spacing: .2em; color: var(--gold); opacity: .6; }
.pkg-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.pkg-sub { font-size: .82rem; color: rgba(212,175,55,.75); font-style: italic; }
.pkg-includes { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.pkg-includes li { display: flex; justify-content: space-between; font-size: .82rem; color: rgba(242,242,247,.65); padding-bottom: .4rem; border-bottom: 1px solid var(--border-subtle); }
.pkg-includes li span { color: rgba(212,175,55,.7); font-weight: 700; font-size: .78rem; white-space: nowrap; margin-left: .5rem; }
.pkg-pricing { display: flex; align-items: baseline; gap: .8rem; }
.pkg-real { color: rgba(242,242,247,.35); font-size: .85rem; }
.pkg-price { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.pkg-finance { font-size: .8rem; color: rgba(242,242,247,.5); }
.pkg-finance strong { color: var(--gold); }

/* ---- PROCESO ---- */
#proceso { padding: 100px 0; }
.process-steps { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.pstep { background: var(--glass-grey); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; flex: 1; min-width: 200px; max-width: 240px; transition: border-color var(--transition), transform var(--transition); }
.pstep:hover { border-color: rgba(212,175,55,.3); transform: translateY(-4px); }
.pstep-num { font-size: .7rem; font-weight: 900; letter-spacing: .15em; color: var(--gold); opacity: .5; margin-bottom: .5rem; }
.pstep-icon { font-size: 2rem; margin-bottom: .8rem; }
.pstep h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.pstep p { font-size: .82rem; color: rgba(242,242,247,.55); }
.pstep-arrow { font-size: 1.5rem; color: rgba(212,175,55,.3); flex-shrink: 0; }

/* ---- CTA FINAL ---- */
#cta-final { padding: 120px 0; background: var(--surface); position: relative; overflow: hidden; text-align: center; }
.cta-final-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-final-content h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; margin: 1rem 0; }
.cta-final-content p { color: rgba(242,242,247,.65); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-final-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- EXIT POPUP ---- */
#popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1998; backdrop-filter: blur(4px); }
#exit-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.95); z-index: 1999; background: var(--glass-grey); border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 420px; width: 90%; transition: transform .3s, opacity .3s; text-align: center; }
#exit-popup.show { display: block; }
#popup-overlay.show { display: block; }
.popup-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: rgba(242,242,247,.4); font-size: 1.1rem; cursor: pointer; }
.popup-badge { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); margin-bottom: .8rem; }
#exit-popup h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .8rem; }
#exit-popup p { font-size: .9rem; color: rgba(242,242,247,.65); margin-bottom: 1.5rem; }
#exit-popup strong { color: var(--gold); }


/* ===============================================
   BLOG — ARCHIVE AI_BLOG
   =============================================== */

.blog-hero {
  position: relative;
  padding: 140px 1.5rem 80px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-hero .hero-orb { z-index: 0; }

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: rgba(242, 242, 247, .6);
  max-width: 520px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid-section {
  padding: 60px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* Blog Card */
.blog-card {
  background: var(--glass-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity .3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, .3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.blog-card:hover::after {
  opacity: 1;
}

/* Card Image */
.blog-card-image {
  display: block;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

/* Card Image Fallback */
.blog-card-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, rgba(212, 175, 55, .12), rgba(184, 150, 46, .06));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 3rem;
  color: var(--gold);
  opacity: .4;
}

/* Card Body */
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .8rem;
  align-self: flex-start;
  text-decoration: none;
  transition: background .2s;
}

.blog-card-category:hover {
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .6rem;
}

.blog-card-title a {
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
}

.blog-card-title a:hover {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: .85rem;
  color: rgba(242, 242, 247, .55);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(242, 242, 247, .35);
  padding-top: .8rem;
  border-top: 1px solid var(--border-subtle);
}

.blog-card-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  opacity: .5;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  color: rgba(242, 242, 247, .6);
  background: var(--glass-grey);
  border: 1px solid var(--border-subtle);
}

.blog-pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, .06);
}

.blog-pagination span.current {
  background: linear-gradient(135deg, var(--gold), #B8962E);
  color: var(--obsidian);
  border-color: var(--gold);
  font-weight: 800;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: .3;
}

.blog-empty h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .8rem;
}

.blog-empty p {
  color: rgba(242, 242, 247, .45);
  font-size: 1rem;
}

/* Blog CTA */
.blog-cta {
  padding: 80px 0;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.blog-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.blog-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-cta p {
  color: rgba(242, 242, 247, .6);
  margin-bottom: 2rem;
}


/* ===============================================
   BLOG — SINGLE AI_BLOG
   =============================================== */

/* Single Hero */
.single-blog-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.single-blog-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--obsidian) 0%, rgba(10,10,10,.4) 50%, rgba(10,10,10,.2) 100%);
}

.single-blog-hero-fallback {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(212,175,55,.08) 50%, var(--obsidian) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-blog-hero-fallback-icon {
  font-size: 5rem;
  opacity: .15;
}

/* Back button float */
.blog-back-float {
  position: fixed;
  top: 80px;
  left: 24px;
  z-index: 997;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(10, 10, 10, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(242, 242, 247, .7);
  text-decoration: none;
  transition: all var(--transition);
}

.blog-back-float:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(10, 10, 10, .95);
}

/* Single Article Container */
.single-blog-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 80px;
}

/* Single Header Card */
.single-blog-header {
  background: var(--glass-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.single-blog-categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.single-blog-cat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 999px;
  padding: .25rem .8rem;
  text-decoration: none;
  transition: background .2s;
}

.single-blog-cat-badge:hover {
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
}

.single-blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.single-blog-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(242, 242, 247, .5);
}

.single-blog-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.single-blog-meta-item svg {
  width: 15px;
  height: 15px;
  opacity: .5;
}

/* Single Content Styles */
.single-blog-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(242, 242, 247, .8);
}

.single-blog-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--silver);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.single-blog-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--silver);
  margin: 2rem 0 .8rem;
}

.single-blog-content p {
  margin-bottom: 1.3rem;
}

.single-blog-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 175, 55, .3);
  transition: text-decoration-color .2s;
}

.single-blog-content a:hover {
  text-decoration-color: var(--gold);
}

.single-blog-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212, 175, 55, .04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: rgba(242, 242, 247, .7);
}

.single-blog-content ul,
.single-blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
}

.single-blog-content li {
  margin-bottom: .4rem;
}

.single-blog-content ul li::marker {
  color: var(--gold);
}

.single-blog-content ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

.single-blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}

.single-blog-content table th,
.single-blog-content table td {
  padding: .8rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.single-blog-content table th {
  background: rgba(212, 175, 55, .06);
  color: var(--gold);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.single-blog-content table td {
  color: rgba(242, 242, 247, .7);
}

.single-blog-content table tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.single-blog-content code {
  background: rgba(255, 255, 255, .06);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--gold-light);
}

.single-blog-content pre {
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.single-blog-content pre code {
  background: none;
  padding: 0;
  color: rgba(242, 242, 247, .75);
}

.single-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* TOC Styles */
.single-blog-content .aibg-toc {
  background: rgba(212, 175, 55, .04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.single-blog-content .aibg-toc .aibg-toc-title {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.single-blog-content .aibg-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-blog-content .aibg-toc li {
  margin-bottom: .5rem;
}

.single-blog-content .aibg-toc li a {
  color: rgba(242, 242, 247, .65);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.single-blog-content .aibg-toc li a:hover {
  color: var(--gold);
}

/* Content images */
.single-blog-content .aibg-content-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-blog-content .aibg-content-image img {
  width: 100%;
  border-radius: var(--radius);
  margin: 0;
}

/* Single Tags */
.single-blog-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.single-blog-tag {
  display: inline-block;
  padding: .3rem .8rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: .78rem;
  color: rgba(242, 242, 247, .5);
  text-decoration: none;
  transition: all .2s;
}

.single-blog-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, .06);
}

/* Post Navigation */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.blog-post-nav-item {
  background: var(--glass-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
}

.blog-post-nav-item:hover {
  border-color: rgba(212, 175, 55, .3);
  transform: translateY(-2px);
}

.blog-post-nav-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .4rem;
}

.blog-post-nav-title {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(242, 242, 247, .75);
  line-height: 1.4;
}

.blog-post-nav-item.next {
  text-align: right;
}


/* ===============================================
   RESPONSIVE
   =============================================== */

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: .5rem;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, .97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: .4rem 0;
  }

  .nav-cta {
    margin-top: .5rem;
    align-self: flex-start;
  }

  .nav-dropdown-content {
    position: static;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0.5rem;
    margin-left: 1rem;
    border-left: 1px solid var(--border-subtle);
    border-radius: 0;
  }

  .nav-dropdown:hover .nav-dropdown-content {
    display: flex;
    flex-direction: column;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-nav {
    grid-template-columns: 1fr;
  }

  .single-blog-hero {
    height: 280px;
  }

  .single-blog-header {
    padding: 1.5rem;
    margin-top: -40px;
  }

  .single-blog-content {
    font-size: .95rem;
  }

  .blog-back-float {
    top: 74px;
    left: 12px;
    font-size: .75rem;
    padding: .4rem .8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .meds-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .pstep-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .pstep {
    max-width: none;
  }

  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-final-btns {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #wa-float span {
    display: none;
  }

  #wa-float {
    padding: .85rem;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .blog-hero-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .single-blog-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .single-blog-meta {
    flex-direction: column;
    gap: .6rem;
  }

  .mcard-top {
    flex-direction: column;
    gap: .3rem;
  }

  .pkg-price {
    font-size: 1.3rem;
  }
}
