:root {
  --cc-black: #0d0d0d;
  --cc-black-soft: #1a1a1a;
  --cc-red: #c8102e;
  --cc-red-dark: #9c0c22;
  --cc-white: #f5f3ef;
  --cc-gray: #b3b3b3;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cc-white);
  color: var(--cc-black);
}

h1, h2, h3, h4, h5, h6,
.font-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

/* ===== Site header (topbar + navbar) ===== */
.site-header {
  z-index: 1030;
}

.navbar-cc {
  background-color: rgba(245,243,239,0.8);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(13,13,13,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  padding: 0.65rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-cc .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-cc .navbar-brand .brand-logo {
  height: 60px;
  width: auto;
}

.navbar-cc .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--cc-black);
  font-size: 0.85rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar-cc .nav-link:hover,
.navbar-cc .nav-link:focus,
.navbar-cc .nav-link.active {
  color: var(--cc-red);
}

.navbar-cc .dropdown-toggle::after {
  vertical-align: 0.15em;
}

.navbar-cc .dropdown-menu {
  border: none;
  border-top: 3px solid var(--cc-red);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .navbar-cc .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin-top: 0;
    padding-top: 0.9rem;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .navbar-cc .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.navbar-cc .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cc-black);
  padding: 0.6rem 1.25rem;
}

.navbar-cc .dropdown-item:hover,
.navbar-cc .dropdown-item:focus {
  background-color: rgba(200,16,46,0.08);
  color: var(--cc-red);
}

/* ===== Título con efecto rebote ===== */
.mc-title-drop {
  display: inline-block;
  transform: translateY(-160%);
}

.mc-title-drop.mc-visible {
  animation: mcDropBounce 1.3s cubic-bezier(0.28, 0.84, 0.42, 1) both;
}

.mc-title-drop.mc-shown {
  transform: none;
  animation: none;
}

.mc-title-drop--delay {
  animation-delay: 0.15s;
}

@keyframes mcDropBounce {
  0%   { transform: translateY(-160%); }
  45%  { transform: translateY(0); }
  60%  { transform: translateY(-16px); }
  75%  { transform: translateY(0); }
  87%  { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-title-drop {
    transform: none;
  }

  .mc-title-drop.mc-visible {
    animation: none;
  }
}

/* ===== Page hero (sub-pages) ===== */
.hero-page {
  position: relative;
  background: linear-gradient(180deg, var(--cc-black) 0%, var(--cc-black-soft) 60%, var(--cc-black) 100%);
  color: var(--cc-white);
  padding: 8rem 0 4rem;
  overflow: hidden;
  border-bottom: 4px solid var(--cc-red);
  margin-top: 0;
}

.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(200,16,46,0.06) 0px, rgba(200,16,46,0.06) 2px, transparent 2px, transparent 40px);
  pointer-events: none;
}

.hero-page .subtitle {
  font-family: 'Poppins', sans-serif;
  color: var(--cc-red);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.95rem;
}

.hero-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0.5rem 0;
}

.hero-divider {
  width: 90px;
  height: 4px;
  background-color: var(--cc-red);
  margin: 1.5rem auto 0;
}

/* ===== QR: card moderna ===== */
.qr-card {
  max-width: 460px;
  background: var(--cc-white);
  border: 1px solid #e2ddd3;
  border-radius: 24px;
  padding: 3rem 2rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.qr-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
}

.qr-reveal-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.qr-reveal {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  background-color: var(--cc-white);
  padding: 1rem;
  border: 1px solid #e2ddd3;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  opacity: 0;
  filter: blur(6px);
  transform: translateZ(-600px) scale(0.35);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1),
              filter 1s cubic-bezier(.2,.8,.2,1),
              transform 1s cubic-bezier(.2,.8,.2,1);
}

.qr-reveal.qr-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateZ(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .qr-reveal {
    transition: none;
  }
}

.qr-caption {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cc-black);
  margin-bottom: 0.4rem;
}

.qr-subcaption {
  font-size: 0.9rem;
  color: #6b6b6b;
  max-width: 320px;
  margin: 0 auto 1.75rem;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-qr {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-qr-primary {
  background-color: var(--cc-red);
  color: var(--cc-white);
  border: 1px solid var(--cc-red);
}

.btn-qr-primary:hover {
  background-color: var(--cc-red-dark);
  border-color: var(--cc-red-dark);
  color: var(--cc-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(200,16,46,0.25);
}

.btn-qr-outline {
  background-color: transparent;
  color: var(--cc-black);
  border: 1px solid rgba(13,13,13,0.2);
}

.btn-qr-outline:hover {
  background-color: var(--cc-black);
  color: var(--cc-white);
  border-color: var(--cc-black);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .qr-card {
    padding: 2.25rem 1.25rem 2rem;
  }
}

/* ===== Footer ===== */
.footer-cc {
  background-color: var(--cc-black);
  color: var(--cc-gray);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-cc .footer-logo {
  max-width: 100px;
  height: auto;
}

.footer-cc .social-icons a {
  color: var(--cc-white);
  font-size: 1.3rem;
  margin-left: 1rem;
  transition: color 0.2s ease;
}

.footer-cc .social-icons a:hover {
  color: var(--cc-red);
}

/* Back to top */
.btn-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--cc-red);
  color: var(--cc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.btn-top.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   RESPONSIVE — MOBILE FIRST (480 / 768 / 1024)
   El diseño de escritorio (arriba, sin media query) queda
   intacto. Ajustes de menor a mayor ancho de pantalla.
   ========================================================= */

/* Fluidez de imágenes y videos en todas las resoluciones */
img, video {
  max-width: 100%;
  height: auto;
}

/* Móvil pequeño: hero, card QR y botones full-width */
@media (max-width: 479.98px) {
  .hero-page {
    padding: 6rem 0 2.5rem;
  }

  .hero-page h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-page .subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .qr-card {
    padding: 1.75rem 1rem 1.5rem;
    border-radius: 16px;
  }

  .qr-reveal {
    width: 180px;
    padding: 0.75rem;
  }

  .qr-caption {
    font-size: 1rem;
  }

  .qr-subcaption {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .qr-actions {
    flex-direction: column;
  }

  .btn-qr {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
  }

  .btn-top {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    bottom: 15px;
    right: 15px;
  }
}

/* Móvil / tablet chica: paddings intermedios de hero y card */
@media (max-width: 767.98px) {
  .hero-page {
    padding: 7rem 0 3rem;
  }

  .qr-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .qr-reveal {
    width: 200px;
  }
}

/* Tablet: ajustes intermedios de hero y card QR */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-page {
    padding: 7.5rem 0 3.5rem;
  }

  .qr-card {
    max-width: 420px;
  }
}
