/**
 * Volvone Store Locator - Frontend Styles V2
 * Diseño moderno con barra de búsqueda horizontal
 * Color principal: #009261
 */

/* ========================================
   VARIABLES Y RESET
======================================== */
:root {
    --vsl-primary: #009261;
    --vsl-primary-dark: #007550;
    --vsl-primary-light: #00b377;
    --vsl-secondary: #2c3e50;
    --vsl-gray-100: #f8f9fa;
    --vsl-gray-200: #e9ecef;
    --vsl-gray-300: #dee2e6;
    --vsl-gray-400: #ced4da;
    --vsl-gray-500: #adb5bd;
    --vsl-gray-700: #495057;
    --vsl-gray-900: #212529;
    --vsl-white: #ffffff;
    --vsl-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --vsl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --vsl-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --vsl-radius: 8px;
    --vsl-radius-lg: 12px;
    --vsl-transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */
.vsl-locator-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: var(--vsl-gray-900);
}

/* ========================================
   BARRA DE BÚSQUEDA HORIZONTAL MODERNA
======================================== */
.vsl-search-bar-modern {
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: var(--vsl-shadow-lg);
    padding: 20px;
    margin-bottom: 30px;
}

.vsl-search-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.vsl-search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.vsl-field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vsl-gray-500);
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
}

.vsl-input-modern,
.vsl-select-modern {
    width: 100%;
    height: 50px;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--vsl-gray-300);
    border-radius: var(--vsl-radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--vsl-gray-900);
    background: var(--vsl-white);
    transition: var(--vsl-transition);
    outline: none;
}

.vsl-input-modern:focus,
.vsl-select-modern:focus {
    border-color: var(--vsl-primary);
    box-shadow: 0 0 0 3px rgba(0, 146, 97, 0.1);
}

.vsl-input-modern::placeholder {
    color: var(--vsl-gray-500);
    font-weight: 400;
}

.vsl-select-modern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.vsl-search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vsl-btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 30px;
    background: var(--vsl-primary);
    color: var(--vsl-white);
    border: none;
    border-radius: var(--vsl-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vsl-transition);
    box-shadow: var(--vsl-shadow-sm);
    white-space: nowrap;
}


.vsl-btn-search:active {
    transform: translateY(0);
}

.vsl-btn-search:disabled {
    background: var(--vsl-gray-400);
    cursor: not-allowed;
    transform: none;
}

.vsl-btn-search .dashicons {
    font-size: 18px;
}

.vsl-btn-search:hover{
	background: #00543a!important;
}

.vsl-btn-gps {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #cb0c0c;
    border: 2px solid var(--vsl-gray-300);
    border-radius: var(--vsl-radius);
    cursor: pointer;
    transition: var(--vsl-transition);
    color: var(--vsl-gray-700);
}



.vsl-btn-gps .dashicons {
    font-size: 20px;
}

.vsl-btn-gps:hover, .vsl-btn-modal-secondary:hover {
    background: #950d0d!important;
}


.vsl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--vsl-white);
    border-radius: 50%;
    animation: vsl-spin 0.6s linear infinite;
}

@keyframes vsl-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE - BARRA DE BÚSQUEDA
======================================== */
@media (max-width: 992px) {
    .vsl-search-inline {
        flex-direction: column;
    }
    
    .vsl-search-field {
        width: 100%;
        min-width: 100%;
    }
    
    .vsl-search-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .vsl-btn-search {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   CONTENEDOR DE RESULTADOS
======================================== */
.vsl-results-container {
    margin-top: 30px;
}

/* ========================================
   LAYOUT CON MAPA DOMINANTE (OPCIÓN C)
======================================== */
.vsl-layout-map-focus {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 700px;
}

/* Mini Cards Container */
.vsl-mini-cards-container {
    position: relative;
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: var(--vsl-shadow-md);
    padding: 20px;
}

.vsl-mini-cards-header {
    margin-bottom: 15px;
}

.vsl-results-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--vsl-primary);
    color: var(--vsl-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

#vsl-results-count {
    font-size: 18px;
    font-weight: 700;
}

/* Scroll horizontal de mini cards */
.vsl-mini-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.vsl-mini-cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.vsl-mini-cards-scroll::-webkit-scrollbar-track {
    background: var(--vsl-gray-100);
    border-radius: 3px;
}

.vsl-mini-cards-scroll::-webkit-scrollbar-thumb {
    background: var(--vsl-primary);
    border-radius: 3px;
}

/* Mini Card */
.vsl-mini-card {
    flex: 0 0 280px;
    background: var(--vsl-white);
    border: 2px solid var(--vsl-gray-200);
    border-radius: var(--vsl-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--vsl-transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vsl-mini-card:hover {
    border-color: var(--vsl-primary);
    box-shadow: var(--vsl-shadow-md);
    transform: translateY(-2px);
}

.vsl-mini-card.vsl-store-highlighted {
    border-color: var(--vsl-primary);
    background: linear-gradient(to bottom, rgba(0, 146, 97, 0.05), transparent);
    box-shadow: var(--vsl-shadow-lg);
}

.vsl-mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vsl-mini-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--vsl-gray-900);
    margin: 0;
}

.vsl-mini-card-distance {
    background: var(--vsl-primary);
    color: var(--vsl-white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vsl-mini-card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: var(--vsl-gray-600);
    line-height: 1.4;
}

.vsl-mini-card-address .dashicons {
    color: var(--vsl-primary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.vsl-mini-card-products {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.vsl-mini-product-tag {
    padding: 2px 8px;
    background: rgba(0, 146, 97, 0.1);
    color: var(--vsl-primary-dark);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Botones de scroll */
.vsl-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--vsl-white);
    border: 2px solid var(--vsl-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--vsl-transition);
    z-index: 10;
    box-shadow: var(--vsl-shadow-sm);
}

.vsl-scroll-btn:hover {
    background: var(--vsl-primary);
    border-color: var(--vsl-primary);
    color: var(--vsl-white);
    box-shadow: var(--vsl-shadow-md);
}

.vsl-scroll-left {
    left: 10px;
}

.vsl-scroll-right {
    right: 10px;
}

.vsl-scroll-btn .dashicons {
    font-size: 20px;
}

/* Estado vacío mini */
.vsl-empty-state-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: var(--vsl-gray-500);
    font-size: 14px;
}

.vsl-empty-state-mini .dashicons {
    font-size: 24px;
    opacity: 0.5;
}

/* Mapa grande */
.vsl-map-container-large {
    flex: 1;
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: var(--vsl-shadow-md);
    overflow: hidden;
    min-height: 550px;
}

/* ========================================
   LAYOUT CON MAPA (2 COLUMNAS) - LEGACY
======================================== */
.vsl-layout-with-map {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    min-height: 600px;
}

.vsl-results-list-container {
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: var(--vsl-shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#vsl-results-header {
    padding: 20px;
    background: var(--vsl-gray-100);
    border-bottom: 2px solid var(--vsl-gray-300);
}

.vsl-results-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--vsl-gray-900);
}

#vsl-results-count {
    color: var(--vsl-primary);
    font-weight: 700;
}

.vsl-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.vsl-results-list::-webkit-scrollbar {
    width: 8px;
}

.vsl-results-list::-webkit-scrollbar-track {
    background: var(--vsl-gray-100);
}

.vsl-results-list::-webkit-scrollbar-thumb {
    background: var(--vsl-gray-400);
    border-radius: 4px;
}

.vsl-results-list::-webkit-scrollbar-thumb:hover {
    background: var(--vsl-gray-500);
}

/* ========================================
   TARJETAS DE TIENDAS
======================================== */
.vsl-store-card {
    background: var(--vsl-white);
    border: 2px solid var(--vsl-gray-200);
    border-radius: var(--vsl-radius);
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--vsl-transition);
}

.vsl-store-card:hover {
    border-color: var(--vsl-primary);
    box-shadow: var(--vsl-shadow-md);
    transform: translateY(-2px);
}

.vsl-store-card.vsl-store-highlighted {
    border-color: var(--vsl-primary);
    box-shadow: var(--vsl-shadow-lg);
    background: linear-gradient(to right, rgba(0, 146, 97, 0.03), transparent);
}

.vsl-store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--vsl-gray-200);
}

.vsl-store-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--vsl-gray-900);
    flex: 1;
}

.vsl-store-distance {
    background: var(--vsl-primary);
    color: var(--vsl-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
}

.vsl-store-body {
    margin-bottom: 15px;
}

.vsl-store-address,
.vsl-store-phone,
.vsl-store-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--vsl-gray-700);
}

.vsl-store-address .dashicons,
.vsl-store-phone .dashicons,
.vsl-store-email .dashicons {
    color: var(--vsl-primary);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.vsl-store-address p,
.vsl-store-phone a,
.vsl-store-email a {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.vsl-store-phone a,
.vsl-store-email a {
    color: var(--vsl-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--vsl-transition);
}

.vsl-store-phone a:hover,
.vsl-store-email a:hover {
    color: var(--vsl-primary-dark);
    text-decoration: underline;
}

.vsl-store-products {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--vsl-gray-200);
}

.vsl-store-products strong {
    display: block;
    font-size: 13px;
    color: var(--vsl-gray-700);
    margin-bottom: 8px;
}

.vsl-products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vsl-product-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 146, 97, 0.1);
    color: var(--vsl-primary-dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.vsl-store-footer {
    display: flex;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--vsl-gray-200);
}

.vsl-btn-directions,
.vsl-btn-view-map {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--vsl-gray-300);
    border-radius: var(--vsl-radius);
    background: var(--vsl-white);
    color: var(--vsl-gray-700);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--vsl-transition);
}

.vsl-btn-directions:hover,
.vsl-btn-view-map:hover {
    background: var(--vsl-primary);
    border-color: var(--vsl-primary);
    color: var(--vsl-white);
    transform: translateY(-1px);
    box-shadow: var(--vsl-shadow-sm);
}

.vsl-btn-directions .dashicons,
.vsl-btn-view-map .dashicons {
    font-size: 16px;
}

/* ========================================
   MAPA
======================================== */
.vsl-map-container {
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: var(--vsl-shadow-md);
    overflow: hidden;
    position: relative;
}

.vsl-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Info Window personalizada */
.vsl-info-window {
    padding: 5px;
    max-width: 250px;
}

.vsl-info-window h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--vsl-gray-900);
}

.vsl-info-window p {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--vsl-gray-700);
}

.vsl-info-window a {
    color: var(--vsl-primary);
    text-decoration: none;
    font-weight: 500;
}

.vsl-info-window .vsl-btn-small {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--vsl-primary);
    color: var(--vsl-white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--vsl-transition);
}

.vsl-info-window .vsl-btn-small:hover {
    background: var(--vsl-primary-dark);
}

/* ========================================
   ESTADO VACÍO
======================================== */
.vsl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--vsl-gray-500);
}

.vsl-empty-state .dashicons {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 15px;
}

.vsl-empty-state p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* ========================================
   LAYOUT SIN MAPA (SOLO LISTA)
======================================== */
.vsl-layout-list-only {
    max-width: 800px;
    margin: 0 auto;
}

.vsl-results-list-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.vsl-results-list-full .vsl-store-card {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE - RESULTADOS Y MAPA
======================================== */
@media (max-width: 1200px) {
    .vsl-layout-with-map {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 992px) {
    .vsl-layout-with-map {
        grid-template-columns: 1fr;
        grid-template-rows: 400px auto;
    }
    
    .vsl-map-container {
        order: -1;
        min-height: 400px;
    }
    
    .vsl-results-list-container {
        max-height: 500px;
    }
    
    .vsl-map {
        min-height: 400px;
    }
    
    /* Layout map focus en móvil */
    .vsl-layout-map-focus {
        min-height: 600px;
    }
    
    .vsl-mini-card {
        flex: 0 0 240px;
    }
    
    .vsl-map-container-large {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .vsl-locator-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .vsl-search-bar-modern {
        padding: 15px;
    }
    
    .vsl-results-list-full {
        grid-template-columns: 1fr;
    }
    
    .vsl-store-card {
        padding: 15px;
    }
    
    .vsl-store-name {
        font-size: 16px;
    }
    
    .vsl-btn-directions,
    .vsl-btn-view-map {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Mini cards más pequeñas en móvil */
    .vsl-mini-card {
        flex: 0 0 200px;
    }
    
    .vsl-mini-card-name {
        font-size: 14px;
    }
    
    .vsl-scroll-btn {
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   MODAL DE INFORMACIÓN DE TIENDA
======================================== */
.vsl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vsl-fadeIn 0.2s ease-out;
}

.vsl-modal-container {
    background: var(--vsl-white);
    border-radius: var(--vsl-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: vsl-slideUp 0.3s ease-out;
}

@keyframes vsl-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsl-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--vsl-primary), var(--vsl-primary-light));
    color: var(--vsl-white);
    position: relative;
}

.vsl-modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color:white;
}

.vsl-modal-distance {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.vsl-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--vsl-transition);
    color: var(--vsl-white);
}

.vsl-modal-close:hover {
    background: #009261!important;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.vsl-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vsl-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.vsl-modal-body::-webkit-scrollbar {
    width: 8px;
}

.vsl-modal-body::-webkit-scrollbar-track {
    background: var(--vsl-gray-100);
}

.vsl-modal-body::-webkit-scrollbar-thumb {
    background: var(--vsl-primary);
    border-radius: 4px;
}

.vsl-modal-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--vsl-gray-200);
}

.vsl-modal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.vsl-modal-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--vsl-gray-900);
}

.vsl-modal-section h4 .dashicons {
    color: var(--vsl-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vsl-modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.vsl-modal-info-item:last-child {
    margin-bottom: 0;
}

.vsl-modal-info-item .dashicons {
    color: var(--vsl-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.vsl-modal-info-item p {
    margin: 0;
    line-height: 1.5;
    color: var(--vsl-gray-700);
}

.vsl-modal-info-item strong {
    color: var(--vsl-gray-900);
}

.vsl-modal-info-item a {
    color: var(--vsl-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--vsl-transition);
}

.vsl-modal-info-item a:hover {
    color: var(--vsl-primary-dark);
    text-decoration: underline;
}

.vsl-modal-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vsl-product-tag-modal {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 146, 97, 0.1);
    color: var(--vsl-primary-dark);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 146, 97, 0.2);
}

.vsl-modal-hours {
    margin: 0;
    padding: 15px;
    background: var(--vsl-gray-100);
    border-radius: var(--vsl-radius);
    color: var(--vsl-gray-700);
    line-height: 1.8;
}

.vsl-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    background: var(--vsl-gray-100);
    border-top: 1px solid var(--vsl-gray-300);
}

.vsl-btn-modal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--vsl-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vsl-transition);
    text-decoration: none;
}

.vsl-btn-modal .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.vsl-btn-modal-primary {
    background: var(--vsl-primary);
    color: var(--vsl-white);
    box-shadow: var(--vsl-shadow-sm);
}

.vsl-btn-modal-primary:hover {
    background: var(--vsl-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--vsl-shadow-md);
}

.vsl-btn-modal-secondary {
    background: #cb0c0c;
    color: White;
    border: 2px solid var(--vsl-gray-300);
}



/* Responsive Modal */
@media (max-width: 576px) {
    .vsl-modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .vsl-modal-header,
    .vsl-modal-body,
    .vsl-modal-footer {
        padding: 20px;
    }
    
    .vsl-modal-header h3 {
        font-size: 18px;
    }
    
    .vsl-modal-footer {
        flex-direction: column;
    }
    
    .vsl-btn-modal {
        width: 100%;
    }
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes vsl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsl-store-card {
    animation: vsl-fadeIn 0.3s ease-out;
}

/* ========================================
   UTILIDADES
======================================== */
.vsl-hidden {
    display: none !important;
}

.vsl-text-center {
    text-align: center;
}

.vsl-mt-20 {
    margin-top: 20px;
}

.vsl-mb-20 {
    margin-bottom: 20px;
}
/**
 * Volvone Store Form - Estilos Modernos
 * Diseño de 2 columnas con verde #009261
 */

/* ==========================================
   CONTENEDOR PRINCIPAL
========================================== */
.vsl-form-container-modern {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================
   HEADER DEL FORMULARIO
========================================== */
.vsl-form-header-modern {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #009261 0%, #00b377 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 146, 97, 0.2);
}

.vsl-form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.vsl-form-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.vsl-form-header-modern h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.vsl-form-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   FORMULARIO
========================================== */
.vsl-form-modern {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   GRID DE 2 COLUMNAS
========================================== */
.vsl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .vsl-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================
   SECCIONES
========================================== */
.vsl-form-section,
.vsl-form-section-full {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.vsl-form-section:hover,
.vsl-form-section-full:hover {
    border-color: #009261;
    box-shadow: 0 4px 12px rgba(0, 146, 97, 0.1);
}

.vsl-form-section-full {
    margin-bottom: 30px;
}

.vsl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.vsl-section-title .dashicons {
    color: #009261;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ==========================================
   GRUPOS DE FORMULARIO
========================================== */
.vsl-form-group-modern {
    margin-bottom: 20px;
}

.vsl-form-group-modern:last-child {
    margin-bottom: 0;
}

.vsl-label-modern {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.vsl-label-modern.required::after {
    content: " *";
    color: #e74c3c;
}

.vsl-label-modern .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    color: #009261;
}

/* ==========================================
   INPUTS CON ICONOS
========================================== */
.vsl-input-with-icon {
    position: relative;
}

.vsl-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 20px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.vsl-input-modern,
.vsl-textarea-modern {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #212529;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.vsl-input-modern:focus,
.vsl-textarea-modern:focus {
    border-color: #009261;
    box-shadow: 0 0 0 3px rgba(0, 146, 97, 0.1);
}

.vsl-input-modern::placeholder,
.vsl-textarea-modern::placeholder {
    color: #adb5bd;
}

.vsl-textarea-modern {
    padding: 12px 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* ==========================================
   CHECKBOXES MODERNOS (TARJETAS)
========================================== */
.vsl-checkbox-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.vsl-checkbox-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.vsl-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vsl-checkbox-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vsl-checkbox-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #dee2e6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vsl-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.vsl-checkbox-card input:checked + .vsl-checkbox-content {
    background: linear-gradient(135deg, rgba(0, 146, 97, 0.1), rgba(0, 179, 119, 0.05));
    border-color: #009261;
    box-shadow: 0 2px 8px rgba(0, 146, 97, 0.15);
}

.vsl-checkbox-card input:checked + .vsl-checkbox-content .vsl-checkbox-icon {
    color: #009261;
}

.vsl-checkbox-card:hover .vsl-checkbox-content {
    border-color: #009261;
    transform: translateY(-2px);
}

/* ==========================================
   CHECKBOXES DE CONSENTIMIENTO
========================================== */
.vsl-consent-section {
    background: #fff9e6;
    border-color: #ffd966;
}

.vsl-consent-box {
    margin-bottom: 15px;
}

.vsl-consent-box:last-child {
    margin-bottom: 0;
}

.vsl-checkbox-label-modern {
    display: block;
    cursor: pointer;
}

.vsl-checkbox-label-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vsl-checkbox-label-modern .vsl-checkbox-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vsl-checkbox-label-modern input:checked + .vsl-checkbox-content {
    border-color: #009261;
    background: rgba(0, 146, 97, 0.05);
}

.vsl-checkbox-label-modern .vsl-checkbox-icon {
    margin-top: 2px;
}

.vsl-checkbox-label-modern a {
    color: #009261;
    text-decoration: none;
    font-weight: 600;
}

.vsl-checkbox-label-modern a:hover {
    text-decoration: underline;
}

/* ==========================================
   FILAS DE FORMULARIO
========================================== */
.vsl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .vsl-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TEXTOS DE AYUDA
========================================== */
.vsl-help-text,
.vsl-help-text-top {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.vsl-help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.vsl-help-text .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vsl-help-text-top {
    margin-bottom: 15px;
}

/* ==========================================
   BOTÓN DE ENVÍO
========================================== */
.vsl-form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.vsl-btn-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #009261 0%, #00b377 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 146, 97, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vsl-btn-submit-modern:hover {
    background: linear-gradient(135deg, #007550 0%, #009261 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 146, 97, 0.4);
}

.vsl-btn-submit-modern:active {
    transform: translateY(0);
}

.vsl-btn-submit-modern:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vsl-btn-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vsl-spinner-modern {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vsl-spin-modern 0.6s linear infinite;
}

@keyframes vsl-spin-modern {
    to { transform: rotate(360deg); }
}

/* ==========================================
   MENSAJES DE RESPUESTA
========================================== */
.vsl-form-response {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.vsl-form-response.success {
    background: #d4edda;
    border: 2px solid #009261;
    color: #155724;
}

.vsl-form-response.error {
    background: #f8d7da;
    border: 2px solid #e74c3c;
    color: #721c24;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 992px) {
    .vsl-form-modern {
        padding: 30px 25px;
    }
    
    .vsl-checkbox-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .vsl-form-container-modern {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .vsl-form-header-modern {
        padding: 30px 20px;
    }
    
    .vsl-form-header-modern h2 {
        font-size: 24px;
    }
    
    .vsl-form-modern {
        padding: 25px 20px;
    }
    
    .vsl-form-section,
    .vsl-form-section-full {
        padding: 20px;
    }
    
    .vsl-checkbox-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .vsl-btn-submit-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   ANIMACIONES
========================================== */
@keyframes vsl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsl-form-section,
.vsl-form-section-full {
    animation: vsl-fadeIn 0.5s ease-out;
}

/* ==========================================
   NOTICE (INFO)
========================================== */
.vsl-notice {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 15px;
}

.vsl-notice-info {
    background: #d1ecf1;
    border: 2px solid #0c5460;
    color: #0c5460;
}

.vsl-notice p {
    margin: 0;
}


/* ==========================================
   MODAL DE CONFIRMACIÓN DEL FORMULARIO
========================================== */
.vsl-form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vsl-fadeIn 0.2s ease-out;
}

.vsl-form-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vsl-slideUp 0.3s ease-out;
}

.vsl-form-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vsl-form-modal.success .vsl-form-modal-icon {
    background: linear-gradient(135deg, #009261, #00b377);
}

.vsl-form-modal.error .vsl-form-modal-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.vsl-form-modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: white;
}

.vsl-form-modal h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.vsl-form-modal.success h3 {
    color: #009261;
}

.vsl-form-modal.error h3 {
    color: #e74c3c;
}

.vsl-form-modal p {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

.vsl-form-modal-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #009261, #00b377);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 146, 97, 0.3);
}

.vsl-form-modal-btn:hover {
    background: linear-gradient(135deg, #007550, #009261);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 146, 97, 0.4);
}

.vsl-form-modal.error .vsl-form-modal-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.vsl-form-modal.error .vsl-form-modal-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    box-shadow: 0 6px 24px rgba(108, 117, 125, 0.4);
}

@media (max-width: 576px) {
    .vsl-form-modal {
        padding: 30px 20px;
    }
    
    .vsl-form-modal h3 {
        font-size: 22px;
    }
    
    .vsl-form-modal p {
        font-size: 14px;
    }
    
    .vsl-form-modal-btn {
        width: 100%;
    }
}


