:root,
    html[data-theme="light"] {
      --gold: #e879f9;
      --gold-dark: #c026d3;

      --dark: #f4f7fb;
      --dark-2: #ffffff;
      --dark-3: #f8fafc;
      --dark-4: #e2e8f0;
      --text-light: #0f172a;
      --text-muted: #5f6f85;
      --heading-color: #08111f;
      --border-color: #dce5f0;
      --border-soft: #e6edf5;
      --shadow-color: rgba(15, 23, 42, .08);
      --soft-shadow: 0 18px 46px rgba(15, 23, 42, .10);
      --hero-overlay: rgba(248, 250, 252, .88);
      --page-bg: var(--dark);
      --surface-bg: rgba(255, 255, 255, .94);
      --surface-muted: #edf3f9;
      --button-text: #07110a;

      --libre: #16a34a;
      --pendiente: #d97706;
      --vendido: #dc2626;
      --page-doodles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='rgba(8,17,31,0.05)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='24' width='40' height='24' rx='4'/%3E%3Cline x1='34' y1='24' x2='34' y2='48' stroke-dasharray='2,3'/%3E%3Cpath d='M126 20l3.2 7.6 8.2 1-6 5.6 1.8 8.2-7.2-4.4-7.2 4.4 1.8-8.2-6-5.6 8.2-1z'/%3E%3Crect x='96' y='104' width='28' height='24' rx='3'/%3E%3Cline x1='110' y1='104' x2='110' y2='128'/%3E%3Cline x1='96' y1='113' x2='124' y2='113'/%3E%3Cpath d='M96 108c0-4 6-4 6 0'/%3E%3Cpath d='M18 118h20v9a10 10 0 0 1-20 0z'/%3E%3Cline x1='28' y1='127' x2='28' y2='138'/%3E%3Cline x1='20' y1='138' x2='36' y2='138'/%3E%3Cpath d='M18 121h-6v4a6 6 0 0 0 6 5'/%3E%3Cpath d='M38 121h6v4a6 6 0 0 1-6 5'/%3E%3Ccircle cx='150' cy='72' r='3.4'/%3E%3Cpath d='M150 62v4M150 78v4M140 72h4M156 72h4'/%3E%3C/g%3E%3C/svg%3E");
    }

    html[data-theme="dark"] {
      --dark: #070712;
      --dark-2: #111122;
      --dark-3: #1e1b35;
      --dark-4: #312e57;
      --text-light: #fdf4ff;
      --text-muted: #b8adc7;
      --heading-color: #ffffff;
      --border-color: #26263c;
      --border-soft: var(--border-color);
      --shadow-color: rgba(0, 0, 0, .35);
      --soft-shadow: 0 18px 50px rgba(0, 0, 0, .32);
      --hero-overlay: rgba(7, 7, 18, .78);
      --page-bg: var(--dark);
      --surface-bg: color-mix(in srgb, var(--dark-2) 92%, transparent);
      --surface-muted: var(--dark-3);
      --button-text: #050505;
      --page-doodles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='24' width='40' height='24' rx='4'/%3E%3Cline x1='34' y1='24' x2='34' y2='48' stroke-dasharray='2,3'/%3E%3Cpath d='M126 20l3.2 7.6 8.2 1-6 5.6 1.8 8.2-7.2-4.4-7.2 4.4 1.8-8.2-6-5.6 8.2-1z'/%3E%3Crect x='96' y='104' width='28' height='24' rx='3'/%3E%3Cline x1='110' y1='104' x2='110' y2='128'/%3E%3Cline x1='96' y1='113' x2='124' y2='113'/%3E%3Cpath d='M96 108c0-4 6-4 6 0'/%3E%3Cpath d='M18 118h20v9a10 10 0 0 1-20 0z'/%3E%3Cline x1='28' y1='127' x2='28' y2='138'/%3E%3Cline x1='20' y1='138' x2='36' y2='138'/%3E%3Cpath d='M18 121h-6v4a6 6 0 0 0 6 5'/%3E%3Cpath d='M38 121h6v4a6 6 0 0 1-6 5'/%3E%3Ccircle cx='150' cy='72' r='3.4'/%3E%3Cpath d='M150 62v4M150 78v4M140 72h4M156 72h4'/%3E%3C/g%3E%3C/svg%3E");
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Outfit', sans-serif;
      background-color: var(--page-bg);
      background-image: var(--page-doodles);
      background-repeat: repeat;
      background-size: 180px 180px;
      color: var(--text-light);
      margin: 0;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background-color .25s ease, color .25s ease;
    }

    .pub-navbar {
      background: var(--surface-bg);
      border-bottom: 1px solid var(--border-color);
      padding: 0 1.5rem;
      min-height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 10px 35px var(--shadow-color);
      backdrop-filter: blur(16px);
    }

    .pub-navbar .logo {
      display: flex;
      align-items: center;
      gap: .6rem;
      text-decoration: none;
      min-width: 0;
      flex: 0 1 auto;
    }

    .pub-navbar .logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.8rem;
      color: var(--gold);
      letter-spacing: 2px;
      line-height: 1;
    }

    .pub-navbar .logo-sub {
      font-size: .65rem;
      color: var(--text-muted);
      letter-spacing: 3px;
      text-transform: uppercase;
      display: block;
      line-height: 1;
    }

    .pub-nav-actions {
      display: flex;
      align-items: center;
      gap: .35rem;
      flex-wrap: wrap;
      justify-content: flex-end;
      min-width: 0;
    }

    .pub-navbar nav a,
    .theme-toggle {
      color: var(--text-light);
      text-decoration: none;
      font-size: .875rem;
      font-weight: 600;
      padding: .45rem .9rem;
      border-radius: 999px;
      transition: background .2s, border-color .2s, color .2s, transform .2s;
      border: 1px solid transparent;
      background: transparent;
    }

    .pub-navbar nav a:hover,
    .theme-toggle:hover {
      background: color-mix(in srgb, var(--gold) 12%, transparent);
      color: var(--gold);
    }

    .pub-navbar nav a.active {
      color: var(--gold);
      background: color-mix(in srgb, var(--gold) 14%, transparent);
      border-color: color-mix(in srgb, var(--gold) 24%, transparent);
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      cursor: pointer;
    }

    .theme-toggle .theme-label-dark,
    html[data-theme="dark"] .theme-toggle .theme-label-light {
      display: none;
    }

    html[data-theme="dark"] .theme-toggle .theme-label-dark {
      display: inline;
    }

    .pub-contact-bar {
      background: var(--surface-muted);
      border-bottom: 1px solid var(--border-color);
      color: var(--text-muted);
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
      padding: .45rem 1rem;
      font-size: .78rem;
    }

    .pub-contact-bar a {
      color: var(--text-muted);
      text-decoration: none;
      overflow-wrap: anywhere;
    }

    .pub-contact-bar a:hover {
      color: var(--gold);
    }

    .pub-footer {
      background: var(--surface-bg);
      border-top: 1px solid var(--border-color);
      padding: 2.6rem 1.5rem 1.35rem;
      margin-top: 5rem;
    }

    .footer-inner {
      width: min(1120px, 100%);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(220px, 1.3fr) auto auto auto;
      gap: 1.8rem 2.4rem;
      align-items: start;
    }

    .footer-legal-list {
      display: flex;
      flex-direction: column;
      gap: .5rem;
      font-size: .84rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .footer-legal-list a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color .15s ease;
    }

    .footer-legal-list a:hover {
      color: var(--gold);
    }

    .footer-brand {
      min-width: 0;
    }

    .pub-footer .footer-logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2rem;
      color: var(--gold);
      letter-spacing: 3px;
      line-height: 1;
    }

    .footer-brand p {
      color: var(--text-muted);
      font-size: .86rem;
      line-height: 1.55;
      margin: .75rem 0 0;
      max-width: 360px;
    }

    .footer-block h2 {
      color: var(--heading-color);
      font-size: .76rem;
      font-weight: 800;
      letter-spacing: 1.8px;
      text-transform: uppercase;
      margin: 0 0 .75rem;
    }

    .footer-contact {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: .55rem;
      font-size: .84rem;
    }

    .footer-contact a {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      max-width: min(360px, 100%);
    }

    .footer-contact i {
      color: var(--gold);
      flex: 0 0 auto;
    }

    .footer-contact span {
      overflow-wrap: anywhere;
    }

    .footer-social {
      display: flex;
      flex-wrap: wrap;
      gap: .55rem;
    }

    .footer-social a {
      width: 38px;
      height: 38px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--border-color);
      background: var(--surface-muted);
      color: var(--heading-color);
      text-decoration: none;
      transition: border-color .2s, color .2s, transform .2s, background .2s;
    }

    .footer-social a:hover {
      color: var(--gold);
      border-color: color-mix(in srgb, var(--gold) 45%, var(--border-color));
      background: color-mix(in srgb, var(--gold) 10%, var(--surface-muted));
      transform: translateY(-2px);
    }

    .footer-contact a,
    .footer-contact span {
      color: var(--text-muted);
      text-decoration: none;
    }

    .footer-contact a:hover {
      color: var(--gold);
    }

    .footer-bottom {
      width: min(1120px, 100%);
      margin: 2rem auto 0;
      padding-top: 1rem;
      border-top: 1px solid var(--border-soft);
      color: var(--text-muted);
      font-size: .8rem;
      text-align: center;
    }

    .pub-whatsapp-float {
      position: fixed;
      right: 1.2rem;
      bottom: 1.2rem;
      z-index: 120;
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      background: #25d366;
      color: #06130a;
      border-radius: 999px;
      padding: .75rem 1rem;
      font-weight: 800;
      text-decoration: none;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    }

    .pub-whatsapp-float:hover {
      color: #06130a;
      transform: translateY(-1px);
    }

    .hero-section {
      min-height: 560px;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid var(--border-color);
      background: var(--dark-2);
    }

    .hero-bg-carousel,
    .hero-bg-carousel .carousel-inner,
    .hero-bg-carousel .carousel-item,
    .hero-bg-slide {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .hero-bg-slide {
      background-size: cover;
      background-position: center;
      transform: scale(1.03);
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: var(--hero-overlay);
      z-index: 2;
    }

    .hero-content {
      position: relative;
      z-index: 4;
      width: min(1200px, 100%);
      margin: 0 auto;
      padding: 5.5rem 1.5rem 5rem;
      display: grid;
      grid-template-columns: minmax(0, 600px) 1fr;
      gap: 2rem;
      align-items: center;
    }

    .hero-kicker {
      font-size: .78rem;
      letter-spacing: 5px;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 800;
      margin-bottom: 1rem;
    }

    .hero-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(3.4rem, 8vw, 7rem);
      letter-spacing: 3px;
      line-height: .92;
      margin: 0 0 1rem;
      color: var(--heading-color);
    }

    .hero-subtitle {
      color: var(--text-muted);
      font-size: 1.12rem;
      max-width: 520px;
      margin: 0 0 2rem;
      line-height: 1.65;
    }

    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      gap: .8rem;
      margin-top: 1.25rem;
    }

    .hero-stat {
      background: color-mix(in srgb, var(--dark-2) 78%, transparent);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: .8rem 1rem;
      box-shadow: var(--soft-shadow);
      min-width: 130px;
    }

    .hero-stat strong {
      display: block;
      color: var(--heading-color);
      font-size: 1.25rem;
      line-height: 1;
    }

    .hero-stat span {
      color: var(--text-muted);
      font-size: .75rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .home-steps {
      background: var(--dark-2);
      border: 1px solid var(--border-color);
      border-radius: 22px;
      padding: 2rem;
      margin-bottom: 3.5rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      text-align: center;
      box-shadow: var(--soft-shadow);
    }

    .home-step-icon {
      width: 56px;
      height: 56px;
      border-radius: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: color-mix(in srgb, var(--gold) 14%, transparent);
      color: var(--gold);
      font-size: 1.7rem;
      margin-bottom: .8rem;
    }

    .home-step-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.2rem;
      letter-spacing: 1px;
      color: var(--heading-color);
      margin-bottom: .3rem;
    }

    .home-step-text {
      font-size: .85rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .badge-libre {
      background: color-mix(in srgb, var(--libre) 15%, transparent);
      color: var(--libre);
      border: 1px solid color-mix(in srgb, var(--libre) 30%, transparent);
    }

    .badge-pendiente {
      background: color-mix(in srgb, var(--pendiente) 15%, transparent);
      color: var(--pendiente);
      border: 1px solid color-mix(in srgb, var(--pendiente) 30%, transparent);
    }

    .badge-vendido {
      background: color-mix(in srgb, var(--vendido) 15%, transparent);
      color: var(--vendido);
      border: 1px solid color-mix(in srgb, var(--vendido) 30%, transparent);
    }

    .btn-gold {
      background: var(--gold);
      color: var(--button-text);
      font-weight: 800;
      border: 1px solid var(--gold);
      border-radius: 0;
      padding: .72rem 1.55rem;
      cursor: pointer;
      transition: background .2s, border-color .2s, color .2s, transform .2s;
      font-family: 'Outfit', sans-serif;
      font-size: .9rem;
      letter-spacing: .3px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: .45rem;
    }

    .btn-gold:hover {
      transform: translateY(-1px);
      box-shadow: none;
      color: var(--button-text);
    }

    .btn-gold:disabled {
      opacity: .5;
      cursor: not-allowed;
      transform: none;
    }

    .btn-outline-gold {
      background: transparent;
      color: var(--gold);
      font-weight: 700;
      border: 1px solid var(--gold);
      border-radius: 0;
      padding: .62rem 1.35rem;
      cursor: pointer;
      transition: background .2s, border-color .2s, color .2s, transform .2s;
      font-family: 'Outfit', sans-serif;
      font-size: .9rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: .4rem;
    }

    .btn-outline-gold:hover {
      background: color-mix(in srgb, var(--gold) 12%, transparent);
      color: var(--gold);
    }

    .rifa-card {
      background: var(--dark-2);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      overflow: hidden;
      transition: all .3s;
      cursor: pointer;
      text-decoration: none;
      display: block;
      color: inherit;
      box-shadow: 0 8px 28px var(--shadow-color);
    }

    .rifa-card:hover {
      border-color: var(--gold);
      transform: translateY(-4px);
      box-shadow: 0 18px 42px color-mix(in srgb, var(--gold) 20%, transparent);
      color: inherit;
    }

    .rifa-card-img {
      width: 100%;
      height: 210px;
      object-fit: contain;
      display: block;
      background: #fff;
    }

    .rifa-card-img-placeholder {
      width: 100%;
      height: 210px;
      background: var(--surface-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: var(--text-muted);
    }

    .rifa-card-body {
      padding: 1.25rem;
    }

    .rifa-card-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.45rem;
      letter-spacing: 1px;
      margin: 0 0 .4rem;
      color: var(--heading-color);
    }

    .rifa-precio {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--gold);
    }

    .pub-input {
      background: var(--dark-2);
      border: 1px solid var(--border-color);
      color: var(--text-light);
      border-radius: 10px;
      padding: .68rem 1rem;
      font-family: 'Outfit', sans-serif;
      font-size: .9rem;
      width: 100%;
      transition: border-color .2s;
    }

    .pub-input:focus {
      outline: none;
      border-color: var(--gold);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 12%, transparent);
      background: var(--dark-2);
      color: var(--text-light);
    }

    .pub-input::placeholder {
      color: var(--text-muted);
    }

    html[data-theme="dark"] .pub-input,
    html[data-theme="dark"] .pub-input:focus {
      background: var(--dark-3);
    }

    .pub-label {
      font-size: .82rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: .4rem;
      display: block;
    }

    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2.55rem;
      letter-spacing: 2px;
      color: var(--heading-color);
      margin: 0;
    }

    .section-title span {
      color: var(--gold);
    }

    .section-subtitle {
      color: var(--text-muted);
      font-size: .92rem;
      margin-top: .3rem;
    }

    .pub-alert {
      border-radius: 10px;
      padding: .9rem 1.2rem;
      font-size: .88rem;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: .7rem;
    }

    .pub-alert-success {
      background: rgba(34, 197, 94, .1);
      color: #22c55e;
      border: 1px solid rgba(34, 197, 94, .2);
    }

    .pub-alert-danger {
      background: rgba(239, 68, 68, .1);
      color: #ef4444;
      border: 1px solid rgba(239, 68, 68, .2);
    }

    .pub-alert-warning {
      background: rgba(245, 158, 11, .1);
      color: #d97706;
      border: 1px solid rgba(245, 158, 11, .2);
    }

    .pub-alert-info {
      background: rgba(59, 130, 246, .1);
      color: #2563eb;
      border: 1px solid rgba(59, 130, 246, .2);
    }

    html[data-theme="dark"] .pub-alert-info {
      color: #60a5fa;
    }

    .boletos-progress {
      height: 6px;
      background: var(--dark-4);
      border-radius: 99px;
      overflow: hidden;
      margin: .5rem 0;
    }

    .boletos-progress-bar {
      height: 100%;
      background: var(--gold);
      border-radius: 99px;
      transition: width .6s ease;
    }

    .pub-spinner {
      display: inline-block;
      width: 18px;
      height: 18px;
      border: 2px solid color-mix(in srgb, var(--gold) 30%, transparent);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .steps-bar {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 2rem;
    }

    .step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      position: relative;
    }

    .step-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 16px;
      left: 60%;
      width: 80%;
      height: 2px;
      background: var(--dark-4);
    }

    .step-item.completed:not(:last-child)::after {
      background: var(--gold);
    }

    .step-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--dark-4);
      border: 2px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .75rem;
      font-weight: 800;
      color: var(--text-muted);
      position: relative;
      z-index: 1;
    }

    .step-item.active .step-circle {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--button-text);
    }

    .step-item.completed .step-circle {
      background: var(--gold-dark);
      border-color: var(--gold-dark);
      color: var(--button-text);
    }

    .step-label {
      font-size: .7rem;
      color: var(--text-muted);
      margin-top: .4rem;
      font-weight: 600;
      text-align: center;
    }

    .step-item.active .step-label {
      color: var(--gold);
    }

    .pub-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1.5rem;
    }

    @media (max-width: 900px) {
      .hero-content {
        grid-template-columns: 1fr;
        padding-top: 4rem;
      }

      .hero-section {
        min-height: 520px;
      }
    }

    @media (max-width: 768px) {
      .pub-container {
        padding: 1.5rem 1rem;
      }

      .section-title {
        font-size: 2rem;
      }

      .pub-whatsapp-float span,
      .theme-toggle span {
        display: none !important;
      }

      .pub-whatsapp-float {
        right: 1.2rem;
        bottom: 2.2rem;
        width: 54px;
        height: 54px;
        justify-content: center;
        padding: 0;
        z-index: 99999 !important;
      }
      .pub-whatsapp-float i {
        font-size: 1.8rem;
      }

      .pub-navbar {
        padding: .75rem 1rem;
        align-items: center;
        flex-wrap: wrap;
        gap: .65rem;
      }

      .pub-navbar .logo-text {
        font-size: 1.45rem;
      }

      .pub-navbar .logo-sub {
        letter-spacing: 2px;
      }

      .pub-nav-actions {
        flex: 1 1 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: .5rem;
      }

      .pub-navbar nav a,
      .theme-toggle {
        padding: .42rem .7rem;
        font-size: .82rem;
        white-space: nowrap;
      }

      .theme-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        justify-content: center;
        padding: 0;
      }

      .pub-contact-bar {
        justify-content: flex-start;
        gap: .45rem .8rem;
        padding: .55rem 1rem;
        font-size: .76rem;
      }

      .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
      }

      .footer-brand p {
        margin-left: auto;
        margin-right: auto;
      }

      .footer-contact {
        align-items: center;
      }

      .footer-social {
        justify-content: center;
      }

      .hero-title {
        font-size: clamp(3rem, 15vw, 4.6rem);
      }
    }

    @media (max-width: 420px) {
      .pub-container {
        padding-left: .75rem;
        padding-right: .75rem;
      }

      .pub-navbar {
        padding-left: .75rem;
        padding-right: .75rem;
      }

      .pub-navbar .logo {
        gap: .45rem;
      }

      .pub-navbar .logo-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
      }

      .pub-navbar .logo-sub {
        max-width: 150px;
        letter-spacing: 1.6px;
      }

      .pub-navbar nav a {
        padding-inline: .58rem;
      }
    }

