/**
 * Puntos de Venta - Frontend Styles
 * Carrusel con tarjetas estilo Viggo Professional
 */

.pdv-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Tabs Navigation */
.pdv-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 0;
    justify-content: center;
}

.pdv-tab-btn {
    background: transparent;
    border: 1px solid #c9a962;
    color: #c9a962;
    padding: 12px 24px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdv-tab-btn:hover {
    background: #c9a962;
    color: #000;
}

.pdv-tab-btn.active {
    background: #c9a962;
    color: #000;
}

/* Tab Panels */
.pdv-container .pdv-tabs-content .pdv-tab-panel {
    display: none !important;
}

.pdv-container .pdv-tabs-content .pdv-tab-panel.active {
    display: block !important;
}

/* Carrusel Container */
.pdv-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.pdv-carousel {
    overflow: hidden;
}

.pdv-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* Tarjetas */
.pdv-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background: transparent;
    border: none;
    border-left: 3px solid #c9a962;
    padding: 15px 25px;
    box-sizing: border-box;
    min-height: auto;
}

.pdv-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdv-card-name::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.pdv-card-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdv-card-info li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdv-card-info li::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Icono ubicación */
.pdv-card-info li.pdv-direccion::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* Icono teléfono */
.pdv-card-info li.pdv-telefono::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

/* Icono email */
.pdv-card-info li.pdv-email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Icono web */
.pdv-card-info li.pdv-web::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E");
}

.pdv-card-info a {
    color: #c9a962;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pdv-card-info a:hover {
    color: #e0c070;
    text-decoration: underline;
}

/* Flechas de navegación - a los costados */
.pdv-carousel-wrapper .pdv-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background: #c9a962 !important;
    border: none !important;
    color: #000 !important;
    font-size: 20px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.pdv-carousel-wrapper .pdv-nav-btn:hover {
    background: #e0c070 !important;
}

.pdv-carousel-wrapper .pdv-nav-btn:disabled {
    background: rgba(201, 169, 98, 0.3) !important;
    cursor: not-allowed;
}

.pdv-carousel-wrapper .pdv-nav-prev {
    left: 0 !important;
    right: auto !important;
}

.pdv-carousel-wrapper .pdv-nav-next {
    right: 0 !important;
    left: auto !important;
}

/* Ocultar paginador/dots */
.pdv-dots {
    display: none !important;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .pdv-card {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Responsive - Móvil */
@media (max-width: 600px) {
    /* Tabs con indicador de scroll */
    .pdv-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 0;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 40px;
        /* Gradiente que indica más contenido */
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .pdv-tabs-nav::-webkit-scrollbar {
        height: 3px;
    }

    .pdv-tabs-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .pdv-tabs-nav::-webkit-scrollbar-thumb {
        background: #c9a962;
    }

    .pdv-tab-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 10px;
    }

    /* Carrusel móvil - flechas abajo */
    .pdv-carousel-wrapper {
        padding: 0 10px 70px 10px !important;
        position: relative;
    }

    .pdv-card {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
    }

    /* Flechas en móvil - abajo centradas */
    .pdv-carousel-wrapper .pdv-nav-btn {
        top: auto !important;
        bottom: 10px !important;
        transform: none !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }

    .pdv-carousel-wrapper .pdv-nav-prev {
        left: calc(50% - 60px) !important;
        right: auto !important;
    }

    .pdv-carousel-wrapper .pdv-nav-next {
        right: calc(50% - 60px) !important;
        left: auto !important;
    }
}
