/* ═══════════════════════════════════════════════════════════════════
   VIVEBUCEO — main.css
   Estilos globales, componentes reutilizables, blog, páginas
   ═══════════════════════════════════════════════════════════════════ */

/* ── LAYOUT PRINCIPAL ───────────────────────────────────────────── */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

/* Header transparente — sin padding, el hero empieza arriba del todo */
#content { padding-top: 0; }

/* Header sólido en PC: es fixed, el contenido necesita padding-top */
@media (min-width: 961px) {
  #content.vb-has-solid-header {
    padding-top: var(--vb-header-height);
  }
}

/* En móvil el header sólido es position:relative — sin padding necesario */
@media (max-width: 960px) {
  #content.vb-has-solid-header { padding-top: 0; }
}

/* ── BOTONES GLOBALES ────────────────────────────────────────────── */
.vb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 12px 24px; border-radius: var(--vb-radius);
  border: none; cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.vb-btn::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease; pointer-events: none;
}
.vb-btn:hover::after { left: 140%; }

.vb-btn-primary { background: var(--vb-light); color: var(--vb-white); }
.vb-btn-primary:hover { background: #0f9fb8; color: var(--vb-white); }

.vb-btn-dark { background: var(--vb-mid); color: var(--vb-white); }
.vb-btn-dark:hover { background: #094570; color: var(--vb-white); }

.vb-btn-gold { background: var(--vb-gold); color: var(--vb-deep); }
.vb-btn-gold:hover { background: #dda020; color: var(--vb-deep); }

.vb-btn-outline {
  background: transparent; color: var(--vb-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.vb-btn-outline:hover { border-color: var(--vb-white); color: var(--vb-white); }

.vb-btn-outline-dark {
  background: transparent; color: var(--vb-deep);
  border: 2px solid var(--vb-light);
}
.vb-btn-outline-dark:hover { background: var(--vb-light); color: var(--vb-white); }

/* ── SECCIONES ───────────────────────────────────────────────────── */
.vb-section { padding: 72px 0; }
.vb-section-alt { background: var(--vb-alt); }
.vb-section-dark { background: var(--vb-deep); color: var(--vb-white); }
.vb-section-mid { background: var(--vb-mid); color: var(--vb-white); }

.vb-section-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--vb-teal); margin-bottom: 10px;
}
.vb-section-dark .vb-section-label,
.vb-section-mid .vb-section-label { color: var(--vb-light); }

.vb-section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.vb-section-dark .vb-section-title { color: var(--vb-white); }

.vb-section-sub {
  font-size: 15px; color: var(--vb-muted);
  max-width: 560px; line-height: 1.7; margin-bottom: 44px;
}
.vb-section-dark .vb-section-sub { color: rgba(255,255,255,0.7); }
.vb-section-sub a { color: var(--vb-teal); }

/* ── SEPARADOR DECORATIVO ────────────────────────────────────────── */
.vb-divider {
  width: 48px; height: 3px;
  background: var(--vb-light);
  border-radius: 2px; margin-bottom: 24px;
}

/* ── GRID CARDS ─────────────────────────────────────────────────── */
.vb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--vb-gap); }
.vb-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--vb-gap); }
.vb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--vb-gap); }

/* ── CARD BASE ───────────────────────────────────────────────────── */
.vb-card {
  background: var(--vb-white);
  border-radius: var(--vb-radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(4,30,46,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.vb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(4,30,46,0.14);
}

/* ── BADGE ───────────────────────────────────────────────────────── */
.vb-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--vb-light); border: 1px solid var(--vb-light);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 20px;
}

/* ── LISTA CON BULLETS ───────────────────────────────────────────── */
.vb-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.vb-list li {
  font-size: 13.5px; color: var(--vb-text);
  padding-left: 14px; position: relative; line-height: 1.5;
  margin-bottom: 0;
}
.vb-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--vb-light); border-radius: 50%;
  position: absolute; left: 0; top: 7px;
}

/* ── LISTA CON FLECHAS ───────────────────────────────────────────── */
.vb-arrows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vb-arrows li {
  font-size: 13px; color: var(--vb-text);
  padding-left: 18px; position: relative; line-height: 1.5; margin-bottom: 0;
}
.vb-arrows li::before {
  content: '→'; color: var(--vb-teal);
  font-weight: 700; position: absolute; left: 0; top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════════ */
.vb-blog-hero {
  background: var(--vb-deep);
  padding: 100px 0 60px;
  color: var(--vb-white);
  text-align: center;
}
.vb-blog-hero h1 { color: var(--vb-white); font-size: clamp(32px,5vw,56px); margin-bottom: 12px; }
.vb-blog-hero p { color: rgba(255,255,255,0.7); font-size: 16px; }

/* Grid de posts */
.vb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 60px 0;
}

/* Post card */
.vb-post-card {
  background: var(--vb-white);
  border-radius: var(--vb-radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(4,30,46,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vb-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(4,30,46,0.13);
}
.vb-post-card-img {
  height: 200px; overflow: hidden;
  background: var(--vb-alt);
}
.vb-post-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.vb-post-card:hover .vb-post-card-img img { transform: scale(1.04); }
.vb-post-card-body {
  flex: 1; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.vb-post-meta {
  font-size: 12px; color: var(--vb-muted);
  display: flex; gap: 12px; align-items: center;
}
.vb-post-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--vb-teal);
  text-decoration: none;
}
.vb-post-cat:hover { color: var(--vb-light); }
.vb-post-card-title {
  font-size: 18px; font-weight: 700;
  color: var(--vb-deep); line-height: 1.3; margin-bottom: 0;
}
.vb-post-card-title a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.vb-post-card-title a:hover { color: var(--vb-teal); }
.vb-post-excerpt {
  font-size: 13.5px; color: var(--vb-muted);
  line-height: 1.6; flex: 1;
}
.vb-read-more {
  font-size: 13px; font-weight: 600;
  color: var(--vb-teal); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}
.vb-read-more:hover { color: var(--vb-light); gap: 8px; }

/* Paginación */
.vb-pagination {
  display: flex; justify-content: center;
  gap: 8px; padding: 20px 0 60px;
}
.vb-pagination a,
.vb-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--vb-deep); background: var(--vb-alt);
  transition: all 0.2s;
}
.vb-pagination a:hover,
.vb-pagination .current {
  background: var(--vb-light); color: var(--vb-white);
}

/* ═══════════════════════════════════════════════════════════════════
   ENTRADA INDIVIDUAL DE BLOG
   ═══════════════════════════════════════════════════════════════════ */
.vb-single-hero {
  background: var(--vb-deep);
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
}
.vb-single-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,30,46,0.9) 0%, rgba(4,30,46,0.4) 100%);
}
.vb-single-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.4;
}
.vb-single-hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
}
.vb-single-hero h1 {
  color: var(--vb-white);
  font-size: clamp(28px,4vw,48px); margin-bottom: 16px;
}
.vb-single-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.65);
}

/* Contenido del post */
.vb-single-content {
  max-width: 780px; margin: 0 auto;
  padding: 56px 0;
}
.vb-single-content h2 { font-size: 26px; margin: 2rem 0 1rem; }
.vb-single-content h3 { font-size: 20px; margin: 1.5rem 0 0.75rem; }
.vb-single-content p { margin-bottom: 1.25rem; line-height: 1.8; }
.vb-single-content img { border-radius: var(--vb-radius); margin: 1.5rem 0; }
.vb-single-content ul, .vb-single-content ol { margin-bottom: 1.25rem; }
.vb-single-content li { margin-bottom: 0.4rem; }
.vb-single-content blockquote {
  border-left: 4px solid var(--vb-light);
  margin: 1.5rem 0; padding: 1rem 1.5rem;
  background: var(--vb-alt); border-radius: 0 var(--vb-radius) var(--vb-radius) 0;
  font-style: italic; color: var(--vb-muted);
}
.vb-single-content a { color: var(--vb-teal); }
.vb-single-content a:hover { color: var(--vb-light); }

/* Posts relacionados */
.vb-related { background: var(--vb-alt); padding: 56px 0; }
.vb-related-title { font-size: 22px; margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════════════════
   PÁGINAS GENÉRICAS
   ═══════════════════════════════════════════════════════════════════ */
.vb-page-hero {
  background: var(--vb-deep);
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
  color: var(--vb-white);
}
.vb-page-hero h1 { color: var(--vb-white); font-size: clamp(32px,5vw,56px); }
.vb-page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 600px; margin-top: 12px; }

.vb-page-content {
  max-width: 900px; margin: 0 auto;
  padding: 60px 0;
}
.vb-page-content h2 { font-size: 26px; margin: 2rem 0 1rem; color: var(--vb-deep); }
.vb-page-content h3 { font-size: 20px; margin: 1.5rem 0 0.75rem; }
.vb-page-content p { margin-bottom: 1.25rem; line-height: 1.8; }

/* ═══════════════════════════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════════════════════════ */
.vb-404 {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.vb-404-num {
  font-size: clamp(80px,15vw,180px);
  font-weight: 800; color: var(--vb-light);
  line-height: 1; margin-bottom: 16px;
}
.vb-404 h1 { font-size: clamp(24px,4vw,40px); margin-bottom: 12px; }
.vb-404 p { color: var(--vb-muted); font-size: 16px; margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════════════════════ */
.vb-reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.vb-reveal.vb-visible { opacity: 1; transform: translateY(0); }
.vb-reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}
.vb-reveal-left.vb-visible { opacity: 1; transform: translateX(0); }
.vb-reveal-d1 { transition-delay: 0.1s; }
.vb-reveal-d2 { transition-delay: 0.2s; }
.vb-reveal-d3 { transition-delay: 0.3s; }
.vb-reveal-d4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vb-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .vb-section { padding: 48px 0; }
  .vb-grid-3 { grid-template-columns: 1fr 1fr; }
  .vb-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .vb-grid-3, .vb-grid-4 { grid-template-columns: 1fr; }
  .vb-posts-grid { grid-template-columns: 1fr; }
  .vb-single-content, .vb-page-content { padding: 36px 0; }
}

/* ── Opciones por página (metaboxes) ─────────────────────────────── */

/* Contenido full width sin container */
.vb-page-full { width: 100%; }

/* Sin padding top cuando el contenido empieza arriba del todo */
.vb-content-overlap { padding-top: 0 !important; }

/* Título oculto */
.vb-hide-title .entry-title,
.vb-hide-title .page-title { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   ESCALA TIPOGRÁFICA COMPLETA
   Fluid typography: se adapta entre móvil y escritorio
   ═══════════════════════════════════════════════════════════════════ */

/* ── Headings con escala modular ────────────────────────────────── */
h1, .vb-h1 {
  font-family: var(--vb-font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--vb-deep);
  margin-bottom: 0.5em;
}

h2, .vb-h2 {
  font-family: var(--vb-font-heading);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--vb-deep);
  margin-bottom: 0.5em;
}

h3, .vb-h3 {
  font-family: var(--vb-font-heading);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--vb-deep);
  margin-bottom: 0.4em;
}

h4, .vb-h4 {
  font-family: var(--vb-font-heading);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--vb-deep);
  margin-bottom: 0.4em;
}

h5, .vb-h5 {
  font-family: var(--vb-font-heading);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--vb-deep);
  margin-bottom: 0.35em;
}

h6, .vb-h6 {
  font-family: var(--vb-font-heading);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vb-teal);
  margin-bottom: 0.35em;
}

/* ── Párrafos y texto base ──────────────────────────────────────── */
p {
  font-family: var(--vb-font-body);
  font-size: var(--vb-size-base);
  line-height: var(--vb-line-height);
  color: var(--vb-text);
  margin-bottom: 1.1em;
}

/* Texto grande (lead) */
.vb-lead, .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--vb-muted);
  font-weight: 400;
}

/* Texto pequeño */
small, .vb-small {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--vb-muted);
}

/* Caption / label */
.vb-caption {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--vb-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Headings dentro de secciones oscuras ───────────────────────── */
.vb-section-dark h1,
.vb-section-dark h2,
.vb-section-dark h3,
.vb-section-dark h4,
.vb-section-dark h5,
.vb-section-mid h1,
.vb-section-mid h2,
.vb-section-mid h3,
.vb-section-mid h4,
.vb-section-mid h5 {
  color: var(--vb-white);
}

.vb-section-dark h6,
.vb-section-mid h6 {
  color: var(--vb-light);
}

.vb-section-dark p,
.vb-section-mid p {
  color: rgba(255,255,255,0.75);
}

/* ── Headings específicos de secciones ViveBuceo ───────────────── */
/* El H2 de sección tiene tratamiento especial */
.vb-section-title {
  font-family: var(--vb-font-heading);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* Hero H1 — el más grande */
.vb-hero h1 {
  font-size: clamp(40px, 7vw, 100px) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.02em !important;
  color: var(--vb-white) !important;
  text-transform: uppercase !important;
  margin-bottom: 24px !important;
}

/* H2 dentro de cards — más contenido */
.vb-card h2,
.vb-card-img-label h2 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--vb-white);
  margin-bottom: 2px;
}

/* H3 en cards ¿por qué nosotros? */
.vb-why-card h3 {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--vb-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* H3 en equipo */
.vb-team-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--vb-deep);
  margin-bottom: 2px;
}

/* H2 en blog hero */
.vb-blog-hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* H1 en single post */
.vb-single-hero h1 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* H2 dentro del contenido de posts y páginas */
.vb-single-content h2,
.vb-page-content h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--vb-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.vb-single-content h3,
.vb-page-content h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--vb-deep);
  line-height: 1.3;
}

.vb-single-content h4,
.vb-page-content h4 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--vb-deep);
}

/* ── Footer headings ────────────────────────────────────────────── */
.vb-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vb-white);
  margin-bottom: 18px;
}

/* ── Links en contenido ─────────────────────────────────────────── */
.vb-single-content a,
.vb-page-content a {
  color: var(--vb-teal);
  text-decoration: underline;
  text-decoration-color: rgba(11,122,140,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.vb-single-content a:hover,
.vb-page-content a:hover {
  color: var(--vb-light);
  text-decoration-color: var(--vb-light);
}

/* ── Blockquote ─────────────────────────────────────────────────── */
blockquote {
  border-left: 4px solid var(--vb-light);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--vb-alt);
  border-radius: 0 var(--vb-radius) var(--vb-radius) 0;
}
blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--vb-muted);
  margin-bottom: 0;
  line-height: 1.75;
}

/* ── Responsive tipografía ──────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { letter-spacing: -0.01em; }
  h2 { letter-spacing: -0.01em; }
  .vb-single-content h2 { margin-top: 2rem; }
  .vb-single-content h3 { margin-top: 1.5rem; }
}
