/* ===== Alucan Global Site Styles ===== */
/* Extracted from blog.html inline styles — shared across EN/ES pages */

:root {
  --primary: #2c5282;
  --accent: #d4a84b;
  --light: #f8fafc;
  --dark: #2c5282;
  --gray: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(30,58,95,0.08);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: #1e3a5f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
nav {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px; height: 44px;
  background: #d4a84b; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #1e3a5f;
}
.logo-text { color: var(--white); }
.logo-text span { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.logo-text small { font-size: 11px; opacity: 0.75; letter-spacing: 1px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.88); padding: 8px 14px;
  border-radius: 6px; font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); color: var(--white); }
.nav-cta {
  background: #d4a84b !important; color: #1e3a5f !important;
  font-weight: 700 !important; border-radius: 6px !important; padding: 8px 18px !important;
}
.nav-cta:hover { background: #e5b95c !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.lang-switch { display: flex; gap: 6px; align-items: center; margin-left: 12px; }
.lang-switch a {
  color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.lang-switch a:hover, .lang-switch a.active {
  color: #fff; background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(26,60,110,0.08);
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray);
}
.breadcrumb-inner a { color: var(--primary); font-weight: 500; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d1d5db; }

/* ===== HERO BANNER ===== */
.blog-hero {
  background: linear-gradient(135deg, #0e2247 0%, #1a3c6e 60%, #1e4a8a 100%);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 300"><circle cx="1200" cy="50" r="200" fill="rgba(232,160,32,0.06)"/><circle cx="100" cy="250" r="150" fill="rgba(232,160,32,0.04)"/></svg>') center/cover no-repeat;
}
.blog-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; text-align: center;
}
.blog-hero-tag {
  display: inline-block;
  background: rgba(232,160,32,0.18);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent);
  padding: 6px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.blog-hero h1 em { color: var(--accent); font-style: normal; }
.blog-hero p {
  font-size: 16px; color: rgba(255,255,255,0.72);
  max-width: 560px; margin: 0 auto 28px;
}
.blog-search-wrap { display: flex; justify-content: center; }
.blog-search {
  display: flex; align-items: center;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  width: 100%; max-width: 520px;
}
.blog-search input {
  flex: 1; border: none; outline: none;
  padding: 14px 22px; font-size: 14px;
  color: var(--dark); background: transparent;
  font-family: inherit;
}
.blog-search button {
  background: var(--accent); border: none; cursor: pointer;
  padding: 14px 24px; font-size: 14px; font-weight: 700;
  color: var(--primary); transition: var(--transition);
  white-space: nowrap; font-family: inherit;
}
.blog-search button:hover { background: #f5b840; }

/* ===== MAIN LAYOUT ===== */
.blog-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ===== CATEGORY FILTER ===== */
.category-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-btn {
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition);
  background: var(--light); color: var(--gray);
  font-family: inherit;
}
.cat-btn:hover, .cat-btn.active { background: var(--primary); color: var(--white); }
#post-count { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
#post-count strong { color: var(--primary); }

/* ===== FEATURED POST (top) ===== */
.featured-post {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid rgba(26,60,110,0.07);
  transition: var(--transition);
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,60,110,0.14); }
.featured-img {
  position: relative;
  background: linear-gradient(135deg, #1a3c6e, #2a5298);
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
  overflow: hidden;
}
.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
  transition: var(--transition);
}
.featured-post:hover .featured-img img { opacity: 0.75; transform: scale(1.03); }
.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,60,110,0.7), rgba(14,34,71,0.5));
  display: flex; align-items: flex-end; padding: 24px;
}
.featured-label {
  background: var(--accent); color: var(--primary);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.featured-body { padding: 32px 28px; }
.post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--gray); margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-meta .cat-tag {
  background: rgba(26,60,110,0.08);
  color: var(--primary); padding: 4px 10px;
  border-radius: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 10px;
}
.featured-body h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800; color: var(--dark);
  margin-bottom: 12px; line-height: 1.35;
}
.featured-body h2 a:hover { color: var(--primary); }
.featured-body .excerpt {
  font-size: 14px; color: var(--gray);
  margin-bottom: 22px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  padding: 10px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: var(--transition);
}
.read-more:hover { background: #2a5298; gap: 12px; }

/* ===== POST GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,60,110,0.07);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(26,60,110,0.14); }
.post-img {
  height: 190px;
  background: linear-gradient(135deg, #1a3c6e, #2a5298);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55; transition: var(--transition);
}
.post-card:hover .post-img img { opacity: 0.7; transform: scale(1.05); }
.post-img-icon {
  position: absolute;
  font-size: 48px; opacity: 0.5;
  user-select: none;
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-body h3 {
  font-size: 16px; font-weight: 700; color: var(--dark);
  margin-bottom: 10px; line-height: 1.4;
}
.post-body h3 a:hover { color: var(--primary); }
.post-body .excerpt {
  font-size: 13px; color: var(--gray); line-height: 1.65;
  margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(26,60,110,0.06);
}
.post-footer .read-link {
  color: var(--primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; transition: var(--transition);
}
.post-footer .read-link:hover { gap: 10px; }
.post-footer .read-time { font-size: 12px; color: var(--gray); }

/* no results */
.no-results { display: none; text-align: center; padding: 60px 20px; color: var(--gray); }
.no-results svg { margin: 0 auto 16px; opacity: 0.3; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,60,110,0.07);
  overflow: hidden;
}
.sidebar-card .sidebar-head {
  background: var(--primary); color: var(--white);
  padding: 14px 20px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px;
}
.sidebar-card .sidebar-body { padding: 20px; }

/* Categories list */
.cat-list { list-style: none; }
.cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(26,60,110,0.06);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-size: 13px; color: var(--dark); font-weight: 500;
  transition: var(--transition);
}
.cat-list a:hover { color: var(--primary); }
.cat-list .count {
  background: rgba(26,60,110,0.08);
  color: var(--primary); padding: 3px 9px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
}

/* Popular posts */
.popular-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(26,60,110,0.06);
}
.popular-post:last-child { border-bottom: none; }
.popular-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--primary); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}
.popular-info h4 { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
.popular-info h4 a:hover { color: var(--primary); }
.popular-info span { font-size: 11px; color: var(--gray); }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--light); color: var(--gray);
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  transition: var(--transition); border: 1px solid transparent;
}
.tag-cloud a:hover {
  background: rgba(26,60,110,0.1);
  color: var(--primary); border-color: rgba(26,60,110,0.2);
}

/* CTA card */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  border-radius: var(--radius);
  padding: 24px; text-align: center; color: var(--white);
}
.sidebar-cta h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; opacity: 0.8; margin-bottom: 18px; }
.sidebar-cta a {
  display: inline-block;
  background: var(--accent); color: var(--primary);
  padding: 11px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: var(--transition);
}
.sidebar-cta a:hover { background: #f5b840; transform: translateY(-2px); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(26,60,110,0.08);
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition); background: var(--light);
  color: var(--gray); font-family: inherit;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ===== FOOTER ===== */
footer { background: var(--primary); color: var(--white); padding: 60px 24px 24px; margin-top: 80px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-section h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--accent); }
.footer-section p, .footer-section li { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 12px; line-height: 1.6; }
.footer-section a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.footer-section a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 14px; color: rgba(255,255,255,0.6); }

/* ===== FLOATING BTN ===== */
.float-btns {
  position: fixed; bottom: 28px; right: 24px;
  display: flex; flex-direction: column; gap: 12px; z-index: 999;
}
.float-btn {
  background: var(--accent); color: var(--primary);
  border-radius: 50px; padding: 13px 20px;
  font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 18px rgba(232,160,32,0.45);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition); white-space: nowrap;
}
.float-btn:hover { background: #f5b840; transform: translateY(-3px); }
.float-wa { background: #25d366 !important; color: #fff !important; box-shadow: 0 4px 18px rgba(37,211,102,0.35); }
.float-wa:hover { background: #20c55b !important; }

/* ===== ARTICLE MODAL (full content) ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
  padding: 30px 20px; overflow-y: auto;
}
.modal-overlay.open { display: block; }
.modal-box {
  background: var(--white); max-width: 820px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  padding: 32px; color: var(--white);
}
.modal-header .post-meta { color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.modal-header h2 { font-size: clamp(20px,3vw,30px); font-weight: 800; line-height: 1.3; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 26px; color: var(--white);
  cursor: pointer; line-height: 1; opacity: 0.7;
  transition: var(--transition);
}
.modal-close:hover { opacity: 1; transform: scale(1.2); }
.modal-body { padding: 36px 32px; }
.modal-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 16px; }
.modal-body ul { padding-left: 24px; margin-bottom: 16px; }
.modal-body ul li { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 6px; }
.modal-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.modal-body th {
  background: var(--primary); color: var(--white);
  padding: 10px 14px; text-align: left; font-weight: 600;
}
.modal-body td { padding: 10px 14px; border-bottom: 1px solid rgba(26,60,110,0.08); }
.modal-body tr:nth-child(even) td { background: var(--light); }
.modal-cta {
  background: var(--light); border-radius: 12px;
  padding: 24px; text-align: center; margin-top: 32px;
}
.modal-cta p { margin-bottom: 14px; font-weight: 600; color: var(--dark); }
.modal-cta a {
  display: inline-block;
  background: var(--primary); color: var(--white);
  padding: 12px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700; transition: var(--transition);
}
.modal-cta a:hover { background: #2a5298; transform: translateY(-2px); }
.modal-footer {
  padding: 20px 32px; border-top: 1px solid rgba(26,60,110,0.08);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.modal-footer span { font-size: 13px; color: var(--gray); }
.share-btn {
  padding: 7px 14px; border-radius: 6px; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.share-linkedin { background: #0077b5; color: #fff; }
.share-twitter { background: #1da1f2; color: #fff; }
.share-copy { background: var(--light); color: var(--primary); }
.share-btn:hover { opacity: 0.85; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .sidebar-cta { grid-column: 1 / -1; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .posts-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .modal-body { padding: 24px 18px; }
  .modal-header { padding: 24px 18px; }
  .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
}
