/* ============================================
   VIEW_BUSINESS.CSS - VERSIÓN OPTIMIZADA Y LIMPIA
   ============================================ */

/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #00858c;
    --primary-dark: #006d72;
    --primary-light: #00b0b9;
    --zencita-gradient: linear-gradient(135deg, #00858c, #006d72);
    --vh: 1vh;
    --border-radius: 0.625rem;
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --success-dark: #218838;
}

/* ===== LAYOUT Y CONTENEDORES ===== */
.content-wrapper {
    position: relative;
}

.container-xxl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ===== COMPONENTE: CARRUSEL ===== */
.business-carousel {
    border-radius: var(--border-radius);
    position: relative;
    aspect-ratio: 32/9;
    overflow: hidden;
    max-height: none;
}

.business-carousel .carousel-inner,
.business-carousel .carousel-item {
    border-radius: var(--border-radius);
    height: 100%;
    position: relative;
}

.business-carousel .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.business-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
    bottom: 1rem;
}

/* ===== COMPONENTE: SERVICIOS ===== */
.service-card,
.featured-services-section {
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 133, 140, 0.1);
    border: 1px solid rgba(0, 133, 140, 0.15); */
    margin-bottom: 1.5rem;
}

.service-card:hover,
.featured-services-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 133, 140, 0.2);
}

.service-card .card-header,
.featured-services-section .card-header {
    background: linear-gradient(135deg, #00858c 0%, #00a6b5 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.service-card .card-header h5,
.featured-services-section .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
}

.service-item,
.featured-service-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-out;
}

.service-item:last-child,
.featured-service-item:last-child {
    border-bottom: none;
}

.service-item:hover,
.featured-service-item:hover {
    background-color: rgba(0, 133, 140, 0.02);
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

/* Nombre del servicio */
.service-name,
.featured-service-name,
.service-name-mobile {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

/* Descripción del servicio */
.service-description-container,
.featured-service-description {
    margin-bottom: 0.75rem;
}

.service-description-preview,
.featured-service-description,
.service-description-mobile {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.service-description-preview.short {
    max-height: 2.8em;
    overflow: hidden;
}

.service-description-preview.expanded {
    max-height: none;
}

/* Detalles del servicio (precio, duración) */
.service-details,
.featured-service-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #495057;
    margin-top: 0.5rem;
}

.service-price,
.featured-service-price,
.price-duration-mobile {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.2;
}

.service-duration,
.featured-service-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.service-duration i,
.featured-service-duration i {
    color: var(--primary-color);
}

/* Contenedor precio-reserva */
.price-reserve-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 180px;
    justify-content: flex-end;
}

.service-price-container,
.featured-service-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* margin-right: 1rem; */
    min-width: 100px;
}

/* ===== BOTONES DE SERVICIO ===== */
.service-reserve-btn,
.featured-reserve-btn,
.reserve-btn-mobile,
.add-to-cart-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 120px;
    background: linear-gradient(135deg, #00858c 0%, #00a6b5 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer !important;
}

.service-reserve-btn:hover,
.featured-reserve-btn:hover,
.reserve-btn-mobile:hover,
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 133, 140, 0.3);
    text-decoration: none;
}

.service-reserve-btn:disabled,
.featured-reserve-btn:disabled,
.reserve-btn-mobile:disabled,
.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
}

.service-reserve-btn.loading,
.featured-reserve-btn.loading,
.reserve-btn-mobile.loading,
.add-to-cart-btn.loading {
    position: relative;
    color: transparent;
}

.service-reserve-btn.loading::after,
.featured-reserve-btn.loading::after,
.reserve-btn-mobile.loading::after,
.add-to-cart-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Botón "Leer más" */
.read-more-btn,
.read-more-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.read-more-btn:hover,
.read-more-btn-mobile:hover {
    color: #005f64;
    text-decoration: underline;
}

.read-more-btn i,
.read-more-btn-mobile i {
    font-size: 0.7rem;
}

/* ===== DISEÑO RESPONSIVE DE SERVICIOS ===== */
.desktop-service-view,
.mobile-service-view {
    width: 100%;
}

/* Diseño móvil - Grid system */
.mobile-service-view .service-grid {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    width: 100%;
}

.mobile-service-view .grid-row {
    display: contents;
}

.mobile-service-view .grid-col {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.mobile-service-view .col-left {
    grid-column: 1;
    justify-content: flex-start;
    padding-right: 0.5rem;
    overflow: hidden;
}

.mobile-service-view .col-right {
    grid-column: 2;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
}

/* Estilos específicos para móvil */
.reserve-btn-mobile,
.add-to-cart-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    min-width: 80px;
    min-height: 26px;
}

.reserve-btn-mobile i,
.add-to-cart-btn i {
    font-size: 0.75rem;
}

.service-modality-mobile {
    font-size: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.service-modality-mobile i {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

/* ===== TÍTULOS DE CATEGORÍA ===== */
.category-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.category-title:first-child {
    margin-top: 0;
}

.category-title h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

/* ===== COMPONENTE: TARJETAS DE CONTACTO ===== */
.contact-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* Configuraciones de grid */
.contact-grid-two {
    grid-template-columns: repeat(2, 1fr);
}

.contact-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.contact-grid-single {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.contact-grid-item,
.contact-row-item {
    margin: 0;
    width: 100%;
    min-width: 0;
}

/* Tarjetas de contacto individuales */
.contact-item-inner {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.contact-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-item-inner:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 133, 140, 0.15);
    text-decoration: none;
    color: inherit;
}

.contact-item-inner:hover::before {
    transform: scaleX(1);
}

.contact-item-inner.phone-item {
    cursor: default;
    background-color: #f8fdff;
    border-color: #d1e7ff;
}

.contact-item-inner i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contact-item-inner:hover i {
    transform: scale(1.1);
}

.contact-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-label {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ===== LAYOUT EN FILA PARA CONTACTOS ===== */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.contact-row-four,
.contact-row-three,
.contact-row-two {
    justify-content: space-between;
}

.contact-row-single {
    justify-content: flex-start;
}

.contact-row-item {
    flex: 1;
    min-width: 120px;
}

.contact-row-single .contact-row-item {
    max-width: 300px;
}

.contact-row .contact-item-inner {
    height: 100%;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
}

.contact-row .contact-item-inner i {
    margin: 0 0 0.5rem;
    display: block;
    font-size: 1.5rem;
}

.contact-row .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-row .contact-label,
.contact-row .contact-value {
    text-align: center;
}

.contact-row .contact-label {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.contact-row .contact-value {
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
}

/* ===== COMPONENTE: HORARIOS ===== */
.hours-container {
    transition: var(--transition);
}

.hours-toggle {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
}

.hours-toggle:hover {
    color: var(--primary-dark);
}

.hours-toggle i {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.hours-toggle.collapsed i {
    transform: rotate(180deg);
}

.hours-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.hours-list li .day {
    font-weight: 500;
}

.hours-list li .time {
    color: #697a8d;
}

.today-hours {
    background-color: rgba(105, 108, 255, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.today-hours .day {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== COMPONENTE: EMPLEADOS ===== */
.employee-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== COMPONENTE: ETIQUETAS DE SERVICIO ===== */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    font-size: 0.7rem;
    position: relative;
    cursor: help;
}

.service-tag {
    background: #f8f9fa;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    line-height: 1.2;
}

.service-tag sup.years {
    color: #6c757d;
    font-size: 0.6rem;
    margin-left: 1px;
}

.service-tag sup.level {
    background: #0ba3ad;
    color: white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    margin-left: 2px;
    line-height: 1;
}

.service-tag-more {
    background: #F5F5F9;
    color: #6c757d;
    padding: 1px 8px;
    border-radius: 8px;
    border: 1px dashed #adb5bd;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.service-tag-more:hover {
    background: #0ba3ad;
    color: white;
    border-color: #0ba3ad;
}

/* ===== COMPONENTE: TOOLTIPS ===== */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-tags-tooltip.show {
    animation: tooltipFadeIn 0.2s ease-out;
}

.service-tags-tooltip .tooltip-inner {
    background-color: #F5F5F9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.tooltip-header {
    background-color: #F5F5F9;
    border-bottom: 2px solid var(--primary-color);
    padding: 8px 10px;
    margin: -5px -10px 10px -10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 4px rgba(0, 133, 140, 0.1);
}

.tooltip-content {
    background-color: #F5F5F9;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.75rem;
    padding: 5px 0;
}

.tooltip-content::-webkit-scrollbar {
    width: 6px;
}

.tooltip-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.tooltip-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.tooltip-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.tooltip-item {
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.tooltip-item:hover {
    background-color: #f0f9ff;
    border-left: 3px solid var(--primary-color);
    transform: translateX(2px);
}

.tooltip-service {
    font-weight: 500;
    flex: 1;
    color: #333;
    font-size: 0.7rem;
}

.tooltip-service::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 6px;
    font-weight: bold;
}

.tooltip-years {
    color: #666;
    font-size: 0.65rem;
    background: #f8f9fa;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.tooltip-level {
    font-size: 0.55rem;
    padding: 2px 6px;
    background: var(--zencita-gradient);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 133, 140, 0.3);
}

/* ===== COMPONENTE: CARRITO FLOTANTE - CORREGIDO ===== */
#floatingCart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 9999;
    border: 1px solid #e0e0e0;
    max-width: 400px;
    width: 100%;

    /* ESTADO INICIAL - OCULTO */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;

    /* IMPORTANTE: Mantener display block siempre */
    display: block !important;
}

/* ESTADO VISIBLE */
#floatingCart.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Contenido del carrito flotante */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Badge de contador */
.cart-count-badge {
    background: #00858c;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Detalles del carrito */
.cart-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cart-services-count {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-total {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00858c;
    margin-top: 2px;
}

/* Botones de acción */
.cart-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cart-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cart-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.cart-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.cart-actions .btn-primary {
    background: #00858c;
    border-color: #006d72;
}

.cart-actions .btn-primary:hover {
    background: #006d72;
    border-color: #005055;
}

/* ===== COMPONENTE: MODAL DE CARRITO - COMPACTO Y EN PRIMER PLANO ===== */
#cartModal {
    z-index: 10001 !important;
    /* Por encima del carrito flotante (z-index: 9999) */
}

#cartModal .modal-dialog.modal-lg {
    max-width: 800px;
}

#cartModal .modal-content {
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

#cartModal .modal-header {
    /* background: #00858c; */
    color: white;
    padding: 1rem 1.5rem;
    /* border-bottom: 1px solid #006d72; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

#cartModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

/* SOLUCIÓN DEFINITIVA: Reemplazar completamente el botón de Bootstrap */
#cartModal .modal-header .btn-close {
    /* Reset total de Bootstrap */
    all: unset;

    /* Nuestro propio estilo */
    color: white !important;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 1;
    cursor: pointer;

    /* Posicionamiento */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

    /* Sin efectos */
    transition: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

#cartModal .modal-header .btn-close::before {
    content: "×";
    font-size: 2rem;
    line-height: 0.8;
}

/* Mantener visible siempre */
#cartModal .modal-header .btn-close:hover,
#cartModal .modal-header .btn-close:focus {
    opacity: 0.8;
    color: white !important;
    background: none !important;
    outline: none !important;
}

#cartModal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Items del carrito - DISEÑO COMPACTO */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-height: 50px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.cart-item-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-details {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
    align-items: center;
}

.cart-item-price {
    color: #00858c;
    font-weight: 600;
}

.cart-item-duration {
    color: #6c757d;
    font-size: 0.75rem;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.remove-item-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Carrito vacío */
.empty-cart {
    padding: 2rem 1rem;
    text-align: center;
}

.empty-cart i {
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #6c757d;
    margin: 0;
}

/* Totales - COMPACTO */
.cart-totals {
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

#cartModalTotalPrice {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00858c;
    margin: 0;
}

#cartModalTotalDuration {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Footer del modal */
#cartModal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

#cartModal .modal-footer .btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ===== COMPONENTE: MODALES ===== */
/* Modal de servicio personalizado */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002 !important;
    /* Por encima de todo */
    animation: fadeIn 0.2s ease;
}

.service-modal-overlay.show {
    display: flex;
}

.service-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.service-modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.service-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-modal-close:hover {
    color: #212529;
    transform: scale(1.1);
}

.service-modal-body {
    padding: 1rem 1.5rem;
}

.service-modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Modal de servicios hijos */
.child-service-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.child-service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 133, 140, 0.1);
}

.child-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.child-service-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.child-service-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.child-service-duration {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.child-service-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.child-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Servicio padre destacado */
.parent-service-item {
    border: 2px solid var(--primary-color);
    background-color: #f8f9fa;
    position: relative;
}

.parent-service-item:before {
    content: 'Servicio principal';
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ===== COMPONENTE: BADGES ESPECIALES ===== */
.featured-badge {
    background: rgba(153, 229, 228, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(153, 229, 228, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.featured-badge:hover {
    background: rgba(153, 229, 228, 0.15);
    border-color: rgba(153, 229, 228, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(153, 229, 228, 0.15);
}

.featured-badge.minimal {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(153, 229, 228, 0.4);
    font-weight: 400;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.featured-badge.minimal:hover {
    background: rgba(153, 229, 228, 0.05);
}

/* Badge para servicios con hijos */
.has-children-badge {
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.service-modality-badge {
    background-color: #e8f4f5;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== COMPONENTE: RESEÑAS ===== */
#reviews-content .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#reviews-content .review-client-info {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

#reviews-content .review-client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    margin-bottom: 0.25rem;
}

#reviews-content .review-service {
    font-size: 0.8rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#reviews-content .star-rating {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

#reviews-content .review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

#reviews-content .review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ===== COMPONENTE: QR ===== */
.qr-compact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.qr-compact-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* .qr-image-small {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
} */

.qr-info {
    flex-grow: 1;
}

.qr-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.qr-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heart-animation {
    animation: heartBeat 0.6s ease;
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

/* ===== ESTILOS PARA FAVORITOS ===== */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.favorite-btn-wrapper {
    position: relative;
    display: inline-block;
}

#favoriteBtn {
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(0, 133, 140, 0.1);
}

#favoriteBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 133, 140, 0.2);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 133, 140, 0.3);
}

#favoriteBtn:active {
    transform: translateY(0);
}

.bxs-heart.text-danger {
    filter: drop-shadow(0 2px 4px #29b3baff);
}

.particle,
.confetti-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.particle {
    background-color: #ff4757;
}

.confetti-particle {
    width: 10px;
    height: 10px;
    z-index: 1000;
}

/* ===== ESTADOS DE BOTONES SINCRONIZADOS ===== */
/* Botón en estado "en carrito" */
.service-reserve-btn.in-cart,
.featured-reserve-btn.in-cart,
.reserve-btn-mobile.in-cart,
.add-to-cart-btn.in-cart,
.btn.in-cart {
    background-color: var(--success-color) !important;
    border-color: var(--success-dark) !important;
    color: white !important;
}

.service-reserve-btn.in-cart:hover,
.featured-reserve-btn.in-cart:hover,
.reserve-btn-mobile.in-cart:hover,
.add-to-cart-btn.in-cart:hover,
.btn.in-cart:hover {
    background-color: var(--success-dark) !important;
    border-color: #1e7e34 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Estados específicos para diferentes tipos de botones */
.featured-reserve-btn.in-cart,
.service-reserve-btn.in-cart,
.reserve-btn-mobile.in-cart,
.add-to-cart-btn.in-cart {
    background-color: var(--success-color) !important;
    border-color: var(--success-dark) !important;
}

/* Para evitar conflictos con otros estilos */
.btn-success.in-cart {
    background-color: var(--success-color) !important;
    border-color: var(--success-dark) !important;
}

/* Estados para botones cuando NO están en el carrito */
.service-reserve-btn:not(.in-cart),
.featured-reserve-btn:not(.in-cart),
.reserve-btn-mobile:not(.in-cart),
.add-to-cart-btn:not(.in-cart) {
    background: linear-gradient(135deg, #00858c 0%, #00a6b5 100%) !important;
    border-color: #006d72 !important;
    color: white !important;
}

.service-reserve-btn:not(.in-cart):hover,
.featured-reserve-btn:not(.in-cart):hover,
.reserve-btn-mobile:not(.in-cart):hover,
.add-to-cart-btn:not(.in-cart):hover {
    background: linear-gradient(135deg, #006d72 0%, #00858c 100%) !important;
    border-color: #005055 !important;
}

/* ===== CORRECCIONES PARA IOS ===== */
@supports (-webkit-touch-callout: none) {
    .compact-reserve-btn {
        min-height: 44px;
        padding: 12px 16px !important;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .reserve-btn-mobile,
    .add-to-cart-btn {
        min-height: 32px;
        padding: 0.3rem 0.6rem;
    }

    .grid-col {
        min-height: 26px;
    }
}

.ios-device .service-card .table td {
    padding: 0.5rem;
}

@supports (padding: max(0px)) {
    .ios-device .container-xxl {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Fallback para navegadores que no soportan aspect-ratio */
@supports not (aspect-ratio: 32/9) {
    .business-carousel {
        max-height: none;
        height: 0;
        padding-bottom: 28.125%;
        position: relative;
        overflow: hidden;
    }

    .business-carousel .carousel-inner,
    .business-carousel .carousel-item,
    .business-carousel .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */
@media (min-width: 768px) {
    .desktop-service-view {
        display: block !important;
    }

    .mobile-service-view {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .desktop-service-view {
        display: none !important;
    }

    .mobile-service-view {
        display: block !important;
    }

    .service-item,
    .featured-service-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }

    .service-item:last-child,
    .featured-service-item:last-child {
        border-bottom: none;
    }

    .grid-col {
        min-height: 22px;
    }

    .service-grid {
        gap: 0.4rem;
    }

    /* Carrito flotante responsivo */
    #floatingCart {
        bottom: 80px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(0) !important;
        width: calc(100% - 20px) !important;
        max-width: 400px !important;
    }

    #floatingCart.visible {
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Modal de carrito responsivo */
    #cartModal .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    #cartModal .modal-header,
    #cartModal .modal-body,
    #cartModal .modal-footer {
        padding: 1rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    #cartModal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    #cartModal .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .business-carousel img {
        height: 200px;
    }

    .business-carousel .carousel-caption {
        max-width: 90%;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        bottom: 0.5rem;
    }

    /* Contactos responsivos */
    .contact-grid-two,
    .contact-grid-three,
    .contact-grid-four {
        grid-template-columns: 1fr !important;
    }

    .contact-grid-single {
        max-width: 100%;
    }

    .contact-item-inner {
        padding: 0.6rem 0.8rem;
        min-height: 65px;
    }

    .contact-item-inner i {
        font-size: 1.1rem;
        margin-right: 0.75rem;
        min-width: 25px;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-value {
        font-size: 0.85rem;
    }

    /* Tablas responsivas */
    .service-card .table td {
        padding: 0.75rem 0.5rem;
    }

    /* Filas de contacto responsivas */
    .contact-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-row-item {
        min-width: 100%;
        max-width: 100%;
    }

    .contact-row .contact-item-inner {
        flex-direction: row;
        text-align: left;
        padding: 0.6rem 0.8rem;
        min-height: 65px;
    }

    .contact-row .contact-item-inner i {
        margin: 0 0.75rem 0 0;
        display: inline-block;
        font-size: 1.1rem;
    }

    .contact-row .contact-info {
        align-items: flex-start;
        text-align: left;
    }

    /* Listas de servicios responsivas */
    .services-list,
    .featured-services-list {
        max-height: none;
        overflow: visible;
    }

    .service-item,
    .featured-service-item {
        scroll-margin-top: 1rem;
    }

    .category-title {
        padding: 0.5rem 0.75rem;
        margin: 1rem 0 0.75rem;
    }

    .category-title h6 {
        font-size: 0.9rem;
    }

    .featured-services-section .card-body {
        padding: 1rem;
    }

    /* Botones responsivos */
    .featured-reserve-btn,
    .service-reserve-btn {
        min-width: 100px;
        padding: 0.35rem 0.75rem;
    }

    .price-reserve-container {
        min-width: 150px;
    }

    /* QR responsivo */
    .qr-compact-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* .qr-image-small {
        width: 80px;
        height: 80px;
    } */

    /* Reseñas responsivas */
    #reviews-content .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    #reviews-content .review-client-info {
        margin-right: 0;
        width: 100%;
    }

    #reviews-content .star-rating {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .business-carousel {
        aspect-ratio: 32/9;
    }

    .business-carousel .carousel-caption h5 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .business-carousel .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Grid de contactos responsivo */
    .contact-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid-three .contact-grid-item:last-child {
        grid-column: span 2;
    }

    .contact-item-inner {
        min-height: 60px;
        padding: 0.5rem 0.7rem;
    }

    .today-hours {
        padding: 0.4rem;
    }

    .hours-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    /* Contactos en fila responsivos */
    .contact-row .contact-item-inner {
        padding: 0.5rem 0.7rem;
        min-height: 60px;
    }

    .contact-row .contact-value {
        font-size: 0.8rem;
    }

    /* Servicios responsivos */
    .service-item,
    .featured-service-item {
        padding: 0.6rem 0;
    }

    .service-grid {
        gap: 0.3rem;
    }

    .service-name-mobile {
        font-size: 0.85rem;
    }

    .price-duration-mobile {
        font-size: 0.8rem;
    }

    .service-description-mobile {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }

    .service-modality-mobile {
        font-size: 0.7rem;
    }

    .read-more-btn-mobile {
        font-size: 0.7rem;
    }

    /* Botones móviles */
    .reserve-btn-mobile {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        min-width: 70px;
        min-height: 24px;
    }

    .reserve-btn-mobile i {
        font-size: 0.7rem;
        margin-right: 0.1rem;
    }

    /* Modal de carrito responsivo */
    #cartModal .modal-title {
        font-size: 1.1rem;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-details {
        font-size: 0.75rem;
    }

    /* Badges responsivos */
    .featured-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .d-flex.align-items-center.gap-2.mb-1 {
        flex-wrap: wrap;
        gap: 0.3rem !important;
    }
}

@media (max-width: 375px) {
    .contact-grid-three {
        grid-template-columns: 1fr;
    }

    .contact-grid-three .contact-grid-item:last-child {
        grid-column: 1;
    }

    .employee-avatar {
        width: 45px;
        height: 45px;
    }

    .contact-value {
        font-size: 0.8rem;
    }
}

/* Para iOS, tamaño mínimo de botones táctiles */
@supports (-webkit-touch-callout: none) {

    .service-reserve-btn,
    .featured-reserve-btn,
    .reserve-btn-mobile,
    .add-to-cart-btn {
        min-height: 44px;
    }

    @media (max-width: 767.98px) {

        .reserve-btn-mobile,
        .add-to-cart-btn {
            min-height: 44px;
        }
    }
}

/* Corrección para iOS - carrito flotante */
@supports (-webkit-touch-callout: none) {
    #floatingCart {
        bottom: 90px;
        /* Más arriba para evitar el menú de iOS */
    }
}

/* Animación de entrada para carrito flotante */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#floatingCart.visible {
    animation: slideInUp 0.3s ease;
}

/* Para títulos muy largos en desktop */
@media (min-width: 577px) {
    #reviews-content .review-client-name {
        max-width: 200px;
    }
}

/* ===== COMPONENTE: NOTIFICACIÓN DE CARRITO ===== */
#cartNotification {
    position: fixed;
    top: 80px;
    /* Por debajo del header */
    right: 20px;
    background: #00858c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 133, 140, 0.3);
    z-index: 9998;
    /* Por debajo del modal pero por encima de contenido */
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border-left: 4px solid #00b0b9;
}

#cartNotification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#cartNotification i {
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

#notificationMessage {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

/* Tipos de notificación */
#cartNotification.success {
    background: #00858c;
    border-left-color: #00858c;
}

#cartNotification.info {
    background: #17a2b8;
    border-left-color: #39c0d3;
}

#cartNotification.warning {
    background: #ffc107;
    color: #212529;
    border-left-color: #ffd657;
}

#cartNotification.error {
    background: #dc3545;
    border-left-color: #e4606d;
}

/* Responsive */
@media (max-width: 768px) {
    #cartNotification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 576px) {
    #cartNotification {
        top: 60px;
        padding: 10px 15px;
    }

    #notificationMessage {
        font-size: 0.9rem;
    }
}



@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

#cartNotification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== MODAL DE IMÁGENES - VERSIÓN LIGERA ===== */
#workImageModal .modal-dialog.modal-xl {
    margin: 0.5rem auto;
    max-width: 95%;
}

#workImageModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#workImageModal .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    padding: 0;
    z-index: 10;
}

#workImageModal .modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#workImageModal .modal-body {
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#modalWorkImage {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    background-color: white;
    padding: 4px;
}

/* FOOTER MÍNIMO Y DISCRETO */
#workImageModal .modal-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Botones compactos */
#prevImageBtn,
#nextImageBtn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: white;
    color: #00858c;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

#prevImageBtn:hover,
#nextImageBtn:hover {
    background: #00858c;
    color: white;
    border-color: #00858c;
    transform: translateY(-1px);
}

/* Contenedor central compacto */
#workImageModal .modal-footer>.text-center {
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
}

#modalImageDescription {
    font-size: 0.8rem;
    color: #495057;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modalImageCounter {
    font-size: 0.75rem;
    background: #00858c;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.1rem;
    display: inline-block;
}

/* ===== RESPONSIVE MÓVIL - VERSIÓN MÁS LIGERA ===== */
@media (max-width: 768px) {
    #workImageModal .modal-dialog.modal-xl {
        margin: 0.5rem auto;
        max-width: 95%;
    }

    #workImageModal .modal-content {
        background: transparent;
    }

    #modalWorkImage {
        max-height: 60vh;
        border-radius: 8px;
    }

    /* FOOTER COMPACTO PARA MÓVIL */
    #workImageModal .modal-footer {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        padding: 0.4rem 0.6rem;
        margin-top: 10px;
        max-width: 95%;
        gap: 0.25rem;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }

    /* Botones más pequeños en móvil */
    #prevImageBtn,
    #nextImageBtn {
        min-width: 70px;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 16px;
    }

    #prevImageBtn i,
    #nextImageBtn i {
        font-size: 0.8rem;
    }

    #modalImageDescription {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    #modalImageCounter {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
    #workImageModal .modal-dialog.modal-xl {
        margin: 0.25rem auto;
        max-width: 98%;
    }

    #modalWorkImage {
        max-height: 55vh;
    }

    #workImageModal .modal-footer {
        padding: 0.35rem 0.5rem;
        border-radius: 12px;
        margin-top: 8px;
    }

    #prevImageBtn,
    #nextImageBtn {
        min-width: 60px;
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }

    #modalImageDescription {
        font-size: 0.7rem;
    }
}

/* Para evitar solapamiento con carrito flotante */
@media (max-width: 768px) {
    #workImageModal.modal.show {
        z-index: 9997 !important;
        /* Por debajo del carrito (9999) pero por encima de contenido */
    }

    /* Cuando el modal está abierto, subir un poco el carrito */
    #workImageModal.modal.show~#floatingCart {
        bottom: 100px !important;
        transition: bottom 0.3s ease;
    }
}

/* Fondo del modal más suave */
#workImageModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Permitir cerrar haciendo clic en el fondo */
#workImageModal.modal {
    pointer-events: auto;
}

#workImageModal .modal-dialog {
    pointer-events: none;
}

#workImageModal .modal-content {
    pointer-events: auto;
}


/* ===== SOCIAL LOGIN STYLES UNIFICADOS ===== */
.social-login-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.social-login-separator {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.social-login-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-gray);
    z-index: 1;
}

.social-login-separator span {
    background: white;
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    background: white;
    color: var(--dark);
    font-size: 0.95rem;
}

.social-login-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.social-login-btn.google-btn:hover {
    border-color: var(--primary);
}

.social-login-btn:active {
    transform: translateY(0);
}

.social-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .social-login-container {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .social-login-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .social-logo {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .social-login-container {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .social-login-separator {
        margin-bottom: 1rem;
    }

    .social-login-separator span {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }

    .social-login-buttons {
        gap: 0.75rem;
    }

    .social-login-btn {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .social-logo {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* ===== BOTÓN COLAPSABLE PARA CATEGORÍAS ===== */
.category-collapse-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 133, 140, 0.1);
}

.category-collapse-btn:hover {
    background-color: rgba(0, 133, 140, 0.2);
    transform: scale(1.05);
}

.category-collapse-btn:active {
    transform: scale(0.95);
}

.category-collapse-btn i {
    transition: transform 0.25s ease;
}

.category-collapse-btn.collapsed i {
    transform: rotate(180deg);
}

/* Animación para el contenido colapsable */
.services-list {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.services-list.collapsing {
    transition: all 0.3s ease;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Estilo para categoría colapsada */
.services-list.collapsed {
    display: none;
}

/* Para móviles, el botón es ligeramente más pequeño */
@media (max-width: 768px) {
    .category-collapse-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}