/* ==========================================
   DESIGN SYSTEM & VARIABLES (TU JUSTICIA)
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-bg: #090f16;
  --secondary-bg: #0f1924;
  --card-bg: #152232;
  --accent-gold: #c59b27;
  --accent-gold-hover: #e5b83b;
  --text-white: #ffffff;
  --text-gray: #a0aec0;
  --text-dark: #1a202c;
  --border-color: rgba(197, 155, 39, 0.2);
  --font-headers: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  letter-spacing: 0.5px;
}


a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
}

/* ==========================================
   NAVIGATION BAR (NAVBAR)
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(9, 15, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1100;
  transition: var(--transition-smooth);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hamburger active transformation */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-brand {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

.nav-brand span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  font-family: var(--font-body);
  font-size: 1.15rem; /* Agrandado */
  font-weight: 700; /* Más legible */
  color: var(--text-gray);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
  background-color: rgba(197, 155, 39, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(197, 155, 39, 0.2);
}

/* ==========================================
   SIDEBAR MENU
   ========================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px; /* Ancho ajustado */
  height: 100vh;
  background-color: var(--secondary-bg);
  border-right: 1px solid var(--border-color);
  z-index: 1050;
  transform: translateX(-100%);
  transition: var(--transition-smooth);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  padding: calc(var(--header-height) + 20px) 25px 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto; /* Enable scrolling for overflow content on mobile */
}


.sidebar.open {
  transform: translateX(0);
}

.sidebar-title {
  font-family: var(--font-headers);
  font-size: 1.3rem; /* Más grande */
  color: var(--accent-gold);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 14px; /* Mayor espacio */
  list-style: none;
}

.sidebar-item a {
  display: block;
  font-size: 1.25rem; /* Agrandado considerablemente */
  font-weight: 600; /* Más grueso y legible */
  color: var(--text-gray);
  padding: 14px 20px; /* Mayor padding */
  border-radius: 8px;
  border-left: 3px solid transparent;
  background-color: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.sidebar-item a:hover, .sidebar-item.active a {
  color: var(--text-white);
  background-color: rgba(197, 155, 39, 0.1);
  border-left-color: var(--accent-gold);
  padding-left: 26px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-footer {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

/* Mobile top navigation container inside sidebar */
.sidebar-top-nav {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-top-nav {
    display: block;
  }
}


/* Sidebar overlay background */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   HERO SECTION & CONTENT STYLE
   ========================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: calc(100vh - var(--header-height) - 150px);
  background: radial-gradient(circle at center, rgba(21, 34, 50, 0.6) 0%, rgba(9, 15, 22, 1) 70%);
}

.hero-logo-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 40px;
  animation: float 6s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(197, 155, 39, 0.3);
  border: 2px solid var(--accent-gold);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 4px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-headers);
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-description {
  max-width: 700px;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 45px;
  font-weight: 300;
}

.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a47b19 100%);
  color: var(--primary-bg);
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.3);
  transition: var(--transition-smooth);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(197, 155, 39, 0.5);
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
}

/* ==========================================
   HOMEPAGE SPECIFIC SECTIONS & SECTIONS COLOR SCHEME
   ========================================== */
.home-section {
  padding: 80px 6%;
  width: 100%;
}

.home-section-title-badge {
  display: inline-block;
  background-color: #0f1924;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 35px;
  color: var(--text-white);
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 45px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.home-section-title-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Anniversary Banner Container */
.anniversary-banner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.anniversary-banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Leaders Intro Text Section */
.leaders-text-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(16, 15, 46, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
}

.leaders-text-container::before {
  content: "“";
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 6rem;
  color: rgba(197, 155, 39, 0.2);
  font-family: Georgia, serif;
}

.leaders-text-content h3 {
  font-size: 1.7rem;
  color: var(--accent-gold);
  margin-bottom: 25px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.leaders-text-content p {
  font-size: 1.3rem;
  line-height: 1.8;
  font-weight: 400;
}

/* Two-column layout for Derechos section */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.rights-banner-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.rights-banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

.rights-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 800;
}

.rights-content h2 span {
  color: var(--accent-gold);
}

.rights-content p {
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 35px;
  font-size: 1.15rem;
}

/* Dynamic Blog Grid Home */
.blog-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Social Media Section Styling (Visual Mejorada) */
.socials-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.social-card-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1rem;
}

.social-card-header.facebook {
  background-color: #1877f2;
}

.social-card-header.twitter {
  background-color: #0f1419;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-card-header.youtube {
  background-color: #ff0000;
}

.social-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
}

.social-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent-gold);
  font-size: 0.8rem;
  overflow: hidden;
}

.social-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-profile-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.social-profile-info p {
  font-size: 0.75rem;
}

.social-card-content {
  padding: 15px 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.social-mock-post-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #100f2e 0%, #1a2c42 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.social-mock-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-btn-follow {
  background-color: var(--accent-gold);
  color: var(--primary-bg);
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
}

.social-btn-follow:hover {
  background-color: var(--accent-gold-hover);
}

/* Youtube Mock Player */
.youtube-mock-player {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #050b11;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.youtube-mock-player::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.youtube-mock-player::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
  margin-left: 5px;
  z-index: 10;
}

.youtube-mock-player:hover::after {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,0,0,0.8);
}

/* ==========================================
   WAITING LIST POPUP (MODAL)
   ========================================== */
.waitlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.waitlist-modal.active {
  opacity: 1;
  visibility: visible;
}

.waitlist-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.waitlist-box {
  position: relative;
  width: 90%;
  max-width: 540px;
  background: rgba(15, 14, 38, 0.85); /* Slightly darker for better readability */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid rgba(197, 155, 39, 0.4);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(197, 155, 39, 0.15);
  overflow-y: auto; /* Enable scroll if content is taller than screen */
  max-height: 90vh; /* Keep it within the screen dimensions */
  z-index: 2010;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}


.waitlist-modal.active .waitlist-box {
  transform: scale(1);
}

.waitlist-marquee {
  background: rgba(197, 155, 39, 0.15);
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
  color: var(--accent-gold);
  padding: 10px 0;
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.waitlist-marquee div {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
}

.waitlist-timer-bar {
  background: linear-gradient(90deg, #ff3333 0%, #b31414 100%);
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.2);
  animation: pulse-red 2s infinite ease-in-out;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.waitlist-timer-clock {
  font-family: monospace;
  font-size: 1.15rem;
  background-color: rgba(0,0,0,0.5);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  color: #ffcccc;
}

.waitlist-body {
  padding: 30px;
}

.waitlist-title {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 500;
}

.waitlist-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: var(--accent-gold);
  color: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  z-index: 2030; /* Higher than header and marquee to remain clickable */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.waitlist-close-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: scale(1.1);
  color: var(--primary-bg);
}


.waitlist-form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.waitlist-form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(197, 155, 39, 0.3);
}

.waitlist-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a47b19 100%);
  color: var(--primary-bg);
  font-weight: 800;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  box-shadow: 0 6px 25px rgba(197, 155, 39, 0.4);
  transition: var(--transition-smooth);
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

/* Sweep shimmer animation */
.waitlist-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

.waitlist-btn:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(197, 155, 39, 0.6);
}

/* ==========================================
   SECTION CONTRAST THEME RULES
   ========================================== */

/* Blue Section (Dark Mode Default) */
.section-blue {
  background-color: var(--primary-bg);
  color: var(--text-white);
}

.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 {
  color: var(--text-white);
}

.section-blue p, .section-blue li {
  color: var(--text-gray);
}

.section-blue .article-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.section-blue .social-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.section-blue .social-profile-info p {
  color: var(--text-gray);
}

/* White Section (Light Mode High Contrast) */
.section-white {
  background-color: #ffffff;
  color: #0f1924;
}

.section-white h1, .section-white h2, .section-white h3, .section-white h4 {
  color: #090f16;
}

.section-white p, .section-white li {
  color: #2d3748;
}

.section-white .article-card {
  background-color: #f7f9fa;
  border: 1px solid rgba(15, 25, 36, 0.12);
}

.section-white .article-title {
  color: #090f16;
}

.section-white .article-text {
  color: #4a5568;
}

.section-white .social-card {
  background-color: #f7f9fa;
  border: 1px solid rgba(15, 25, 36, 0.12);
}

.section-white .social-profile-info h4 {
  color: #090f16;
}

.section-white .social-profile-info p {
  color: #718096;
}

.section-white .social-card-content {
  color: #4a5568;
}

.section-white .leaders-text-container {
  background-color: #f7f9fa;
  border: 2px solid rgba(197, 155, 39, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.section-white .leaders-text-content p {
  color: #090f16;
}

/* Gray Section (Neutral Cool Contrast) */
.section-gray {
  background-color: #f4f6f9;
  color: #0f1924;
}

.section-gray h1, .section-gray h2, .section-gray h3, .section-gray h4 {
  color: #090f16;
}

.section-gray p, .section-gray li {
  color: #2d3748;
}

.section-gray .article-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 25, 36, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.section-gray .article-title {
  color: #090f16;
}

.section-gray .article-text {
  color: #4a5568;
}

.section-gray .social-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 25, 36, 0.1);
}

.section-gray .social-profile-info h4 {
  color: #090f16;
}

.section-gray .social-profile-info p {
  color: #718096;
}

.section-gray .social-card-content {
  color: #4a5568;
}

/* ==========================================
   PAGE TEMPLATE (SUBPAGES CONTENT)
   ========================================== */
.page-header {
  padding: 70px 4% 50px 4%;
  background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg));
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 15px;
}

.page-title span {
  color: var(--accent-gold);
}

.page-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-gray);
  letter-spacing: 1px;
  font-weight: 500;
}

.page-breadcrumb a {
  color: var(--accent-gold);
}

.page-content-wrapper {
  padding: 60px 4%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.article-card {
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 35px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(197, 155, 39, 0.2);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 1.8rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.article-text {
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 25px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  flex-shrink: 0;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px 4% 40px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  color: var(--text-white);
}

.footer-logo-container {
  width: 160px;
  height: auto;
}


.footer-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  max-width: 600px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 155, 39, 0.4);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(160, 174, 192, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  padding-top: 25px;
  margin-top: 10px;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .rights-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .socials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 5%;
  }
  
  .nav-links {
    display: none; /* Hide top nav links on tablet/mobile, relies on side menu */
  }
  
  .nav-brand {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-logo-container {
    width: 220px;
    height: 220px;
  }
  
  .sidebar {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-logo-container {
    width: 180px;
    height: 180px;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }

  /* Waitlist modal adjustments for small screens */
  .waitlist-box {
    width: 95%;
    border-radius: 16px;
  }
  .waitlist-body {
    padding: 20px;
  }
  .waitlist-title {
    font-size: 1.15rem !important;
  }
  .waitlist-subtitle {
    margin-bottom: 15px !important;
    font-size: 0.8rem !important;
  }
  .waitlist-form-group {
    margin-bottom: 10px;
  }
  .waitlist-form-control {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .waitlist-btn {
    padding: 12px;
    font-size: 0.85rem;
    margin-top: 10px;
  }
}


/* ==========================================
   WHO WE ARE PAGE (QUIENES SOMOS) CUSTOM STYLES
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(197, 155, 39, 0.2);
}

.about-card h2 {
  font-size: 1.7rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-card p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-white);
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto 0 auto;
}

.service-card {
  background-color: #f7f9fa;
  border: 1px solid rgba(15, 25, 36, 0.12);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(197, 155, 39, 0.15);
}

.service-icon-badge {
  width: 60px;
  height: 60px;
  background-color: rgba(197, 155, 39, 0.1);
  color: var(--accent-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 1px solid rgba(197, 155, 39, 0.2);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #090f16;
  margin-bottom: 12px;
}

.service-card-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.service-card-link:hover {
  color: var(--accent-gold-hover);
  transform: translateX(4px);
}

/* ==========================================
   WHATSAPP CTA & RELATED BLOG POSTS
   ========================================== */
/* WhatsApp CTA card in blog posts */
.blog-whatsapp-cta {
  background-color: rgba(37, 211, 102, 0.08);
  border: 2px solid #25d366;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.05);
  transition: var(--transition-smooth);
}

.blog-whatsapp-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.12);
}

.blog-whatsapp-cta h3 {
  color: #1ebd5d;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-family: var(--font-headers);
  font-weight: 700;
}

.blog-whatsapp-cta p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 400;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #1ebd5d 100%);
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #2ae06c 0%, #20cc64 100%);
}

/* Related Posts Section at the bottom of blogs */
.related-posts-section {
  padding: 60px 4%;
  border-top: 1px solid var(--border-color);
  background-color: #f7f9fa;
  width: 100%;
}

.related-posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.related-posts-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1b4d3e; /* Dark green/teal for headings */
  margin-bottom: 30px;
  font-family: var(--font-headers);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.related-post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 25, 36, 0.08);
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: rgba(27, 77, 62, 0.3);
}

.related-post-img-container {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-post-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.related-post-card:hover .related-post-img-container img {
  transform: scale(1.05);
}

.related-post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.related-post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1b4d3e; /* Dark green text */
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-card-date {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON (DYNAMIC INJECTED)
   ========================================== */
.whatsapp-flow-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

.whatsapp-bubble-tip {
  background-color: #ffffff;
  color: #0f1924;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.2);
  position: relative;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.whatsapp-bubble-tip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 20px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

.whatsapp-bubble-tip .dot {
  color: #25d366;
  margin-right: 4px;
  font-size: 1.1rem;
  vertical-align: middle;
}

.whatsapp-float-btn {
  background: linear-gradient(135deg, #25d366 0%, #1ebd5d 100%);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.whatsapp-icon-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.whatsapp-btn-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  opacity: 0;
  margin-right: 0;
}

/* Hover effects */
.whatsapp-flow-container:hover .whatsapp-bubble-tip {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-flow-container:hover .whatsapp-float-btn {
  width: 320px; /* Expand to pill shape */
  border-radius: 30px;
  padding: 0 25px;
  justify-content: space-between;
}

.whatsapp-flow-container:hover .whatsapp-btn-text {
  max-width: 240px;
  opacity: 1;
  margin-right: 15px;
}

/* On Mobile, keep it compact and floating */
@media (max-width: 768px) {
  .whatsapp-flow-container {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-bubble-tip {
    opacity: 1; /* Always visible on mobile */
    transform: translateY(0);
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .whatsapp-flow-container:hover .whatsapp-float-btn {
    width: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-flow-container:hover .whatsapp-btn-text {
    max-width: 0;
    opacity: 0;
    margin-right: 0;
  }
}

/* ==========================================
   INTERACTIVE CROSSWORD ANIMATIONS
   ========================================== */
.crossword-interactive-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0 auto;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(197, 155, 39, 0.2);
  background-color: #090f16;
  box-sizing: border-box;
}

.crossword-bg-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.crossword-interactive-container:hover .crossword-bg-img {
  transform: scale(1.01);
}

.crossword-hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  border-radius: 4px;
}

.crossword-hotspot:hover, .crossword-hotspot.active {
  background-color: rgba(197, 155, 39, 0.25);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold);
}

/* Glowing circuit overlay */
.crossword-circuit-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
  background: radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.1) 0%, transparent 80%);
  animation: pulse-circuit 4s infinite alternate;
}

@keyframes pulse-circuit {
  0% {
    opacity: 0.2;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

/* Explanation Box styling */
.crossword-explanation-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px auto;
  background: linear-gradient(135deg, #0f1924 0%, #152232 100%);
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 20px 25px;
  color: #ffffff;
  min-height: 120px;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.crossword-explanation-box.active {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 25px rgba(197, 155, 39, 0.15);
}

.crossword-exp-title {
  color: var(--accent-gold);
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crossword-exp-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* Link active highlights in text list */
.strategy-list-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 10px;
  margin-bottom: 20px;
}

.strategy-list-item:hover, .strategy-list-item.active {
  border-left-color: var(--accent-gold);
  background-color: rgba(197, 155, 39, 0.05);
  padding-left: 15px;
  color: #090f16;
}


