/* ===========================
   EL BLOG DE ANA — MAIN STYLES
   =========================== */

:root {
  --blue-dark: #0f3d4a;
  --blue-mid: #0e7490;
  --blue-light: #2faec7;
  --blue-pale: #e0f5f8;
  --gold: #c9893a;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --off-white: #f8fafc;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15,61,74,0.10);
  --shadow-lg: 0 8px 40px rgba(15,61,74,0.15);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-w: 1200px;
  --max-w-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--blue-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
em { color: var(--blue-mid); font-style: normal; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,168,0.35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,116,144,0.4); }
.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border: 2px solid var(--blue-mid);
}
.btn-outline:hover { background: var(--blue-mid); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-pale); transform: translateY(-2px); }

/* ── NAVBAR ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue-dark);
  line-height: 1;
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.nav-links li a:hover, .nav-links li a.active { background: var(--blue-pale); color: var(--blue-mid); }
.nav-cta {
  background: var(--blue-mid) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: #67e8f9; }
.hero-text { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(10px);
}
.hero-stats { display: grid; grid-template-columns: 1fr; gap: 28px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  color: var(--blue-mid);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── SERVICES ── */
.services-preview { padding: 100px 0; background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.service-card.featured { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.service-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }
.service-link { color: var(--blue-mid); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s; }
.service-link:hover { color: var(--blue-dark); }
.services-cta { text-align: center; }

/* ── BLOG POSTS GRID ── */
.blog-preview { padding: 100px 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  background: var(--white);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-image { aspect-ratio: 16/9; overflow: hidden; background: var(--blue-pale); }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-image img { transform: scale(1.04); }
.post-content { padding: 24px; }
.post-category {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.post-content h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.post-content h3 a:hover { color: var(--blue-mid); }
.post-content p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; }
.post-meta time { color: var(--text-light); font-size: 0.8rem; }
.read-more { color: var(--blue-mid); font-size: 0.85rem; font-weight: 600; }
.blog-cta { text-align: center; }

/* ── BLOG LIST PAGE ── */
.blog-list { padding: 60px 0 100px; }
.page-hero { background: var(--blue-pale); padding: 60px 0; margin-bottom: 0; }
.page-hero h1 { color: var(--blue-dark); }
.page-desc { color: var(--text-light); margin-top: 12px; font-size: 1.05rem; }

/* ── ARTICLE PAGE ── */
.article-page { padding-bottom: 80px; }
.article-header { background: var(--blue-pale); padding: 60px 0 48px; }
.article-header h1 { margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.9rem; flex-wrap: wrap; }
.article-cover { margin: 40px 0; }
.article-cover img { border-radius: var(--radius); width: 100%; max-height: 480px; object-fit: cover; }
.article-body { padding-top: 40px; }
.article-body h2, .article-body h3 { margin-top: 2em; margin-bottom: 0.7em; }
.article-body p { margin-bottom: 1.2em; font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 1em 0 1.2em 1.5em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote { border-left: 4px solid var(--blue-mid); background: var(--blue-pale); padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 2em 0; font-style: italic; color: var(--blue-dark); }
.article-footer { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tag { background: var(--blue-pale); color: var(--blue-mid); padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; }
.article-share { margin-bottom: 40px; }
.article-share p { font-weight: 600; margin-bottom: 12px; }
.share-btn { display: inline-block; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-right: 8px; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.article-cta { background: var(--blue-pale); border-radius: var(--radius); padding: 36px; text-align: center; }
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--text-light); margin-bottom: 20px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--blue-mid); color: var(--white); transform: translateY(-2px); }
.footer-links h4, .footer-contact h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a, .footer-contact p, .footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links ul li a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact p { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; }
.pagination a { background: var(--blue-pale); color: var(--blue-mid); font-weight: 600; }
.pagination a:hover { background: var(--blue-mid); color: var(--white); }
.pagination .active { background: var(--blue-mid); color: var(--white); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px; gap: 4px; box-shadow: var(--shadow); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { padding: 70px 0 60px; }
  .services-grid, .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Todos los grids inline pasan a columna única en móvil */
  [style*="grid-template-columns"] {
    display: block !important;
  }

  /* Espacio entre bloques apilados */
  [style*="grid-template-columns"] > div,
  [style*="grid-template-columns"] > a,
  [style*="grid-template-columns"] > article {
    margin-bottom: 20px !important;
  }

  /* Padding reducido en móvil */
  section[style*="padding: 80px 0"],
  section[style*="padding: 100px 0"],
  section[style*="padding: 60px 0"] {
    padding: 36px 0 !important;
  }

  /* Logo tagline oculto en móvil */
  .logo-tagline { display: none; }

  /* Texto hero más pequeño */
  .hero h1 { font-size: 1.75rem !important; }
  .hero-text { font-size: 0.95rem !important; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Imágenes full width en móvil */
  [style*="max-height:380px"], [style*="max-height:420px"], [style*="max-height:440px"] {
    max-height: 220px !important;
  }

  /* Padding en cajas de texto reducido */
  [style*="padding: 48px"], [style*="padding: 60px"] {
    padding: 24px !important;
  }

  /* Botones centrados */
  .btn { display: block; text-align: center; }
  .hero-actions .btn { display: inline-block; }

  /* Article body */
  .article-header, .article-body, .article-footer { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
