/* ===== VARIABLES Y CONFIGURACIÓN GLOBAL ===== */
:root {
  --deep-slate: #12161f;
  --card-surface: #1c212b;
  --soft-border: #2b3240;
  --text-primary: #e9edf2;
  --text-secondary: #b0b7c3;
  --text-muted: #8f9bb0;
  --accent-cool: #8ba4b8;
  --accent-info: #6ea8c9;
  --sidebar-width: 280px;
  --body-line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--deep-slate);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  line-height: var(--body-line-height);
}

h1, h2, h3, h4, .serif-accent {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== BARRA LATERAL (SIEMPRE VISIBLE EN DESKTOP) ===== */
.sidebar-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: #0f131a;
  border-right: 1px solid var(--soft-border);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1025;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Encabezado del sidebar */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.sidebar-brand {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

/* Navegación del sidebar */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  flex: 1;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ccd6e0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 0.15rem;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-left: 3px solid #9ab0c7;
}

.sidebar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-left: 3px solid #9ab0c7;
  font-weight: 600;
}

/* Footer del sidebar */
.sidebar-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-facebook-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #1877f2;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease;
}

.btn-facebook-sidebar:hover {
  background-color: #1565d9;
  color: #ffffff;
}

.btn-contacto-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--soft-border);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-contacto-sidebar:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #9ab0c7;
  color: #ffffff;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header superior */
.top-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(18, 22, 31, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 38px;
  width: auto;
}

.header-title {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  display: none;
}

@media (min-width: 576px) {
  .header-title {
    display: inline;
  }
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-facebook {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1877f2;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease;
}

.btn-facebook:hover {
  background-color: #1565d9;
  color: #ffffff;
}

.btn-contacto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--soft-border);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-contacto:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #9ab0c7;
  color: #ffffff;
}

.btn-lg {
  padding: 0.7rem 2rem;
  font-size: 1rem;
}

/* Contenedor de contenido */
.content-container {
  padding: 2rem;
  flex: 1;
}

@media (max-width: 768px) {
  .content-container {
    padding: 1.25rem;
  }
}

/* Secciones */
.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

.section-title {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-divider {
  height: 2px;
  background: linear-gradient(to right, #3a4457, transparent);
  width: 80px;
  margin-bottom: 1.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.section-text {
  color: var(--text-secondary);
}

.section-text p {
  margin-bottom: 1rem;
}

.section-text strong {
  color: #ffffff;
}

.text-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c8d0da;
}

/* Imágenes */
.section-image {
  width: 100%;
}

.image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  object-fit: cover;
}

.image-frame:hover {
  box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.7);
}

.image-frame:hover img {
  transform: scale(1.03);
}

/* Tarjetas de sección */
.card-section {
  background-color: var(--card-surface);
  border: 1px solid var(--soft-border);
  border-radius: 28px;
  padding: 2.5rem;
  backdrop-filter: blur(2px);
}

@media (max-width: 576px) {
  .card-section {
    padding: 1.5rem;
    border-radius: 20px;
  }
}

.card-title {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.icon-accent {
  color: #6ea8c9;
  margin-right: 0.5rem;
}

/* Lista de características */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.feature-list li i {
  color: var(--accent-info);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-list li strong {
  color: #d0d8e2;
}

/* Orden en desktop */
@media (min-width: 993px) {
  .order-desktop-1 {
    order: 1;
  }
  .order-desktop-2 {
    order: 2;
  }
}

/* Sección de texto completo */
.section-text-full {
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

/* CTA y comunidad */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cta-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
}

.community-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.community-call {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Footer del sitio */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  background-color: #0f131a;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.contact-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== BOTÓN FLOTANTE MÓVIL ===== */
.mobile-nav-toggler {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  background-color: #1f2633;
  border: 1px solid var(--soft-border);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-toggler:hover {
  background-color: #2a3445;
  transform: scale(1.05);
}

/* ===== RESPONSIVE: BARRA LATERAL EN MÓVIL ===== */
@media (max-width: 992px) {
  .sidebar-offcanvas {
    transform: translateX(-100%);
  }
  
  .sidebar-offcanvas.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-nav-toggler {
    display: flex;
  }
}

@media (min-width: 993px) {
  .mobile-nav-toggler {
    display: none;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
}