@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Mont';
    src: url('../fonts/Mont-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mont';
    src: url('../fonts/Mont-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mont';
    src: url('../fonts/Mont-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mont';
    src: url('../fonts/Mont-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body { font-family: 'Mont', 'Poppins', sans-serif; margin:0; }

/* ... Estilos para el modal de bienvenida y tour ... (Se mantienen) */
/* Estilos generales para el tour (se mantienen muchos de los estilos del modal) */
.link-terminos {
    font-family: Mont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.link-terminos:hover {
    color: #0056b3;
    text-decoration: underline;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 10px auto;
}

.carousel-item {
    width: 100%;
    flex-shrink: 0;
    display: none;
    text-align: center;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    animation: float 3s ease-in-out infinite;
    width: 100%;
    max-height: 35vh;
    object-fit: contain;
}

.carousel-text {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #333;
}

.swal2-confirm.swal2-styled {
    background-color: #000000ff !important;
    border: 0 !important;
    box-shadow: none !important;
}

.swal2-title {
    color: #000000ff !important;
}

/* Estilos para el tour (se mantienen) */
.tour-popup {
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tour-title {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Mont', sans-serif;
}

.tour-html-container {
    margin: 15px 0 20px;
}

.tour-modal-content {
    text-align: center;
}

.tour-modal-content p {
    color: #495057;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tour-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.tour-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #0000;
    cursor: pointer;
}

.tour-checkbox label {
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.tour-confirm-btn, .tour-cancel-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Mont', sans-serif;
    margin: 0 8px;
}

.tour-confirm-btn {
    background: #333333 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3) !important;
}

.tour-confirm-btn:hover {
    background: #ffb103 !important;
    color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 177, 3, 0.4) !important;
}

.tour-cancel-btn {
    background: #333333 !important;
    color: white !important;
    border: 1px solid #333333 !important;
}

.tour-cancel-btn:hover {
    background: #ffb103 !important;
    color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 177, 3, 0.3) !important;
}

@media (max-width: 576px) {
    .tour-popup {
        padding: 20px;
        margin: 10px;
    }

    .tour-title {
        font-size: 20px;
    }

    .tour-confirm-btn, .tour-cancel-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Standard form label/input styles (to match estimaciones/eventos) */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 8px;
    font-family: 'Mont', 'Poppins', sans-serif;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    color: #333333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px;
    font-family: 'Mont', 'Poppins', sans-serif;
}

textarea { resize: vertical; }

/* Icon positioning inside inputs */
.input-with-icon {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
    padding-right: 2.6rem;
}

.input-with-icon i {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 1rem;
}

.input-with-icon.left i { left: 0.9rem; right: auto; }

.frame {
    display: flex;
    height: 625px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 70px 0px;
    position: relative;
    background-color: #ef9600;
    border-radius: 10px;
    overflow: hidden;
}

.frame .div {
    display: flex;
    flex-direction: column;
    width: 487px;
    align-items: flex-end;
    justify-content: center;
    gap: 17px;
    position: relative;
}

.frame .text-wrapper {
    position: relative;
    align-self: stretch;
    margin-top: -1.00px;
    font-family: "Mont", sans-serif;
    font-weight: 700;
    color: white;
    font-size: 60px;
    letter-spacing: 0;
    line-height: normal;
}

#typewriter::after {
    content: "|";
    margin-left: 4px;
    animation: typeCursorBlink 0.8s steps(1, end) infinite;
}

@keyframes typeCursorBlink {
    50% {
        opacity: 0;
    }
}

.frame .busca-o-pega-el {
    position: relative;
    align-self: stretch;
    font-family: "Mont", sans-serif;
    font-weight: 400;
    color: var(--blanco);
    font-size: 23px;
    letter-spacing: 0;
    line-height: normal;
}

.frame .span {
    font-family: "Mont", sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 23px;
    letter-spacing: 0;
}

/* animación hero para el texto principal */
@keyframes heroEntry {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.frame .hero {
    opacity: 0;
    transform: scale(0.9);
}

.frame .hero.hero-active {
    animation: heroEntry 1s ease-out forwards,
               heroPulse 3s ease-in-out 1s infinite;
}

.frame .text-wrapper-2 {
    font-family: "Mont", sans-serif;
    font-weight: 700;
    color: white;
}

.frame .div-2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 0px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.frame .botn {
    display: flex;
    height: 65px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    position: relative;
    flex: 1;
    flex-grow: 1;
    border-radius: 6px;
    border: 1px solid;
    border-color: var(--blanco);
    background-color: #2b2b2b;
    color: white;
    font-weight: 600;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frame .botn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.phone-wrapper:hover::before {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive para el círculo y la imagen */
@media (max-width: 1400px) {
    .phone-wrapper::before {
        width: 450px;
        height: 450px;
    }
    
    .frame .compras-de-buyex {
        max-width: 320px;
    }
}

@media (max-width: 1200px) {
    .phone-wrapper::before {
        width: 400px;
        height: 400px;
    }
    
    .frame .compras-de-buyex {
        max-width: 280px;
    }
    
    .frame .compras-de-buyex:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 1024px) {
    .phone-wrapper::before {
        width: 350px;
        height: 350px;
    }
    
    .frame .compras-de-buyex {
        max-width: 250px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.frame .compras-de-buyex {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.phone-wrapper:hover .compras-de-buyex {
    animation: float 4s ease-in-out infinite;
}

.frame .compras-de-buyex:hover {
    transform: scale(1.15);
}

/* Contenedor flex para las tarifas */
.tarifas-flex-container {
    display: flex;
    gap: 15px;
    margin: 28px 0;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    box-sizing: border-box;
}

.tarifas-container {
    flex: 1 1 auto;
    min-width: calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    padding: 0 5px;
}

.tarifas-img, .base-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity .3s ease;
}

/* smooth hover swap: base image stays, hover image fades in */
.tarifas-container {
    position: relative;
}

.img-wrapper {
    position: relative;
    width: 100%;
    /* height determined by base image inside */
}

/* base image defines wrapper height proportionally */
.img-wrapper img.base-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

/* hover layer fills the wrapper exactly */
.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .3s ease;
}

.tarifas-container:hover .hover-img {
    opacity: 1;
}

@media (max-width: 900px) {
    /* mantener las dos tarifas lado a lado pero centradas */
    .tarifas-flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
        align-items: flex-start;
    }

    .tarifas-container {
        flex: 1 1 auto;
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        padding: 0 5px;
    }

    .tarifas-img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .tarifas-flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
    }

    .tarifas-container {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 0 4px;
    }

    .tarifas-img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .tarifas-flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin: 16px 0;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
    }

    .tarifas-container {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 0 3px;
    }

    .tarifas-img,
    .base-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .tarifas-flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin: 12px 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
    }

    .tarifas-container {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 0 2px;
    }

    .tarifas-img,
    .base-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* Estilos para las tiendas */
.stores-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.store-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    height: 125px;
    transition: all 0.3s ease;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.store-item img {
    max-width: 50%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.store-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive para tiendas */
@media (max-width: 1200px) {
    .stores-container {
        gap: 25px;
        padding: 25px;
    }

    .store-item {
        height: 160px;
        padding: 35px 20px;
    }

    .store-item img {
        max-height: 90px;
    }
}

@media (max-width: 900px) {
    .frame {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px 20px;
        height: 862px;
    }

    .frame .div {
        width: 100%;
        max-width: 480px;
        align-items: center;
        text-align: center;
    }

    .frame .text-wrapper,
    .frame .busca-o-pega-el {
        text-align: center;
        width: 100%;
    }

    .frame .text-wrapper {
        margin-top: 0;
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .frame .busca-o-pega-el {
        font-size: 18px;
        line-height: 1.35;
    }

    .frame .span {
        font-size: 18px;
    }

    .frame .compras-de-buyex {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .phone-wrapper {
        position: relative;
        left: 0;
        top: -72px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
    }
    
    .phone-wrapper::before {
        width: 320px;
        height: 320px;
    }

    /* When login/register buttons are hidden, adjust phone position */
    .frame:not(:has(.div-2)) .phone-wrapper {
        top: 126px;
    }

    /* Keep action buttons visible on mobile */
    .div-2 {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .top-bar {
        position: static;
    }
    
    .mobile-search {
        position: static;
    }
    
    .stores-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .store-item {
        height: 140px;
        padding: 30px 15px;
    }

    .store-item img {
        max-height: 80px;
    }
}

@media (max-width: 600px) {
    /* switch to horizontal scrolling on small phones to avoid long vertical lists */
    .stores-container {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 15px;
    }

    /* hide scrollbar on webkit browsers */
    .stores-container::-webkit-scrollbar {
        display: none;
    }

    .store-item {
        flex: 0 0 120px;
        /* maintain a consistent height from previous design */
        height: 120px;
        padding: 25px 10px;
        scroll-snap-align: start;
    }

    .store-item img {
        max-height: 70px;
    }
}

@media (max-width: 400px) {
    /* continue horizontal scrolling with tighter spacing */
    .stores-container {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 12px;
    }

    .stores-container::-webkit-scrollbar {
        display: none;
    }

    .store-item {
        flex: 0 0 100px;
        height: 100px;
        padding: 20px;
        scroll-snap-align: start;
    }

    .store-item img {
        max-height: 60px;
    }
}

/* Estilos para la sección de beneficios */
.facil-container {
    /* allow the section to grow with the viewport instead of capping at 1000px */
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Mont', sans-serif;
    background-color: white;
}

/* if you want to constrain it on extremely wide screens, you can uncomment or adjust:
@media (min-width: 1400px) {
    .facil-container { max-width: 1400px; }
}
*/

.facil-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
}

.facil-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #f3b53e;
    margin: 20px auto 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
   
    border-radius: 50%;
}

.benefit-icon img {
 width: 65px;
    height: 63px;
}

.benefit-title {
    font-size: 25px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 700;
}

p.benefit-description {
    font-weight: 600;
}

.benefit-description {
    font-size: 1.1rem;
    color: #2e2e2e;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .facil-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .benefit-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .facil-container {
        padding: 40px 15px;
    }

    .facil-title {
        font-size: 1.8rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .benefit-title {
        font-size: 1.3rem;
    }

    .benefit-description {
        font-size: 1rem;
    }
}

a.introjs-skipbutton {
    width: 85px !important;
    font-size: 16px !important;
}
