/* ========================================
   TopSaver Club - Estilos Página de Empresa
   ======================================== */

/* ========================================
   CABECERA DE EMPRESA
   ======================================== */

.company-header-banner {
    background: var(--primary-gradient);
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.company-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M0,0v100h1000V0c-200,20-400,40-600,30C300,20,100,10,0,0z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
}

/* Banner de empresa con efecto zoom */
.company-banner-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.company-banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

.company-profile-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* ========================================
   TARJETA DE PERFIL
   ======================================== */

.profile-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: none;
    position: relative;
    overflow: hidden;
}

/* .profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
} */

.company-logo-large {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--border-radius-md);
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 0px;
    margin-left: 0px;
    object-fit: contain;
    transition: all var(--transition-normal);
    border: 3px solid white;
}

.company-logo-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.branch-logo-large {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--border-radius-md);
    padding: 3px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: contain;
    transition: all var(--transition-normal);
    border: 3px solid white;
}

.branch-logo-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.branch-google-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.branch-google-gallery-img {
    flex: 0 0 auto;
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.branch-google-gallery-attribution {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.branch-maps-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.branch-maps-link:hover {
    color: var(--bs-primary, #0d6efd);
}

/* ========================================
   CARRUSEL DE DOCUMENTOS
   ======================================== */

.documents-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.document-card {
    flex: 0 0 auto;
    width: 96px;
    min-height: 96px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-md);
    color: #495057;
    padding: 0.75rem 0.5rem;
    gap: 0.4rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.document-card:hover {
    border-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-card-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.document-card-label {
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========================================
   INFORMACIÓN DE EMPRESA
   ======================================== */

.company-info h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.company-rating {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.company-status.open {
    color: #28a745;
    font-weight: 600;
}

.company-status.closed {
    color: #dc3545;
    font-weight: 600;
}

.btn-follow {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-follow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-follow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 0, 234, 0.3);
}

/* ========================================
   BOTONES DE ACCIÓN
   ======================================== */

.btn-ver-mas {
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-ver-mas::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.btn-ver-mas:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 90, 254, 0.3);
}

.btn-ver-mas:hover::after {
    transform: translateX(3px);
}

/* ========================================
   ESTADOS VACÍOS
   ======================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
 /* @media (max-width: 992px) {
    .company-logo-large {
        width: 80px;
        height: 80px;
        margin-top: -8px;
    }
}   */


@media (max-width: 768px) {
    .company-header-banner {
        height: 150px;
    }
    
    .company-profile-section {
        margin-top: -40px;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .company-logo-large {
        width: 80px;
        height: 80px;
        margin-top: 0px;
    }

    .branch-logo-large {
        width: 80px;
        height: 80px;
        margin-top: 0px;
    }

    .branch-google-gallery-img {
        width: 100px;
        height: 75px;
    }

    .btn-follow {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .company-logo-large {
        width: 70px;
        height: 70px;
        margin-top: 0px;
    }

    .branch-logo-large {
        width: 70px;
        height: 70px;
    }

    .branch-google-gallery-img {
        width: 88px;
        height: 66px;
    }

    .btn-follow {
        width: 100%;
        margin-top: 1rem;
    }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    
    .company-header-banner::before {
        animation: none;
    }
}


/* ========================================
   IMPRESIÓN
   ======================================== */

@media print {
    .company-header-banner,
    .btn-follow,
    .btn-ver-mas {
        display: none;
    }
    
    .profile-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.cashback-restrictions-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #9eeaf9;
    border-radius: 0.5rem;
    background: #cff4fc;
    color: #055160;
    font-weight: 600;
    text-align: left;
}

.cashback-restrictions-toggle:focus {
    outline: 2px solid #055160;
    outline-offset: 2px;
}

/* Fondo con imagen que hará zoom */
.card-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1);
}

/* Overlay con gradientes temáticos */
.card-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.card-overlay[data-overlay-type="blue"] {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4) 0%, rgba(13, 71, 161, 0.9) 100%);
}

.card-overlay[data-overlay-type="purple"] {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.4) 0%, rgba(49, 27, 146, 0.9) 100%);
}

.card-overlay[data-overlay-type="green"] {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4) 0%, rgba(27, 94, 32, 0.9) 100%);
}

.card-overlay[data-overlay-type="orange"] {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4) 0%, rgba(230, 81, 0, 0.9) 100%);
}

/* Contenido de la tarjeta */
.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}