/* ══════════════════════════════════════════════════════════════════
   main.css — ColoquIALab
   CSS común extraído de todos los ficheros PHP de v3/
   ══════════════════════════════════════════════════════════════════ */


/* ══ VARIABLES ══ */
:root {
  --mint: #12E3BC;
  --mint-dim: #0DC4A2;
  --mint-pale: #e4faf5;
  --mint-bg: #f0fdf9;
  --ink: #09100e;
  --ink-soft: #162019;
  --mid: #516860;
  --line: #dde8e4;
  --white: #ffffff;
  --off: #f6faf8;
  --dark: #0d1a15;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.16,1,.3,1);
}


/* ══ RESET ══ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }


/* ══ LAYOUT BASE ══ */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.sec { padding: 112px 0; }


/* ══ TIPOGRAFÍA DE SECCIÓN ══ */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin-bottom: 16px;
}
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--mint); display: block; }
.sec-title {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
}
.sec-title em { font-style: normal; color: var(--mint-dim); }
.sec-lead { font-size: 1rem; font-weight: 400; color: var(--mid); max-width: 520px; line-height: 1.8; }


/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
  background: transparent;
  border-bottom: none;
  transition: all .4s ease;
}
/* Nav sólido (páginas interiores y estado scrolled en home) */
.nav.solid,
.nav.scrolled {
  background: rgba(9,16,14,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav.scrolled {
  height: 66px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; color: var(--white); }
.nav-logo em { font-style: normal; color: var(--mint); }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--mint); }

@keyframes ctaSonar {
  0%   { box-shadow: 0 0 0 0 rgba(18,227,188,.6); }
  70%  { box-shadow: 0 0 0 14px rgba(18,227,188,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,227,188,0); }
}
@keyframes ctaShimmer {
  0%       { left: -100%; }
  40%,100% { left: 160%; }
}
.nav-cta {
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 50px;
  transition: all .2s;
  border: 2px solid var(--mint);
  position: relative;
  overflow: hidden;
  animation: ctaSonar 2.4s ease-out infinite;
}
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: ctaShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}
.nav-cta:hover {
  background: var(--mint-dim);
  color: var(--ink);
  transform: scale(1.05);
  box-shadow: none;
  animation: none;
}
.nav-cta:hover::after { animation: none; }

/* Hamburguesa */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil overlay */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9,16,14,.97);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  visibility: hidden;
}
.nav-mobile.open { opacity: 1; pointer-events: all; visibility: visible; }
.nav-mobile-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 80px;
}
.nav-mobile-logo { height: 36px; width: auto; }
.nav-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: .7;
  transition: opacity .2s;
}
.nav-mobile-close:hover { opacity: 1; }
.nav-mobile-close svg { width: 22px; height: 22px; }
.nav-mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}
.nav-mobile-list li { overflow: hidden; }
.nav-mobile-list a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .2s;
  display: block;
  padding: 10px 0;
}
.nav-mobile-list a:hover { color: var(--mint); }
.nav-mobile .nav-cta { font-size: .9rem; padding: 13px 36px; }


/* ══ FOOTER ══ */
.footer { background: var(--ink); padding: 68px 0 32px; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.foot-logo { display: block; margin-bottom: 14px; }
.foot-logo img { height: 40px; width: auto; opacity: .85; transition: opacity .2s; }
.foot-logo img:hover { opacity: 1; }
.foot-desc { font-size: .82rem; color: rgba(255,255,255,.28); line-height: 1.7; max-width: 210px; margin-bottom: 12px; }
.foot-mail { font-size: .82rem; color: var(--mint); }
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: rgba(255,255,255,.4);
}
.foot-social a:hover { border-color: var(--mint); color: var(--mint); background: rgba(18,227,188,.08); }
.foot-social svg { width: 15px; height: 15px; fill: currentColor; }
.foot-col h5 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-col ul a { font-size: .82rem; color: rgba(255,255,255,.38); transition: color .2s; }
.foot-col ul a:hover { color: var(--mint); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: .72rem;
  color: rgba(255,255,255,.16);
}
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: rgba(255,255,255,.16); transition: color .2s; }
.foot-legal a:hover { color: rgba(255,255,255,.42); }


/* ══ BOTONES COMUNES ══ */
.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 175px;
  overflow: hidden;
  background: transparent;
  color: var(--mint);
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid var(--mint);
  transition: background .25s, color .25s;
}
.btn-mint span { display: inline-block; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.btn-mint:hover { background: var(--mint); color: var(--ink); }
.btn-mint:hover span { transform: translateX(55px); }

.btn-dark {
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  transition: all .3s var(--ease);
  border: 2px solid var(--mint);
  display: inline-block;
}
.btn-dark:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(9,16,14,.3);
  transition: all .2s;
}
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(9,16,14,.07); }

.btn-cta {
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: .92rem;
  padding: 17px 38px;
  border-radius: 50px;
  border: 2px solid var(--ink);
  transition: all .2s;
  display: inline-block;
}
.btn-cta:hover { background: transparent; color: var(--ink); }

.btn-cta-out {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  padding: 17px 38px;
  border-radius: 50px;
  border: 2px solid rgba(9,16,14,.22);
  transition: all .2s;
  display: inline-block;
}
.btn-cta-out:hover { border-color: var(--ink); }

.btn-outline-light { display: inline-block; background: transparent; color: rgba(255,255,255,.7); font-weight: 700; font-size: .85rem; padding: 13px 30px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,.18); transition: all .2s; text-align: center; }
.btn-outline-light:hover { border-color: var(--mint); color: var(--mint); }

.cta-mail { font-size: .8rem; color: rgba(9,16,14,.45); }
.cta-mail a { color: var(--ink); font-weight: 700; }


/* ══ REVEAL / ANIMACIONES ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50%     { transform: translateY(-50%) translateX(-18px); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }


/* ══ SCROLL TO TOP ══ */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mint);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(18,227,188,.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s;
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: var(--mint-dim); }
#scroll-top svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.5; fill: none; }

/* Variante .scroll-top (usada en post.php) */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 100;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.scroll-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }


/* ══ COOKIE BANNER ══ */
#ck-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 18px 40px;
  background: var(--ink-soft);
  border-top: 2px solid rgba(18,227,188,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 40px rgba(0,0,0,.3);
  animation: ckUp .4s cubic-bezier(.16,1,.3,1) both;
}
@keyframes ckUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
#ck-banner.ck-hide { animation: ckDown .3s ease forwards; }
@keyframes ckDown {
  to { opacity: 0; transform: translateY(20px); }
}
.ck-text {
  flex: 1;
  min-width: 220px;
  font-size: .86rem;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
}
.ck-text a { color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: opacity .2s; }
.ck-text a:hover { opacity: .75; }
.ck-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ck-btn {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid;
  transition: background .2s, color .2s, border-color .2s;
}
.ck-reject { background: transparent; color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.18); }
.ck-reject:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.45); }
.ck-accept { background: transparent; color: var(--mint); border-color: var(--mint); }
.ck-accept:hover { background: var(--mint); color: var(--ink); }


/* ══ MEDIA QUERIES GLOBALES ══ */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav > .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .wrap { padding: 0 24px; }
  .sec { padding: 80px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  #ck-banner { padding: 18px 24px; }
  .ck-actions { width: 100%; justify-content: flex-end; }
  #scroll-top { bottom: 20px; right: 16px; width: 44px; height: 44px; }
}

@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 24px; }
}
