/*
Theme Name: Grow Finance
Theme URI: https://www.growfinance.co/
Author: Grow Finance
Description: Tema a medida para Grow Finance. La portada es una landing de conversión; el blog conserva las entradas y URLs existentes de WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grow
*/

/* Los estilos de la portada van embebidos en front-page.php.
   Este archivo contiene los estilos del blog y páginas interiores. */

:root {
  --black: #1B2837;
  --navy: #243447;
  --deep: #131D29;
  --green: #5DD3A8;
  --green-dark: #4ABF95;
  --ink: #131D29;
  --muted: #5A6B7B;
  --line: #E5E7EB;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 40px -10px rgba(11, 25, 41, 0.18);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 40, 55, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark { color: var(--white); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.btn-nav {
  background: var(--green); color: var(--deep) !important;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: background .2s ease;
}
.btn-nav:hover { background: var(--green-dark); }

/* ---------- Cabecera del artículo ---------- */
.post-header { padding: 72px 0 40px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--green-dark); }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 14px; color: var(--muted); margin-bottom: 20px;
}
.tag {
  background: rgba(93, 211, 168, 0.16);
  color: #2C8C6B;
  padding: 5px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
h1.post-title {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px;
}

/* ---------- Cuerpo del artículo ---------- */
.post-body { padding-bottom: 80px; font-size: 17.5px; }
.post-body p { margin-bottom: 22px; }
.post-body h2 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; margin: 48px 0 18px;
}
.post-body h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.3; margin: 36px 0 14px;
}
.post-body h4 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 24px 22px; }
.post-body li { margin-bottom: 10px; }
.post-body strong, .post-body b { font-weight: 700; color: var(--ink); }
.post-body a { color: #2C8C6B; text-decoration: underline; text-underline-offset: 3px; }
.post-body figure { margin: 34px 0; }
.post-body img { border-radius: var(--radius); width: 100%; height: auto; }
.post-body blockquote {
  border-left: 3px solid var(--green);
  padding-left: 22px; margin: 32px 0;
  font-size: 20px; color: var(--muted); font-style: italic;
}
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* Elementor deja divs vacíos y contenedores sin sentido fuera de su tema. */
.post-body .elementor-widget-container,
.post-body .elementor-element,
.post-body .elementor-container,
.post-body .elementor-column,
.post-body .elementor-widget-wrap,
.post-body .elementor-section,
.post-body .e-con-inner {
  all: unset; display: block;
}
.post-body .elementor-heading-title {
  display: block; font-size: 22px; font-weight: 700;
  line-height: 1.3; margin: 36px 0 14px; color: var(--ink);
}

/* ---------- Llamado a la acción ---------- */
.post-cta {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  margin-bottom: 80px;
}
.post-cta h2 {
  font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; color: var(--deep);
}
.post-cta p { color: rgba(19, 29, 41, 0.72); margin-bottom: 26px; font-size: 16.5px; }
.btn-cta {
  display: inline-block; background: var(--deep); color: var(--white);
  padding: 16px 34px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .2s ease;
}
.btn-cta:hover { transform: translateY(-2px); }

/* ---------- Índice del blog ---------- */
.blog-hero { padding: 80px 0 48px; }
.blog-hero h1 {
  font-size: clamp(38px, 5vw, 62px); font-weight: 800;
  letter-spacing: -0.028em; line-height: 1.03; margin-bottom: 18px;
}
.blog-hero p { font-size: 19px; color: var(--muted); max-width: 620px; }
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; padding-bottom: 60px;
}
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 {
  font-size: 19px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.015em; margin: 12px 0 10px;
}
.post-card p { font-size: 15px; color: var(--muted); line-height: 1.55; flex: 1; }
.post-card .date { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- Blog sin entradas ---------- */
.blog-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 72px 40px 78px;
  text-align: center;
  margin-bottom: 90px;
}
.blog-empty h2 {
  font-size: clamp(24px, 2.8vw, 34px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
}
.blog-empty p {
  color: var(--muted); font-size: 17px;
  max-width: 520px; margin: 0 auto 28px;
}

/* ---------- Paginación ---------- */
.pagination {
  display: flex; gap: 10px; justify-content: center;
  padding-bottom: 80px; flex-wrap: wrap;
}
.pagination .page-numbers {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.pagination .page-numbers.current { background: var(--deep); color: var(--white); border-color: var(--deep); }

/* ---------- Página 404 y páginas simples ---------- */
.simple-page { padding: 90px 0; }
.simple-page h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 18px; }
.simple-page p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--black); color: rgba(255, 255, 255, 0.65);
  padding: 60px 24px 36px; font-size: 14px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 28px; align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px; color: rgba(255, 255, 255, 0.45);
}

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 680px) {
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .post-header { padding: 48px 0 28px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 25px; margin: 38px 0 14px; }
  .post-body h3 { font-size: 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 36px 24px; }
}
