/* Estilos generales */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    background-color: #fff;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

.verification-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 5px;
    line-height: 1;
    position: relative;
    top: -2px;
    width: 3vh !important;
    height: 3vh !important;
    min-width: 3vh !important;
    min-height: 3vh !important;
    max-width: 3vh !important;
    max-height: 3vh !important;
    display: inline-block !important;
}

h1.business-name {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Estilos para la sección de fondo */
.business-background {
    width: 100%;
    height: 66.67vh; /* 2/3 de la altura de la ventana */
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre el contenedor */
    object-position: top; /* Muestra la parte superior de la imagen */
    display: block;
}

/* Contenedor de la sección de información del negocio */
.business-info-container {
    background-color: #fff; /* Fondo blanco */
    border-top-left-radius: 3vh;
    border-top-right-radius: 3vh;
    box-shadow: 0 -1vh 2vh rgba(0, 0, 0, 0.1); /* Sombra superior */
    margin-top: -5vh; /* Superposición sobre la imagen de fondo */
    position: relative;
    z-index: 1; /* Asegura que esté encima de la imagen de fondo */
}

/* Estilos para la sección de información del negocio */
.business-info {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 5vh 5vw;
}

.business-info img {
    border-radius: 50%;
    width: 15vw;
    height: 15vw;
    object-fit: cover;
    box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.1);
}

.business-text {
    padding-inline: 2vw;
}

.business-text h1 {
    font-size: 4vh;
    margin: 0;
}

.business-text p {
    margin: 0.5vh 0;
    font-size: 2vh;
}

.business-text button {
    padding: 1.5vh 3vw;
    font-size: 2vh;
    color: #fff;
    background-color: #25D366; /* Color verde de WhatsApp */
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    text-decoration: none;
    margin-top: 2vh;
    display: inline-block;
}

.business-text button:hover {
    background-color: #128C7E;
}

/* Estilos para la sección de productos */
.products {
    margin-top: 4vh;
    margin-bottom: 4vh;
    padding: 5vh 5vw;
    background-color: #fff; /* Fondo gris claro */
}

.products h2 {
    font-size: 3vh;
    margin-bottom: 2vh;
    text-align: center;
}

.product-grid {
    display: grid;
    gap: 2vh;
    grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
    justify-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.link-pago-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.link-pago-btn:hover {
    background-color: #0056b3;
}

/* Tarjeta del producto */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #fff;
    border-radius: 1.5vh;
    overflow: hidden;
    box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
    padding: 1.5vh;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card-link * {
    text-decoration: none !important;
}

.product-card:hover {
    transform: translateY(-0.5vh);
    box-shadow: 0 1.5vh 3vh rgba(0, 0, 0, 0.2);
}

/* Imagen del producto */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Contenedor 1:1 */
    overflow: hidden;
    border-radius: 1vh;
    background-color: #f9f9f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Precio del producto */
.product-price {
    color: #007bff;
    font-size: 2.2vh;
    font-weight: bold;
    margin-top: 1vh;
}

.product-name {
    font-size: 2vh;
    font-weight: bold;
    color: #333;
    margin-top: 0.5vh;
}

.product-description {
    font-size: 1.8vh;
    color: #777;
    margin-top: 0.5vh;
}

.social-links {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #f1f1f1;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: white;
}

.social-icon i {
    font-size: 18px;
}

.facebook {
    background-color: #3b5998;
}

.facebook:hover {
    background-color: #365899;
}

.instagram {
    background-color: #e4405f;
}

.instagram:hover {
    background-color: #c13584;
}

.tiktok {
    background-color: #000000;
}

.tiktok:hover {
    background-color: #69c9d0;
}

/* Responsivo */
@media (max-width: 768px) {
    .business-background {
        height: 50vh; /* Reduce la altura en móviles */
    }

    .business-info-container {
        margin-top: -3vh; /* Menor superposición en móviles */
        border-top-left-radius: 2vh;
        border-top-right-radius: 2vh;
    }

    .business-info {
        flex-direction: column;
        text-align: center;
        padding: 3vh 3vw;
    }

    .business-info img {
        width: 25vw;
        height: 25vw;
        margin-bottom: 2vh;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .products {
        padding: 3vh 3vw;
    }
}