:root {
  --navbar-height: 70px;
  --footer-height: 60px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8f9fa;
  padding-top: var(--navbar-height);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  z-index: 1030;
  background: #000000;
  color: white;
  padding-right: 1rem;
}

.header-left {
  width: 100px;
  height: 100%;  
  background-color: rgb(0, 0, 0);
  display: flex;
  position: relative;
  z-index: 1050;
}

.header-right {
  flex-grow: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1060;

}

.logo {
  height: 70px;
  width: 100px;
  object-fit: contain;
} 

@media (max-width: 768px) {
  .logo {
   height: 70px;
  width: 70%;
  object-fit: contain;
}
}
.diagonal-stripe {
  position: fixed;
  top: 0;
  left: 200px;
  transform: translateX(-50%) skewX(-35deg);
  width: 60px;
  height: var(--navbar-height);
  background: #bf0975;
  z-index: 1100;
  pointer-events: none;
}

@media (max-width: 768px) {
  .diagonal-stripe {
     position: fixed;
  top: 0;
  left: 100px;
  transform: translateX(-50%) skewX(-35deg);
  width: 30px;
  height: var(--navbar-height);
  background: #bf0975;
  z-index: 1050;
  pointer-events: none;
  }
}

.eslogan {
  display: inline-block;
  font-family: 'Pacifico', cursive, 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.0rem;
  left: 250px;
  color: #fff;
  position: fixed;
  top: 23;
  transition: color 0.3s, text-shadow 0.3s;
  cursor: pointer;
  font-style: italic;
  letter-spacing: 1px;
  z-index: 1100;
}

.eslogan:hover {
  color: #ffffff;
  text-shadow:
    0 0 10px #bf0975,
    0 0 20px #bf0975,
    0 0 30px #fff,
    0 0 40px #bf0975;
}

@media (max-width: 768px) {
    .eslogan {
        font-size: 0.8rem;
        left: 100px;
        top: 25px;
        position: absolute;
        transform: translateX(-50%);
        text-align: center;
        width: 90vw;
        white-space: normal;
        overflow: hidden;
        height: 2.4em; /* Forcing two lines */
        z-index: 1000;
    }
}

/* Navbar */
.header-right .navbar {
  background: transparent !important;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.navbar .navbar-nav .nav-link {
  color: rgb(255, 0, 212) !important;
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  background: #495057;
  color: #fff !important;
  border-radius: 4px;
}


.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}

.navbar-toggler-icon {
  filter: invert(1);
  z-index: 1600;
  position: relative;
}

.collapse.navbar-collapse.d-none.d-lg-flex {
  justify-content: flex-end;
}

/* Offcanvas menú */
.offcanvas.offcanvas-start {
  width: 220px;
  background: #212529 !important;
  color: #fff;
}

.offcanvas.offcanvas-start .offcanvas-title,
.offcanvas.offcanvas-start .btn-close {
  color: #000000;
  filter: invert(1);
}

.offcanvas.offcanvas-start .navbar-nav .nav-link {
  color: #fff;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.offcanvas.offcanvas-start .navbar-nav .nav-link:hover,
.offcanvas.offcanvas-start .navbar-nav .nav-link:focus {
  background: #495057;
  color: #fff;
}

@media (min-width: 992px) { 
  .offcanvas.offcanvas-start {
    display: none !important;
  }
}

.btn {
  background-color: #bf0975;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}

/* Footer al final */
.footer {
  height: var(--footer-height);
  background: #343a40;
  color: #bf0975;
  
  align-items: center;
  justify-content: center;
  
}

/* Botón de volver */
#btn-volver {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1030;
}

.flecha {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-top: 6px solid #bf0975;
  border-left: 6px solid #bf0975;
  transform: rotate(-45deg);
  margin-left: -1px;
}

/* --- Cards de rifas tipo Instagram --- */
.rifa-instagram-card {
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(191,9,117,0.10), 0 1.5px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 260px;
  max-width: 350px;
  min-height: 390px;
  aspect-ratio: 1/1.15;
  margin: 0 auto;
  border: 2px solid #bf0975;
  transition: transform 0.18s, box-shadow 0.18s;
}
.rifa-instagram-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(191,9,117,0.18), 0 2px 12px rgba(0,0,0,0.18);
}
.rifa-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #fff;
  border-bottom: 2px solid #bf0975;
}
.rifa-card-body {
  flex: 1 1 auto;
  padding: 1.1rem 1rem 0.5rem 1rem;
  color: #fff;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.rifa-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #bf0975;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}
.rifa-card-desc {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 0.5rem;
  min-height: 2.2em;
}
.rifa-card-fechas {
  font-size: 0.85rem;
  color: #bf0975;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
}
.rifa-premios-mini {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.rifa-premio-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #bf0975;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.rifa-premio-thumb[alt="Sin imagen"] {
  background: #eee;
}
.rifa-card-btn {
  background: linear-gradient(90deg, #bf0975 60%, #000 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 0.5rem 1.2rem;
  margin-top: auto;
  margin-bottom: 0.2rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(191,9,117,0.10);
}
.rifa-card-btn:hover {
  background: linear-gradient(90deg, #000 0%, #bf0975 100%);
  color: #fff;
}
.rifa-card-premio-label {
  font-size: 0.85rem;
  color: #bf0975;
  margin-bottom: 0.2rem;
  font-weight: 500;
}
@media (max-width: 768px) {
  .rifa-instagram-card {
    min-width: 90vw;
    max-width: 98vw;
    min-height: 340px;
    aspect-ratio: 1/1.2;
  }
  .rifa-card-img {
    height: 160px;
  }
}