/* ===== VARIABLES Y RESET ===== */
:root {
    --vh: 1vh;
    --primary-color: #00858c;
    --primary-dark: #006d72;
    --primary-light: #00b0b9;
    --zencita-gradient: linear-gradient(135deg, #00858c, #006d72);
}

/* ===== CAROUSEL ===== */
.business-carousel {
    border-radius: 0.625rem;
    position: relative;
    aspect-ratio: 32/9;
    overflow: hidden;
    max-height: none;
}

.business-carousel .carousel-inner,
.business-carousel .carousel-item {
    border-radius: 0.625rem;
    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;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.service-card .badge {
    font-size: 0.7em;
}

.service-card .table-borderless tr {
    border-bottom: 1px solid #e9ecef;
}

.service-card .table-borderless tr:last-child {
    border-bottom: none;
}

/* ===== SERVICE TAGS ===== */
.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;
}

/* ===== 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-header::before {
    content: "📋";
    margin-right: 6px;
    font-size: 0.7rem;
}

.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);
}

/* ===== EMPLOYEE ===== */
.employee-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* ===== BUSINESS HOURS ===== */
.hours-container {
    transition: all 0.3s ease;
}

.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-color);
}

.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);
}

/* ===== ANIMACIONES ===== */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.heart-animation {
    animation: heartBeat 0.6s ease;
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

.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;
}

/* ===== CONTACTOS ===== */
.contact-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
    width: 100%;
}

.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;
}

.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.phone-item:hover {
    box-shadow: 0 4px 12px rgba(0, 133, 140, 0.1);
}

.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%;
}

.contact-item-inner .phone-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-inner .phone-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes pulsePhone {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 133, 140, 0.3);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 133, 140, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 133, 140, 0);
    }
}

.contact-item-inner.phone-item:hover {
    animation: pulsePhone 1.5s infinite;
}

/* ===== LAYOUT EN FILA PARA CONTACTOS ===== */
.contact-row-layout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.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;
}

/* ===== SERVICIOS DESKTOP/MÓVIL ===== */
.desktop-service-view,
.mobile-service-view {
    width: 100%;
    display: none;
}

.featured-service-name,
.service-name {
    font-weight: 600;
    color: #00858c;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.service-description-container {
    margin-bottom: 0.75rem;
}

.service-description-preview {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.featured-service-details,
.service-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #495057;
    margin-top: 0.5rem;
}

.price-reserve-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.featured-service-price-container,
.service-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1rem;
    min-width: 100px;
}

.featured-service-price,
.service-price {
    font-weight: 600;
    color: #00858c;
    font-size: 1rem;
    line-height: 1.2;
}

.featured-service-duration,
.service-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.featured-service-duration i,
.service-duration i {
    color: #00858c;
}

.featured-reserve-btn,
.service-reserve-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: all 0.3s ease;
}

.featured-reserve-btn:hover,
.service-reserve-btn:hover {
    background: linear-gradient(135deg, #006d72 0%, #00858c 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 133, 140, 0.3);
    text-decoration: none;
}

/* ===== DISEÑO MÓVIL ===== */
.service-grid {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    width: 100%;
}

.grid-row {
    display: contents;
}

.grid-col {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.col-left {
    grid-column: 1;
    justify-content: flex-start;
    padding-right: 0.5rem;
    overflow: hidden;
}

.col-right {
    grid-column: 2;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
}

.row-1 .col-left,
.row-1 .col-right {
    align-items: flex-start;
}

.row-2 .col-left,
.row-2 .col-right {
    align-items: center;
}

.row-3 .col-left {
    align-items: flex-end;
}

.row-3 .col-right {
    align-items: flex-end;
}

.service-name-mobile {
    font-weight: 600;
    color: #00858c;
    font-size: 0.9rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.price-duration-mobile {
    font-weight: 600;
    color: #00858c;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
}

.service-description-mobile {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

.service-modality-mobile {
    font-size: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.service-modality-mobile i {
    color: #00858c;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.read-more-btn-mobile {
    background: none;
    border: none;
    color: #00858c;
    font-size: 0.75rem;
    padding: 0.1rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
}

.read-more-btn-mobile:hover {
    color: #006d72;
    text-decoration: underline;
}

.read-more-btn-mobile i {
    font-size: 0.7rem;
}

.reserve-btn-mobile {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    min-width: 80px;
    background: linear-gradient(135deg, #00858c 0%, #00a6b5 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 26px;
}

.reserve-btn-mobile:hover {
    background: linear-gradient(135deg, #006d72 0%, #00858c 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 133, 140, 0.3);
    text-decoration: none;
}

.reserve-btn-mobile i {
    font-size: 0.75rem;
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */
@media (min-width: 768px) {
    .desktop-service-view {
        display: block !important;
    }

    .mobile-service-view {
        display: none !important;
    }

    .featured-service-item,
    .service-item {
        padding: 1rem 0;
    }

    .featured-service-item:hover,
    .service-item:hover {
        background-color: rgba(0, 133, 140, 0.02);
        border-radius: 8px;
        padding: 1rem;
        margin: -1px -1rem;
    }

    .desktop-service-view .d-flex {
        display: flex !important;
    }
}

@media (max-width: 767.98px) {
    .desktop-service-view {
        display: none !important;
    }

    .mobile-service-view {
        display: block !important;
    }

    .featured-service-item,
    .service-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }

    .featured-service-item:last-child,
    .service-item:last-child {
        border-bottom: none;
    }

    .grid-col {
        min-height: 22px;
    }

    .service-grid {
        gap: 0.4rem;
    }
}

@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;
    }

    .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;
    }

    .service-card .table td {
        padding: 0.75rem 0.5rem;
    }

    .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;
    }

    .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;
    }

    .featured-service-details,
    .service-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .featured-reserve-btn,
    .service-reserve-btn {
        min-width: 100px;
        padding: 0.35rem 0.75rem;
    }

    .price-reserve-container {
        min-width: 150px;
    }

    .qr-compact-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .qr-image-small {
        width: 80px;
        height: 80px;
    }
}

@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;
    }

    .contact-grid-four,
    .contact-grid-two {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .contact-row .contact-item-inner {
        padding: 0.5rem 0.7rem;
        min-height: 60px;
    }

    .contact-row .contact-value {
        font-size: 0.8rem;
    }

    .featured-service-item,
    .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;
    }

    .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;
    }

    .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;
    }
}

/* ===== 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 {
        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%;
    }
}

/* ===== BOTONES ===== */
.btn-primary:hover {
    color: #000000;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-mobile {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 16px;
}

.btn-primary.btn-sm:hover:not(:disabled) {
    background-color: #0a99a0ff !important;
    border-color: #0a99a0ff !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px #29b3baff;
    transition: all 0.2s ease;
}

/* ===== 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: all 0.3s ease;
    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);
}

.featured-badge.text-only {
    background: transparent;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border: none;
    position: relative;
}

.featured-badge.text-only:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #99e5e4, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.featured-badge.text-only:hover:after {
    width: 100%;
}

.featured-badge.with-dot {
    background: transparent;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem 0.15rem 0.8rem;
    border: none;
    position: relative;
}

.featured-badge.with-dot:before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #99e5e4;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.featured-badge.with-dot:hover:before {
    opacity: 1;
    box-shadow: 0 0 8px rgba(153, 229, 228, 0.5);
}

.d-flex.align-items-center.mt-1 {
    gap: 0.4rem;
}

/* ===== ESTILOS PARA SECCIÓN DE SERVICIOS DESTACADOS ===== */
.featured-services-section {
    margin-bottom: 1.5rem;
    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);
}

.featured-services-section .card-header {
    background: linear-gradient(135deg, #00858c 0%, #00a6b5 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.featured-services-section .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
}

.featured-services-section .card-header h5 i {
    font-size: 1.2rem;
}

.featured-service-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.featured-service-item:last-child {
    border-bottom: none;
}

.featured-service-item:hover {
    background-color: rgba(0, 133, 140, 0.02);
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

.featured-service-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    max-width: 500px;
}

.featured-service-badge {
    background: rgba(153, 229, 228, 0.2);
    color: #00858c;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(153, 229, 228, 0.4);
}

/* ===== NUEVOS ESTILOS PARA DESCRIPCIÓN DE SERVICIOS ===== */
.service-description-container {
    position: relative;
    max-width: 100%;
}

.service-description-preview {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    overflow: hidden;
    position: relative;
    max-width: 500px;
}

.service-description-preview.short {
    max-height: 2.8em;
}

.service-description-preview.expanded {
    max-height: none;
}

.service-description-preview p {
    margin-bottom: 0.25rem;
}

.service-description-preview p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: #00858c;
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    color: #005f64;
    text-decoration: underline;
}

.read-more-btn i {
    font-size: 0.7rem;
}

.service-description-full {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

/* ===== ESTILOS PARA EL MODAL DE SERVICIO ===== */
.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-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.service-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00858c;
}

.service-modal-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.service-modal-duration i {
    color: #00858c;
}

.service-modal-description {
    margin-bottom: 1.5rem;
}

.service-modal-description-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.service-modal-description-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.service-modal-description-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.service-modal-description-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.service-modal-description-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.service-modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.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: 1050;
    animation: fadeIn 0.2s ease;
}

.service-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTILOS PARA NUESTROS SERVICIOS ===== */
.service-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: rgba(0, 133, 140, 0.02);
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

.service-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.service-badge {
    background: rgba(153, 229, 228, 0.2);
    color: #00858c;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(153, 229, 228, 0.4);
}

.category-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1.5rem 0 1rem;
    border-left: 4px solid #00858c;
}

.category-title h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

.category-title:first-child {
    margin-top: 0;
}

.services-list .service-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.services-list .service-item:last-child {
    margin-bottom: 1rem;
}

.price-reserve-container {
    min-width: 180px;
    justify-content: flex-end;
}

/* ===== ANIMACIONES SUAVES ===== */
.featured-service-item,
.service-item {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEJORAS ESPECÍFICAS PARA BOTONES ===== */
.featured-reserve-btn:disabled,
.service-reserve-btn:disabled,
.reserve-btn-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
}

.featured-reserve-btn.loading,
.service-reserve-btn.loading,
.reserve-btn-mobile.loading {
    position: relative;
    color: transparent;
}

.featured-reserve-btn.loading::after,
.service-reserve-btn.loading::after,
.reserve-btn-mobile.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;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== PARTÍCULAS Y 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: all 0.3s ease;
    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);
}

/* ===== ESTILOS PARA EL QR COMPACTO ===== */
.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;
}

/* ===== SOCIAL LOGO ===== */
.social-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Estilos para el modal de servicios hijos */
.child-service-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.child-service-item:hover {
    border-color: #00858c;
    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 {
    margin-right: 0;
    font-weight: 700;
    color: #00858c;
    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.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.child-service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-modality-badge {
    background-color: #e8f4f5;
    color: #00858c;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Badge para servicios con hijos */
.has-children-badge {
    background-color: #f0f7ff;
    color: #00858c;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Estilo especial para el servicio padre */
.parent-service-item {
    border: 2px solid #00858c;
    background-color: #f8f9fa;
    position: relative;
}

.parent-service-item:before {
    content: 'Servicio principal';
    position: absolute;
    top: -10px;
    left: 10px;
    background: #00858c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .child-service-header {
        /* flex-direction: column; */
        gap: 0.5rem;
    }

    .child-service-price {
        margin-right: 0;
        align-self: flex-end;
        margin-bottom: 0.5rem;
    }

    .child-service-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .child-service-footer .btn {
        width: 100%;
    }
}
/* ===== ESTILOS PARA LIMITAR TÍTULOS DE 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; /* Esto permite que el texto se trunque */
    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;
}

/* Para móviles */
@media (max-width: 576px) {
    #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;
    }
}

/* Para títulos muy largos en desktop */
@media (min-width: 577px) {
    #reviews-content .review-client-name {
        max-width: 200px; /* Ajusta según necesites */
    }
}

/* Estilos para el contenedor de reseñas */
#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;
}