.instalador-detalle-page {
    padding-top: 80px;
    background: #f5f7fa;
    min-height: 100vh;
}

.detalle-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.detalle-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.detalle-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detalle-breadcrumb a:hover {
    color: #1557b0;
}

.detalle-breadcrumb i {
    font-size: 10px;
    color: #999;
}

.detalle-main-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.detalle-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detalle-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- HERO CARD ---- */
.detalle-card-hero {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(135deg, #19A553 0%, #0d6b35 100%);
    opacity: 0.08;
    border-radius: 16px 16px 0 0;
}

.detalle-card-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(25, 165, 83, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.detalle-hero {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
}

.detalle-profile {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 4px solid #fff;
    position: relative;
}

.profile-available-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.detalle-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detalle-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detalle-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
}

.detalle-type-badge.empresa {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.detalle-type-badge.individual {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
}

.detalle-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.detalle-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.detalle-profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a2e;
    line-height: 1.2;
}

.detalle-location,
.detalle-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a6b7a;
    font-size: 15px;
    margin-bottom: 6px;
}

.detalle-location i,
.detalle-address i {
    color: #19A553;
}

/* ---- STATS ---- */
.detalle-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}

.detalle-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-value {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars {
    color: #ffb400;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-count {
    color: #7a8a9a;
    font-size: 13px;
}

.detalle-stat-item {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid #e8ecf0;
}

.detalle-stat-item:first-of-type {
    border-left: none;
}

@media (max-width: 768px) {
    .detalle-stat-item:first-of-type {
        border-left: none;
    }
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label {
    font-size: 12px;
    color: #7a8a9a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalle-zones {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e8ecf0;
}

.detalle-zones h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalle-zones h3 i {
    color: #19A553;
}

.detalle-zones p {
    color: #5a6b7a;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detalle-zones p span {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.detalle-testimonio-featured {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    border-left: 4px solid #19A553;
}

.testimonio-icon {
    color: #19A553;
    font-size: 20px;
    margin-bottom: 12px;
}

.testimonio-text {
    font-size: 16px;
    color: #3a4a5a;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonio-autor {
    font-size: 13px;
    color: #6a7a8a;
    font-weight: 500;
}

/* ---- SECTIONS ---- */
.detalle-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.detalle-section {
    margin-bottom: 28px;
}

.detalle-section:last-child {
    margin-bottom: 0;
}

.detalle-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalle-section h2 i {
    color: #19A553;
    font-size: 18px;
}

.detalle-section p {
    color: #4a5a6a;
    line-height: 1.7;
    font-size: 15px;
}

.detalle-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 8px;
    font-size: 13px;
    color: #3a4a5a;
    font-weight: 500;
    border: 1px solid #e8ecf0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #19A553;
    border-radius: 50%;
}

.detalle-company-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
}

.data-label {
    color: #7a8a9a;
    font-size: 14px;
}

.data-value {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

/* ---- REVIEWS ---- */
.detalle-reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid #e8ecf0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19A553 0%, #128c7e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.review-info {
    flex: 1;
}

.review-name {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 15px;
}

.review-date {
    font-size: 13px;
    color: #8a9aaa;
}

.review-stars {
    color: #ffb400;
    font-size: 13px;
    letter-spacing: 2px;
}

.review-text {
    color: #5a6a7a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ---- CTA CARD ---- */
.detalle-cta-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    border: 1px solid #e8ecf0;
}

.detalle-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366, #19A553);
    border-radius: 16px 16px 0 0;
}

.detalle-cta-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.detalle-cta-card p {
    color: #6a7a8a;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-whatsapp-large,
.btn-call-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 12px;
    cursor: pointer;
    border: none;
}

.btn-whatsapp-large {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-call-large {
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #e8ecf0;
}

.btn-call-large:hover {
    background: #f8fafc;
    border-color: #19A553;
}

.detalle-disponible,
.detalle-no-disponible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
}

.detalle-disponible {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.detalle-disponible i {
    color: #2e7d32;
}

.detalle-no-disponible {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.detalle-no-disponible i {
    color: #c62828;
}

/* ---- OTHER CARD ---- */
.detalle-other-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.detalle-quick-actions {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf0;
}

.quick-action-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-action-item:first-child {
    padding-top: 0;
}

.quick-action-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #19A553;
    font-size: 16px;
}

.quick-action-info {
    display: flex;
    flex-direction: column;
}

.quick-action-label {
    font-size: 12px;
    color: #8a9aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-action-value {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

.detalle-other-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.other-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.other-item:hover {
    background: #fff;
    border-color: #19A553;
    transform: translateX(4px);
}

.other-name {
    font-size: 14px;
    color: #3a4a5a;
    font-weight: 500;
}

.other-rating {
    font-size: 13px;
    color: #ffb400;
    font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .detalle-main-content {
        grid-template-columns: 1fr;
    }

    .detalle-right {
        order: -1;
    }

    .detalle-cta-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .detalle-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .detalle-profile {
        width: 140px;
        height: 140px;
    }

    .detalle-profile-info h1 {
        font-size: 26px;
    }

    .detalle-stats {
        flex-direction: column;
        gap: 16px;
    }

    .detalle-stat-item {
        border-left: none;
        padding: 8px 0;
    }

    .detalle-badges {
        justify-content: center;
    }

    .detalle-location,
    .detalle-address {
        justify-content: center;
    }
}

/* ---- TESTIMONIO FEATURED ---- */
.detalle-testimonio-featured {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    border-left: 4px solid #19A553;
}

.testimonio-icon {
    color: #19A553;
    font-size: 20px;
    margin-bottom: 12px;
}

.testimonio-text {
    font-size: 16px;
    color: #3a4a5a;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonio-autor {
    font-size: 13px;
    color: #6a7a8a;
    font-weight: 500;
}

/* ---- GALERÍA ---- */
.galeria-subtitle {
    font-size: 14px;
    color: #7a8a9a;
    margin-top: -8px;
    margin-bottom: 16px;
}

.detalle-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.galeria-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    color: #fff;
    font-size: 24px;
}

/* ---- GALERÍA MODAL ---- */
.galeria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.galeria-modal.active {
    display: flex;
}

.galeria-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.galeria-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.galeria-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.galeria-prev {
    left: 20px;
}

.galeria-next {
    right: 20px;
}

.galeria-content {
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.galeria-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.galeria-content p {
    color: #fff;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .detalle-galeria {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .galeria-nav {
        width: 40px;
        height: 40px;
    }
    
    .galeria-content p {
        font-size: 14px;
    }
}
