/* ==============================
   VARIABLES GLOBALES (PALETA)
============================== */

:root {
  /* Tipografías */
  --max-width: 1200px;
  --font-heading: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --font-body: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial;

  /* Brand (Pixelize-style) */
  --color-brand: #3B82F6;
  --color-brand-hover: #2563EB;

  /* Accent */
  --color-accent: #F59E0B;

  /* Neutrales */
  --color-dark: #111827;
  --color-text: #293737;
  --color-bg-light: #F5F9FF;
  --color-border-soft: rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===============================
   FUENTE: Sunday Midnight
================================ */
@font-face {
  font-family: "SundayMidnight";
  src: url("../fonts/SundayMidnight-L3ly5.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Solo para el nombre del logo */
.logo-font {
  font-family: "SundayMidnight", cursive;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 1.6rem;
  margin-top: 6px;
  display: inline-block;
}

.logo-clean {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

.memorial-caption {
  max-width: 90%;
  margin: 0 auto;
}

.memorial-name {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.8px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.memorial-date {
  font-size: 1rem;
  color: #000000;
  margin-top: 4px;
}

/* ==============================
     RESET BÁSICO
============================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
}

h2,
h3 {
  font-weight: 600;
}

h4,
h5,
h6 {
  font-weight: 500;
}

p {
  line-height: 1.7;
  color: var(--color-text);
}

/* ==============================
   PATROCINADORES - SCROLL
============================== */

.sponsors-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Carril animado */
.sponsors-track {
  display: flex;
  align-items: center;
  gap: 20px; /* distancia entre logos */
  width: max-content;
  animation: scrollSponsors 40s linear infinite;
}

/* Pausa al pasar el mouse */
.sponsors-wrapper:hover .sponsors-track {
  animation-play-state: paused;
}

/* Cada logo */
.sponsor-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen del logo */
.sponsor-item img {
  max-width: 250px; /* tamaño equilibrado */
  height: auto;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover */
.sponsor-item img:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* Animación infinita */
@keyframes scrollSponsors {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==============================
   BOTONES PATROCINADORES
============================== */

.sponsors-container {
  position: relative;
}

.sponsor-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sponsor-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.sponsor-btn.left {
  left: -20px;
}

.sponsor-btn.right {
  right: -20px;
}

/* Ocultar botones en móvil */
@media (max-width: 576px) {
  .sponsor-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    font-size: 1.3rem;

    background: rgba(255, 255, 255, 0.95);
  }

  .sponsor-btn.left {
    left: 8px;
  }

  .sponsor-btn.right {
    right: 8px;
  }
}

.sponsor-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.sponsors-track {
  will-change: transform;
}

/* Detiene la animación cuando se controla manualmente */
.sponsors-track.manual {
  animation: none !important;
}

/* ==============================
     UTILIDADES GENERALES
============================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
}

/* ==============================
     BOOTSTRAP OVERRIDES
============================== */

.btn-primary {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}

.btn-outline-primary {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-outline-primary:hover {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.text-primary {
  color: var(--color-brand) !important;
}

.text-muted-custom {
  color: #D5DBDB;
}


.bg-primary {
  background-color: var(--color-brand) !important;
}

.bg-light {
  background-color: var(--color-bg-light) !important;
}

/* ==============================
     HEADER
============================== */

#main-header h1 {
  font-size: 1rem;
  font-weight: 700;
}

#main-header small {
  font-size: 0.8rem;
}

#main-header .navbar-brand span {
  font-size: 0.95rem;
  color: var(--color-brand);
}

#main-header .nav-link {
  font-weight: 500;
  color: var(--color-dark);
}

#main-header .nav-link:hover,
#main-header .nav-link.active {
  color: var(--color-brand);
}

.logo-empresa {
  max-height: 60px;
  object-fit: contain;
}

/* ==============================
     HERO
============================== */

#hero {
  min-height: 88vh;
  padding: 4rem 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.7),
      rgba(17, 24, 39, 0.7)),
    url("../img/hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

#hero h2 {
  max-width: 800px;
  margin: 0 auto;
}

#hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #E5E7EB;
}

/* ==============================
     CTA AYUDA
============================== */

#cta-ayuda {
  background-color: var(--color-bg-light) !important;
  color: #111827;
}

#cta-ayuda .btn {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}


#cta-ayuda .btn:hover {
  background-color: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}

.bank-logo {
  width: 160px;        /* mismo ancho para todos */
  height: 60px;        /* mismo alto para todos */
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #F5F9FF;
  padding: 8px;
  border-radius: 6px;
}

@media (max-width: 576px) {
  .bank-logo {
    width: 140px;
    height: 50px;
  }
}

/* ==============================
     CARDS (Pixelize-style)
============================== */

.card {
  border: 1px solid var(--color-border-soft);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ==============================
     FOOTER
============================== */

#main-footer {
  font-size: 0.9rem;
  background-color: var(--color-dark);
  color: #adb5bd;
}

#main-footer h6 {
  font-weight: 600;
  color: #FFFFFF;
}

.footer-link,
.footer-social {
  color: #D5DBDB;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-link:hover,
.footer-social:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==============================
     DARK MODE (Bootstrap 5.3+)
============================== */

[data-bs-theme="dark"] {
  background-color: #0B1120;
  color: #E5E7EB;
}

[data-bs-theme="dark"] body {
  background-color: #0B1120;
}

[data-bs-theme="dark"] .card {
  background-color: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .bg-light {
  background-color: #111827 !important;
}

.bi {
  line-height: 1;
}

.icon-box i {
  transition: transform 0.2s ease;
}

.icon-box:hover i {
  transform: scale(1.1);
}

i.bi {
  vertical-align: middle;
}

.icon-lg {
  font-size: 2.5rem;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social i,
.col-md-4 p i {
  vertical-align: middle;
}

/* ==============================
     RESPONSIVE
============================== */

@media (max-width: 576px) {

  h2,
  h3 {
    font-size: 1.4rem;
  }

  .display-5 {
    font-size: 2rem;
  }
}
