/* ═══════════════════════════════════════════════════════════
   ANDAR PANAMÁ — BLOG STYLES (coincide con index.html)
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #0B2545;
  --blue: #1A4A8A;
  --sky: #2E7EC4;
  --light-blue: #D6E8F7;
  --brand-blue: #1EA3C9;
  --ink: #1a2332;
  --text: #2A3544;
  --text-muted: #6A7787;
  --cream: #F7F3EE;
  --sand: #F7F3EE;
  --white: #FFFFFF;
  --rule: #E3E8EE;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--rule);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-blue);
}

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--brand-blue);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--ink);
}

/* ═══ BLOG HEADER ═══ */
.blog-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 160px 20px 100px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(30, 163, 201, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(46, 126, 196, 0.15) 0%, transparent 50%);
}

.blog-header-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.blog-header-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 24px;
}

.blog-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}

.blog-header h1 em {
  font-style: italic;
  color: var(--brand-blue);
  font-weight: 400;
}

.blog-header p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ BLOG GRID (index page) ═══ */
.blog-grid-section {
  padding: 100px 20px;
  background: var(--white);
}

.blog-grid-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.1);
  border-color: var(--brand-blue);
}

.blog-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--sand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-icon {
  font-size: 60px;
  opacity: 0.4;
}

.blog-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.blog-card-link {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-link {
  gap: 12px;
}

/* ═══ ARTICLE PAGE ═══ */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 160px 20px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(30, 163, 201, 0.15) 0%, transparent 50%);
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: rgba(30, 163, 201, 0.2);
  border: 1px solid rgba(30, 163, 201, 0.4);
  color: var(--brand-blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
}

.article-meta {
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

.article-content p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.article-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 68px;
  float: left;
  line-height: 1;
  padding: 8px 12px 0 0;
  color: var(--brand-blue);
  font-weight: 600;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  margin: 60px 0 24px;
  line-height: 1.2;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--blue);
  margin: 40px 0 16px;
}

.article-content ul {
  margin: 24px 0 24px 32px;
}

.article-content li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.7;
}

.article-content strong {
  color: var(--navy);
  font-weight: 600;
}

.highlight-box {
  background: var(--light-blue);
  border-left: 4px solid var(--brand-blue);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 4px;
}

.highlight-box p {
  margin: 0;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.7;
}

.highlight-box p:first-of-type::first-letter {
  all: unset;
}

.cta-box {
  background: linear-gradient(135deg, var(--sand) 0%, var(--light-blue) 100%);
  padding: 50px 40px;
  text-align: center;
  margin: 60px 0;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cta-box p:first-of-type::first-letter {
  all: unset;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: white !important;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-blue);
}

.stat-box {
  background: var(--cream);
  padding: 32px;
  margin: 40px 0;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--rule);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.comparison-table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: var(--navy);
  color: white;
  padding: 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table td {
  padding: 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 35%;
}

.article-back {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.article-back a {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 32px 32px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 300px;
  line-height: 1.7;
  font-size: 14px;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.5;
}

/* ═══ WHATSAPP POPUP ═══ */
.whatsapp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.whatsapp-popup-overlay.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.whatsapp-popup {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.whatsapp-popup-header {
  background: var(--ink);
  color: var(--white);
  padding: 28px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-popup-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.whatsapp-popup-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.whatsapp-popup-body {
  padding: 40px 32px;
}

.whatsapp-branches {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-branch {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}

.whatsapp-branch:hover {
  background: var(--cream);
  border-color: var(--brand-blue);
  transform: translateX(4px);
}

.whatsapp-branch-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-branch-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.whatsapp-branch-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.whatsapp-branch-phone {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══ FLOATING WHATSAPP BUTTON ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-mobile-toggle { display: block; }
  .blog-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-content { padding: 60px 20px 80px; }
  .article-content h2 { font-size: 30px; }
  .whatsapp-popup { max-width: 100%; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
