/* static/css/style.css */

/* =============================================
   PLATA DIGITAL - APPLE-STYLE EDITORIAL UI
   Colores principales: #262626, #4c4c4c, acento #d57672
   ============================================= */

/* --- Tipografía global --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: #262626;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Títulos editoriales con serif elegante */
h1, h2, h3, h4, .display-4, .fs-1, .fs-2, .fs-3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #262626;
}

/* Párrafos y texto corrido */
p, .lead, .text-secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #4c4c4c;
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
}

/* Texto secundario ligeramente más claro pero legible */
.text-secondary {
  color: #4c4c4c !important;
  opacity: 0.9;
}

/* --- Barra de navegación fija --- */
.navbar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.navbar.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.navbar-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #262626;
}

.navbar-nav .nav-link {
  color: #262626;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #d57672;
  background-color: rgba(213, 118, 114, 0.06);
}

/* Íconos sociales en navbar */
.navbar-nav .bi-facebook,
.navbar-nav .bi-envelope-fill {
  transition: color 0.2s ease;
}

.navbar-nav .bi-facebook:hover {
  color: #d57672 !important;
}

.navbar-nav .bi-envelope-fill:hover {
  color: #d57672 !important;
}

/* --- Secciones --- */
section {
  scroll-margin-top: 90px; /* compensa la navbar fija */
}

/* Fondos alternos sutiles */
.bg-light {
  background-color: #f9f9f9 !important;
}

/* --- Imágenes editoriales modernas --- */
.editorial-img {
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 24px !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-img:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Ajuste responsivo para imágenes */
@media (max-width: 992px) {
  .editorial-img {
    max-height: 340px;
    border-radius: 20px !important;
  }
}

/* --- Botones --- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-dark {
  background-color: #262626;
  border-color: #262626;
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark {
  color: #262626;
  border-color: #262626;
}

.btn-outline-dark:hover {
  background-color: #262626;
  color: #ffffff;
}

/* Botones con íconos */
.btn i {
  font-size: 1.1rem;
}

/* --- Badge / etiquetas --- */
.badge {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --- Cards y contenedores flotantes --- */
.border {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.rounded-4 {
  border-radius: 20px !important;
}

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

/* Caja informativa en participación */
.bg-white.rounded-4.shadow-sm.border {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

/* --- Footer --- */
footer {
  background-color: #262626 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: #d57672 !important;
}

/* --- Espaciado adicional entre secciones --- */
section + section {
  margin-top: 0;
}

/* --- Detalles de acento --- */
::selection {
  background: rgba(213, 118, 114, 0.2);
  color: #262626;
}

/* Línea decorativa sutil para títulos (opcional) */
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: #d57672;
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* --- Accesibilidad y foco --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d57672;
  outline-offset: 2px;
}

/* --- Ajustes para pantallas pequeñas --- */
@media (max-width: 576px) {
  .navbar-brand span {
    font-size: 1.4rem;
  }
  h1.display-4 {
    font-size: 2.2rem;
  }
  .lead {
    font-size: 1rem;
  }
}