/* ============================================
   CSS VARIABLES_2
   ============================================ */
:root {
    /* Colors */
    --white: #fff;
    --black: #000;
    --blue: #002856;
    --red: #CF0A2C;
    --blue-dark: #1B2635;

    /* Typography */
    --font-primary: "Ubuntu";
}

/* ============================================
   RESETS & BASE STYLES
   ============================================ */
::selection {
    background-color: var(--red);
    color: #fff;
}
::-webkit-scrollbar {
    width: 7px;
    height: 5px;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Body */
body {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    font-display: swap;
    font-optical-sizing: auto;
    padding: 0;
    margin: 0;
    background-color: var(--blue);
    box-sizing: border-box;
}

body,
input,
textarea,
select {
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    font-family: "Ubuntu", sans-serif;
    font-optical-sizing: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Headings */
h1,
h2,
h3,
h4 {
    font-display: swap;
}

span {
    font-weight: 700;
    color: var(--red);
}

h1 {
    font-size: clamp(1.875rem, 0.5416rem + 2.1529vw, 3rem);
    font-weight: 900;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.3rem);
}
p,
li,
label {
    font-size: clamp(0.9375rem, 0.8708rem + 0.1076vw, 1rem);
}

label {
    font-size: clamp(0.9375rem, 0.7375rem + 0.3229vw, 1.125rem);
    font-weight: 400;
}

/* Links */
a {
    color: var(--red);
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover,
a:active,
a:focus {
    color: var(--red) !important;
}

/* Placeholder */
::placeholder {
    font-size: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.img-fluid {
    width: 100%;
}

.noPadding {
    padding: 0;
}

/* Color Utilities */
.color-blue {
    color: var(--blue) !important;
}
.color-red {
    color: var(--red) !important;
}

/* Background Utilities */
.background-red {
    background-color: var(--red);
}

.background-blueprimary {
    background-color: var(--blue);
}

/* Text Utilities */
.smallText {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.5;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-select,
.form-control {
    font-size: clamp(0.9375rem, 0.7375rem + 0.3229vw, 1.125rem);
    padding: 12px 16px;
    border-radius: 4px;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    color: #333 !important;
    background-color: #fff !important;
}
.form-select:hover,
.form-select:focus,
.form-select:active,
.form-control:hover,
.form-control:focus,
.form-control:active {
    color: #333 !important;
    background-color: #fff !important;
}
.form-select:focus,
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 6px .25rem rgb(13 253 98 / 5%);
}
.form-control::placeholder {
    color: #999 !important;
    opacity: 1;
}
.form-check-input:checked {
    background-color: var(--red);
    border-color: var(--red);
}
.form-check-input:focus {
    box-shadow: 0 0 6px .25rem rgba(230, 10, 10, 0.25);
}

/* ============================================
   BUTTONS
   ============================================ */
/* Base Button */
.btn {
    position: relative;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.875rem, 0.6083rem + 0.4306vw, 1.125rem);
    text-decoration: none;
    color: var(--white);
    background-color: var(--blue);
    padding: 9px 36px;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    text-transform: none !important;
    -webkit-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    border-radius: 24px;
}

.btn:hover {
    color: var(--white);
    background-color: var(--black);
    padding-left: 42px;
    padding-right: 42px;
}

/* Button Variants */
.button-primary {
    color: var(--white);
    background-color: var(--red);
    box-shadow: 0px 4px 12px 0px rgba(223, 56, 23, 0.50);
}

.button-primary:hover,
.button-primary:focus,
.button-primary:active {
    color: var(--white);
    border-color: var(--red);
    background-color: var(--red);
    box-shadow: 0px 4px 12px 0px rgba(223, 56, 23, 0.65);
}
.prev-step {
    color: var(--blue);
    background-color: transparent;
    border-color: var(--blue);
}
.prev-step:hover,
.prev-step:focus,
.prev-step:active {
    color: var(--white);
    background-color: var(--blue);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
/* Navbar */
.navbar {
    position: relative;
    z-index: 2;
}
.navbar img {
    max-width: 200px;
    display: block;
    margin: 0 auto;
}
/* Footer */
footer {
    position: relative;
    padding: 40px 0;
    z-index: 2;
    background-color: var(--blue);
}
footer p {
    font-size: clamp(1rem, 0.8667rem + 0.2153vw, 1.125rem);
    line-height: clamp(1.125rem, 0.8583rem + 0.4306vw, 1.375rem);
    color: var(--white);
}
footer ul li:hover {
    top: 0;
}
footer .logo {
    height: auto;
}
footer .social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
footer .social-circle:hover {
    color: var(--white);
    background-color: #b60623;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
footer .circle-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
footer .circle-link i {
    color: var(--white);
    font-size: 1rem;
}
footer .social-circle:focus i,
footer .social-circle:active i,
footer .social-circle:hover i {
    color: var(--white);
}
footer .fxp {
    max-width: 250px;
    width: 100%;
    height: auto;
}
@media (max-width: 576px) {
    footer .social-circle {
        width: 36px;
        height: 36px;
    }
    footer .circle-link i {
        font-size: 0.9rem;
    }
}

/* Main Content */
.main {
    padding: 60px 0;
    z-index: 2;
}

/* Game Card */
.wrap-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22.5px);
    border-radius: 24px;
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

.wrap-content h1 {
    color: var(--red);
    font-weight: 700;
}
.wrap-content h2 {
    color: var(--blue);
    font-weight: 600;
}
/* Form Group */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Landing Page Wrapper */
.wrapLanding {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    min-height: 100dvh;
}
.wrapLanding.lp-game {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    min-height: 100dvh;
}
.wrapLanding::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f41a36;
    z-index: 0;
}
.wrapLanding::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://image.republicarojiblanca.fxp.mx/lib/fe26117473640578701c77/m/1/2f857787-b2a8-4857-a792-258d896f0a02.jpg");
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;

    background-size: 86% auto;
    background-repeat: no-repeat;
    background-position: 0% 150%;

    background-attachment: fixed;
    opacity: 1;
    z-index: 0;
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop.show {
    background: rgba(3, 15, 11, 0.70);
    opacity: 1;
}
.modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1055 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}
.modal-dialog {
    max-width: 600px;
    margin: 0 auto;
}
.modal-content {
    position: relative;
    border-radius: 24px;
    padding:  12px 12px;
}
.modal-header {
    padding-top: 0;
}
.modal-header,
.modal-footer {
    border: 0;
}
.modal-title {
    margin: 0 auto;
    padding: 30px 35px 15px;
    border-radius: 0px 0px 20px 20px;
}
.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    height: 15px;
    width: 15px;
    margin: .75rem .75rem 0 auto;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/.5em auto no-repeat;
    background-color: rgba(216, 5, 5, 0.878);
    border-radius: 50%;
    opacity: 1;
    z-index: 5;
    cursor: pointer;
}
.modal .btn {
    font-size: clamp(0.875rem, 0.6083rem + 0.4306vw, 1.125rem);
    font-weight: 700;
    cursor: pointer;
}
.modal .btn-secondary:hover,
.modal .btn-secondary:focus,
.modal .btn-secondary:active {
    color: var(--white) !important;
    border-color: var(--red) !important;
    background-color: var(--red) !important;
    box-shadow: 0px 4px 12px 0px rgba(230, 10, 10, 0.35);
}
/* Transición suave para las preguntas */
.modal-body {
    transition: opacity 1s ease-in-out;
}

/* LP DINAMICA - MULTISTEP */
#multi-step-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 2px solid #ddd;
    border-color: var(--blue);
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#multi-step-form .form-check span {
    color: #333;
}
#multi-step-form .form-check:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(230, 10, 10, 0.2);
    transform: translateY(-3px);
}
#multi-step-form .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}
#multi-step-form .form-check.active {
    background-color: var(--red);
    border-color: var(--red);
}
.product-option.active label i {
    color: var(--white);
}
#multi-step-form .form-check.active span,
#multi-step-form .form-check.active i {
    color: var(--white);
}
#multi-step-form .form-check i {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
#multi-step-form .form-check-input:checked {
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23e60a0a'/%3e%3c/svg%3e");
}

/* Product Options with Images */
.product-option {
    position: relative;
    cursor: pointer;
    width: 100%;
}
/* Desktop: first 4 options 25% width, 5th option 100% width */
@media (min-width: 769px) {
    .product-option:nth-child(-n+4) {
        width: calc(25% - 15px);
    }
    .product-option:nth-child(-n+4) label {
        height: 100%;
        min-height: 250px;
    }
    .product-option:nth-child(5) {
        width: 100%;
    }
}
.product-option .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.product-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-color: var(--blue);
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
}
.product-option label:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(230, 10, 10, 0.2);
    transform: translateY(-3px);
}
.product-option img {
    width: 120px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-option .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: color 0.3s ease;
}
.product-option.active label {
    border-color: var(--red);
    background-color: var(--red);
    box-shadow: 0 6px 16px rgba(230, 10, 10, 0.3);
}
.product-option.active .product-name {
    color: var(--white);
}
.product-option.active img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .product-option {
        width: 100% !important;
    }
    .product-option img {
        width: 80px;
        height: 110px;
    }
    .product-option .product-name {
        font-size: 0.75rem;
    }
    .product-option label {
        padding: 10px;
    }
}

/* Tecate Products Grid */
.tecate-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.product-option-tecate {
    position: relative;
    cursor: pointer;
    display: flex;
}

.product-option-tecate .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.product-option-tecate label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 100%;
}

.product-option-tecate label:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(230, 10, 10, 0.2);
    transform: translateY(-3px);
}

.product-option-tecate img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-option-tecate .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: color 0.3s ease;
    margin-top: auto;
}

.product-option-tecate.active label {
    border-color: var(--red);
    background-color: var(--red);
    box-shadow: 0 6px 16px rgba(230, 10, 10, 0.3);
}

.product-option-tecate.active .product-name {
    color: var(--white);
}

.product-option-tecate.active img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tecate-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-option-tecate img {
        max-width: 100px;
    }
    
    .product-option-tecate .product-name {
        font-size: 0.8rem;
    }
    
    .product-option-tecate label {
        padding: 12px;
    }
}

/* ============================================
   ANIMATIONS / KEYFRAMES
   ============================================ */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}
/* Brasas Animation */
.brasas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.brasa {
    position: absolute;
    bottom: 0;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #f1f1f1 0%, #eb5756 50%, transparent 100%);
    border-radius: 50%;
    animation: subir 8s infinite ease-out;
}
.brasa:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}
.brasa:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
}
.brasa:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
}
.brasa:nth-child(4) {
    left: 60%;
    animation-delay: 1s;
}
.brasa:nth-child(5) {
    left: 80%;
    animation-delay: 3s;
}
@keyframes subir {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(0.3);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE / MEDIA QUERIES
   ============================================ */
@media only screen and (min-width: 992px) {
    .ty-page::after {
        background-attachment: fixed;
    }
    .ty-page .main {
        min-height: 95vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .ty-page .main {

    }
}
@media only screen and (max-width: 767px) {
    .navbar img {
    }

    .modal-dialog {
        padding: 0 1rem;
    }
    #multi-step-form .form-check-label {
        flex: 1;
    }
    .wrapLanding::after {
        background-image: url("https://image.republicarojiblanca.fxp.mx/lib/fe26117473640578701c77/m/1/5a331e21-9b25-4154-bc18-add32457cd02.jpg");
        
        background-size: cover;
        background-repeat: no-repeat;
        background-position: bottom center;
        background-attachment: fixed;
    }
}