/* variables de diseño premium */
:root {
  --bg: #ffffff;
  --bg-surface: #f4f7ff;
  --text-main: #333333;
  --text-muted: #555555;
  --primary: #002a9c;
  --secondary: #d3a029;
  --border: #e2e8f0;
  --shadow: rgba(0, 42, 156, 0.06);
  
  --color-primary-blue: #002a9c;
  --color-primary-yellow: #f2bc1c;
  --color-secondary-yellow: #d3a029;
  --color-text-light: #ffffff;
  
  --font-headings: 'Roboto Slab', serif;
  --font-body: 'Roboto', sans-serif;
  
  --max-width: 740px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a1128;
  --bg-surface: #101f42;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --primary: #3b60e4;
  --secondary: #f2bc1c;
  --border: #1e2d5a;
  --shadow: rgba(0, 0, 0, 0.3);
  
  --color-primary-blue: #101f42;
  --color-primary-yellow: #f2bc1c;
  --color-secondary-yellow: #f2bc1c;
  --color-text-light: #ffffff;
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 1.125rem;
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0px;
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

.corporate-header-banner {
  background-color: #002a9c;
  padding: 40px 24px;
  text-align: center;
  display: block;
  border-bottom: 2px solid #002a9c;
}

@media (max-width: 768px) {
  .corporate-header-banner {
    display: none;
  }
}

.corporate-banner-logo {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.header-banner-divider {
  height: 14px;
  background-color: #f2bc1c;
  border-top: 4px solid #002a9c;
  border-bottom: 4px solid #002a9c;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .header-banner-divider {
    display: none;
  }
}

.corporate-nav-bar {
  background-color: #002a9c;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .corporate-nav-bar {
    display: none;
  }
}

.corporate-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.corporate-nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.corporate-nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
  text-transform: uppercase;
}

.corporate-nav-menu a:hover {
  color: #f2bc1c;
}

.corporate-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.corporate-nav-search {
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  background: none;
  border: none;
  transition: var(--transition);
}

.corporate-nav-search:hover {
  color: #f2bc1c;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: #f2bc1c;
  color: #002a9c;
}

.mobile-header-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #002a9c;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }
}

.mobile-hamburger, .mobile-search {
  color: #ffffff;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-hamburger:hover, .mobile-search:hover {
  color: #f2bc1c;
}

.mobile-logo-link {
  display: inline-block;
}

.mobile-logo-img {
  max-height: 28px;
  width: auto;
  display: block;
}

.theme-toggle-mobile {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-mobile:hover {
  background-color: #f2bc1c;
  color: #002a9c;
}

.post-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.post-header {
  margin-bottom: 32px;
  text-align: center;
}

.post-category {
  display: inline-block;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.post-category:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

h1.post-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  h1.post-title {
    font-size: 2rem;
  }
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-main);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-headings);
}

.meta-separator {
  color: var(--border);
}

.post-hero-image-wrapper {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.post-hero-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.toc-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px var(--shadow);
}

.toc-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style-type: none;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.toc-link:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.toc-h3 {
  padding-left: 20px;
  font-size: 0.9rem;
}

.post-content {
  color: var(--text-main);
}

.post-content p {
  margin-bottom: 24px;
  font-size: 1.125rem;
  letter-spacing: -0.003em;
}

.post-content h2 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.post-content a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 2px solid rgba(37, 99, 235, 0.2);
  transition: var(--transition);
  font-weight: 500;
}

.post-content a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.post-content ol, .post-content ul {
  margin-bottom: 28px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--bg-surface);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

.premium-post-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 4px 20px var(--shadow);
  display: block;
}

.premium-related-callout {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  margin: 32px 0;
  padding: 16px 20px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
}

.premium-related-callout:hover {
  transform: translateX(6px);
  background-color: var(--bg);
  border-left-color: var(--primary);
  box-shadow: 0 6px 18px var(--shadow);
}

.premium-related-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit !important;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.callout-text-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.callout-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.callout-post-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: var(--transition);
}

.premium-related-callout:hover .callout-post-title {
  color: var(--secondary);
}

.post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tag-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 4px 16px var(--shadow);
}

.author-box-meta h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.author-box-meta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background-color: var(--text-main);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.share-btn.fb { background-color: #1877f2; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.wa { background-color: #25d366; }
.share-btn.in { background-color: #0a66c2; }

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.main-footer {
  background-color: #002a9c;
  color: #b3c0dd;
  padding: 50px 24px 30px 24px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: var(--transition);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.footer-brand-info {
  max-width: 480px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
}

.footer-links-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-grid a {
  color: #b3c0dd;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.88rem;
}

.footer-links-grid a:hover {
  color: var(--color-primary-yellow);
}

.footer-social-minimal {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-minimal a {
  color: #b3c0dd;
  font-size: 1.25rem;
  transition: var(--transition);
}

.footer-social-minimal a:hover {
  color: var(--color-primary-yellow);
  transform: translateY(-2px);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: rgba(179, 192, 221, 0.65);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer-copyright-links a {
  color: rgba(179, 192, 221, 0.65);
  text-decoration: none;
  transition: var(--transition);
}

.footer-copyright-links a:hover {
  color: var(--color-primary-yellow);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: #002a9c;
  z-index: 10000;
  box-shadow: 4px 0 15px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-menu-drawer.open {
  left: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-drawer-logo {
  max-height: 28px;
  width: auto;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
}

.mobile-drawer-links a:hover {
  color: var(--color-primary-yellow);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}
