/* ==========================================================================
   Estilos para la Sección de Socios Estratégicos (CPT Socio)
   VERSIÓN 3.0 (GENIALIDAD: Fichas Vivas + Tech Blue)
   ========================================================================== */

/* --- Estilos para la Cabecera de Marca ("Hero") --- */
.socio-hero-header {
    position: relative; 
    padding: 80px 20px;
    background-color: #f0f0f1;
    color: #fff;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.socio-hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; 
}

.socio-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente Azul Profundo Tecnológico */
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.9) 0%, rgba(19, 94, 150, 0.85) 100%);
    z-index: 1; 
}

.socio-hero-content { position: relative; z-index: 2; }

.socio-hero-logo { margin-bottom: 20px; }
.socio-hero-logo img {
    max-width: 200px; height: auto; max-height: 100px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    background: #fff; padding: 10px; border-radius: 8px;
}
.socio-hero-content .entry-title {
    color: #fff; font-size: 3.5rem; margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.socio-hero-terms {
    margin-top: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
}
.socio-hero-terms a { color: #fff; text-decoration: none; opacity: 0.9; }

/* --- Estilos para la Sección de Servicios VIVOS (PORTAL) --- */
.services-live-grid {
    display: grid;
    grid-template-columns: 1fr; /* Lista vertical por defecto */
    gap: 15px;
}

.live-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.live-service-card:hover {
    border-color: var(--thw-color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.service-info h4 { margin: 0 0 5px 0; font-size: 1.2rem; color: #333; }
.service-info p { margin: 0; font-size: 0.95rem; color: #666; }

.service-price { text-align: right; min-width: 120px; }
.price-tag {
    display: inline-block;
    background-color: var(--thw-color-light-bg);
    color: var(--thw-color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 50px;
}
.price-tag small { font-size: 0.7em; font-weight: 500; color: #777; }

/* --- Layout General --- */
.socio-main-content { display: flex; flex-wrap: wrap; gap: 40px; }
.socio-column-main { flex: 2 1 500px; min-width: 0; }
.socio-column-sidebar { flex: 1 1 300px; }
.socio-dynamic-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.section-title { text-align: left; margin-bottom: 30px; font-size: 2rem; color: #333; }

/* Sidebar Boxes */
.socio-details-box { background-color: #f8f9fa; padding: 25px; border-radius: 12px; margin-bottom: 30px; border: 1px solid #eee; }
.socio-details-box h4 { margin-top: 0; color: var(--thw-color-primary); border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 15px; }
.socio-details-box ul { list-style: none; padding: 0; margin: 0; }
.socio-details-box li { padding: 10px 0; border-bottom: 1px solid #e9e9e9; display: flex; justify-content: space-between; }
.socio-details-box li:last-child { border-bottom: none; }
.socio-details-box li strong { color: #555; }

/* Mapa On-Demand */
.socio-map-container {
    width: 100%; height: 300px; border-radius: 8px;
    background-color: #e0e0e0; position: relative;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; border: 1px solid #ccc;
}
.map-placeholder-content { text-align: center; color: #666; z-index: 2; }
.map-placeholder-icon { font-size: 3rem; margin-bottom: 10px; color: #999; }
.map-load-btn {
    margin-top: 10px; background-color: var(--thw-color-primary); color: #fff; border: none;
    padding: 10px 20px; border-radius: 50px; font-weight: bold; cursor: pointer;
    transition: background-color 0.3s ease; display: inline-flex; align-items: center; gap: 5px;
}
.map-load-btn:hover { background-color: var(--thw-color-primary-dark); }

/* Galería */
.socio-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.socio-gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease; }
.socio-gallery-grid a:hover img { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Responsive */
@media (max-width: 600px) {
    .live-service-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .service-price { text-align: left; width: 100%; }
    .price-tag { display: block; text-align: center; }
}