/* Unidades Plugin - Tabbed Interface Styles */

.container-Area {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: white;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    flex: 1;           
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active {
    background: white;
    border-bottom-color: #007cba;
}

.tab-button img {
    max-width: 150px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.tab-button span {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.tabs-content {
    background: #e6e7e8;     
    padding: 30px;
    min-height: 300px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-card h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 24px;
}

.content-card p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.clr {
    clear: both;
}

.logoLeft {
    float: left;
    width: 12%;
    height: 100%;
    margin-right: 20px;
}

.logoLeft img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.textRight {
    float: left;
    width: 88%;
    color: #a3a3a3;
}

.textRight p {
    margin-top: 0;
    margin-bottom: 15px;
}

.textRight p:last-child {
    margin-bottom: 0;
}

.textRight strong {
    color: #333;
    font-weight: 600;
}

.textRight a {
    color: #007cba;
    text-decoration: none;
}

.textRight a:hover {
    text-decoration: underline;
}

.tituloEmpresa {
    display: block;
    width: 100%;
    font-size: 30px;
    margin-bottom: 18px;
    color: #333;
    font-weight: 600;
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-button.active {
        border-bottom-color: #007cba;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .logoLeft {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .textRight {
        width: 100%;
        float: none;
    }
    
    .tituloEmpresa {
        font-size: 24px;
        text-align: center;
    }
    
    .tab-button img {
        max-width: 120px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .tabs-content {
        padding: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .tituloEmpresa {
        font-size: 20px;
    }
    
    .tab-button {
        padding: 12px;
    }
    
    .tab-button img {
        max-width: 100px;
        max-height: 40px;
    }
}

/* Legacy support for old display styles */
.unidades-component {
    margin: 20px 0;
}

.unidades-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.unidades-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.unidades-container.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.unidades-container.unidades-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unidades-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unidades-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.unidades-item-image {
    text-align: center;
    margin-bottom: 15px;
}

.unidades-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.unidades-logo:hover {
    transform: scale(1.05);
}

.unidades-item-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.unidades-item-description {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.unidades-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unidades-detail {
    font-size: 14px;
    color: #666;
}

.unidades-detail strong {
    color: #333;
    margin-right: 5px;
}

.unidades-detail a {
    color: #007cba;
    text-decoration: none;
}

.unidades-detail a:hover {
    text-decoration: underline;
}

.unidades-no-units {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Carousel styles */
.unidades-carousel {
    position: relative;
    overflow: hidden;
}

.unidades-carousel-container {
    display: flex;
    transition: transform 0.3s ease;
}

.unidades-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev {
    margin-left: 10px;
}

.carousel-next {
    margin-right: 10px;
}

/* Load more button */
.unidades-load-more-container {
    text-align: center;
    margin-top: 30px;
}

.unidades-load-more {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.unidades-load-more:hover {
    background: #005a87;
}