:root {
    --theme-primary: #1f2937;
    --theme-accent: #8b5cf6;
    --theme-accent-soft: rgba(139, 92, 246, 0.08);
    --theme-accent-strong: #7c3aed;
    --theme-muted: #6b7280;
    --theme-text-light: #9ca3af;
    --theme-bg: #f8fafc;
    --theme-card: #ffffff;
    --theme-border: #e5e7eb;
    --theme-header-gradient-start: rgba(139, 92, 246, 0.05);
    --theme-header-gradient-end: rgba(236, 72, 153, 0.03);
    --theme-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --theme-heading-font: "Poppins", "Inter", sans-serif;
}

body {
    font-family: var(--theme-font);
    color: var(--theme-primary);
    background-color: var(--theme-bg);
    letter-spacing: -0.01em;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, var(--theme-header-gradient-start), var(--theme-header-gradient-end));
    border-bottom: 1px solid var(--theme-border);
    padding: 0.75rem 0 2.5rem;
}

.site-header h1 {
    font-family: var(--theme-heading-font);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.site-header .text-muted {
    color: var(--theme-muted) !important;
    font-size: 0.95rem;
    font-weight: 400;
}

.site-header i {
    color: var(--theme-accent);
    opacity: 0.8;
}

/* Botón de acceso clientes en header */
.site-header .btn-outline-light {
    color: var(--theme-accent);
    background-color: white;
    border-color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.site-header .btn-outline-light:hover {
    color: white;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
    border-color: var(--theme-accent);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.site-header .btn-outline-light i {
    color: inherit;
    opacity: 1;
}

.hero-reviews {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: inline-flex;
}

.hero-reviews .text-warning i {
    font-size: 0.875rem;
}

.hero-reviews .fw-semibold {
    font-weight: 600;
    font-size: 1rem;
    color: var(--theme-primary);
}

.hero-reviews .text-muted {
    font-size: 0.875rem;
}

.hero-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0 1.5rem;
}

.language-selector {
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
}

.language-selector .form-select {
    min-width: 120px;
    border-color: var(--theme-border);
    border-radius: 8px;
}

/* ===== HERO DE PORTADA ===== */
.site-header.w10-hero {
    min-height: 640px;
    padding: 0 !important;
    border: 0;
    background:
        linear-gradient(90deg, rgba(12, 16, 23, .78), rgba(12, 16, 23, .3)),
        var(--w10-hero-image) center / cover no-repeat !important;
}

.w10-hero-container {
    position: relative;
    display: flex;
    min-height: 640px;
    flex-direction: column;
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
}

.site-header.w10-hero .w10-hero-container {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.site-header.w10-hero .w10-hero-container::before {
    content: none;
}

.w10-hero .hero-top-actions {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.w10-hero .hero-top-actions .btn-outline-light {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, .75) !important;
    box-shadow: none !important;
}

.w10-hero-book {
    padding: .55rem 1.15rem;
    color: #fff;
    background: var(--theme-accent, #8b5cf6);
    border: 1px solid var(--theme-accent, #8b5cf6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    font-weight: 700;
}

.w10-hero-book:hover {
    color: #fff;
    background: var(--theme-accent-strong, #7c3aed);
    border-color: var(--theme-accent-strong, #7c3aed);
}

.w10-language-selector {
    position: relative;
}

.w10-language-toggle {
    min-width: 42px;
    border: 1px solid rgba(255, 255, 255, .55);
    padding: .5rem .55rem;
    color: #fff;
    background: rgba(0, 0, 0, .2);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.w10-language-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + .4rem);
    right: 0;
    display: none;
    min-width: 145px;
    padding: .35rem;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.w10-language-selector.is-open .w10-language-menu {
    display: block;
}

.w10-language-menu .form-select {
    border-color: rgba(0, 0, 0, .2);
    color: #242018;
    background-color: #fff;
}

.w10-hero-content {
    max-width: 720px;
    margin-top: auto;
    color: #fff;
}

.w10-hero-content h1,
.w10-hero-content h2 {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.w10-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.w10-hero-details {
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
}

.w10-hero-details i {
    color: inherit !important;
}

.w10-hero .hero-reviews {
    color: #fff;
    background: rgba(0, 0, 0, .32);
    border-color: rgba(255, 255, 255, .3);
}

.w10-hero .hero-reviews .fw-semibold,
.w10-hero .hero-reviews .text-muted {
    color: #fff !important;
}

.w10-hero .hero-row {
    display: none;
}

/* ===== CARDS ===== */
.card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.75rem;
}

h2.h4, h2.h5 {
    font-family: var(--theme-heading-font);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

h3.h6 {
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--theme-muted);
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

h3.h6:first-child {
    margin-top: 0;
}

/* ===== CAROUSEL ===== */
.hero-photo {
    width: 100%;
}

.carousel-inner img {
    border-radius: 16px;
    object-fit: cover;
}

.carousel-thumbs .carousel-inner img {
    height: 400px;
}

gallery-thumb {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
}

/* ===== SERVICIOS ===== */
.service-search {
    max-width: 280px;
}

.service-search .input-group-text {
    border-radius: 12px 0 0 12px;
    border-color: var(--theme-border);
    background-color: #fafafa;
}

.service-search .form-control {
    border-radius: 0 12px 12px 0;
    border-color: var(--theme-border);
}

.service-search .form-control:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px var(--theme-accent-soft);
}

.service-category {
    margin-bottom: 1.5rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background-color: #fff;
}

.service-category summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.service-category summary::-webkit-details-marker {
    display: none;
}

.service-category summary h3 {
    margin: 0;
}

.service-category summary::after {
    content: "+";
    color: var(--theme-accent);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.service-category[open] summary {
    border-bottom: 1px solid var(--theme-border);
}

.service-category[open] summary::after {
    content: "−";
}

.service-category .list-group {
    margin: 0 !important;
    padding: 0.75rem;
    background-color: transparent;
}

.service-item {
    padding: 1.25rem;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.service-item:hover {
    background-color: #fafbfc;
    border-color: var(--theme-accent) !important;
    /* transform: translateX(4px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--theme-border);
}

.service-info {
    min-width: 0;
    flex: 1;
}

.service-info strong {
    font-weight: 600;
    font-size: 1rem;
    color: var(--theme-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.service-info .text-muted {
    font-size: 0.875rem;
    color: var(--theme-text-light);
    line-height: 1.5;
    font-weight: 400;
}

.service-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.service-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
}

.service-actions .fw-semibold {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--theme-accent);
}

.service-promo {
    max-width: 220px;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background-color: var(--theme-accent-soft);
    color: var(--theme-primary);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.service-prices {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.5rem;
}

.service-original-price {
    color: var(--theme-text-light);
    font-size: 0.875rem;
    text-decoration: line-through;
}

.service-discounted-price {
    color: var(--theme-accent);
    font-size: 1.05rem;
    font-weight: 700;
}

/* ===== RESEÑAS ===== */
.review {
    padding: 1rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.review:last-child {
    border-bottom: none;
}

.review .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.review .fw-semibold {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
}

.review .text-muted {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--theme-muted);
    font-weight: 400;
}

.review .text-warning i {
    font-size: 0.875rem;
}

.review-summary {
    min-width: 280px;
}

.review-summary .display-6 {
    color: var(--theme-primary);
}

.review-summary .text-warning i {
    font-size: 1rem;
}

.review-bars {
    min-width: 180px;
}

.review-bars .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
}

.review-bars .progress-bar {
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-strong));
    border-radius: 4px;
}

.review-bars .small {
    min-width: 12px;
    text-align: center;
}

/* Paginación de reseñas */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: 1px solid var(--theme-border);
    color: var(--theme-primary);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: var(--theme-accent-soft);
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
    border-color: var(--theme-accent);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--theme-muted);
    cursor: default;
}

.pagination .page-link i {
    font-size: 0.75rem;
}

/* ===== HORARIO ===== */
.list-unstyled li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.list-unstyled li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-unstyled li span:first-child {
    font-weight: 500;
    color: var(--theme-primary);
}

.list-unstyled li span:last-child {
    color: var(--theme-muted);
    font-weight: 400;
}

/* Estilo especial para la tarjeta de horario principal */
.card.horario-principal {
    border-left: 3px solid var(--theme-accent);
    background: linear-gradient(to right, var(--theme-accent-soft), transparent);
}

/* ===== UBICACI�N ===== */
.map-wrapper iframe {
    display: block;
    border-radius: 12px;
}

.map-wrapper + div p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-wrapper + div i {
    color: var(--theme-accent);
}

.map-wrapper + div strong {
    font-weight: 500;
    color: var(--theme-primary);
}

/* ===== PROMOCIONES ===== */
.w10-promotions-card {
    overflow: hidden;
    border: 1px solid var(--theme-border) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, var(--theme-accent-soft), #fff 52%);
}

.w10-promotions-heading {
    margin: -1.25rem -1.25rem 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--theme-primary);
    color: #fff;
}

.w10-promotions-heading h2 {
    position: static;
    color: #fff !important;
}

.w10-promotions-heading h2::after {
    display: none !important;
}

.w10-promotions-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.w10-promotions-list {
    display: grid;
    gap: 1rem;
}

.w10-promotion {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-border);
}

.w10-promotion:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.w10-promotion-header,
.w10-promotion-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.w10-promotion h3 {
    margin: 0;
    color: var(--theme-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.w10-promotion-discount {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: var(--theme-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.w10-promotion-description {
    margin: 0.75rem 0;
    color: var(--theme-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-line;
}

.w10-promotion-validity {
    max-width: 180px;
    color: var(--theme-text-light);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.w10-promotion-footer .btn {
    flex: 0 0 auto;
}

/* ===== SOCIAL LINKS ===== */
.social-links a {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: var(--theme-accent-soft);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--theme-accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.social-links i {
    font-size: 1.15rem;
    color: var(--theme-accent);
}

.social-links .fw-semibold {
    font-weight: 500;
    color: var(--theme-primary);
}

/* ===== FORMULARIO ===== */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.form-label .text-danger {
    color: #dc3545 !important;
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px var(--theme-accent-soft);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: none;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-check-input {
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid var(--theme-border);
}

.form-check-input:checked {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--theme-accent-soft);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-check-label a {
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ===== BOTONES ===== */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.25);
}

.btn-outline-primary {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

#toggleServicesBtn {
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* ===== TOAST ===== */
.toast {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toast-body {
    padding: 1rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #041635;
    height: 60px;
    margin-top: 4rem;
    border-top: 3px solid var(--theme-accent);
}

.site-footer .container {
    height: 100%;
}

.footer-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.footer-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.footer-text2 {
    color: white;
    font-weight: 300;
    font-size: .7rem;
    letter-spacing: -0.01em;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--theme-accent) !important;
}

/* ===== OFFCANVAS RESERVAS ===== */
#reservaOffcanvas {
    z-index: 9999;
}

#reservaOffcanvas .offcanvas-header {
    /* background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong)); */
    /* color: #000; */
    /* border-bottom: 2px solid var(--theme-accent-strong); */
}

#reservaOffcanvas .offcanvas-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#reservaOffcanvas .btn-close {
    /* filter: brightness(0) invert(1); */
    /* opacity: 0.8; */
}

#reservaOffcanvas .btn-close:hover {
    opacity: 1;
}

#reservaOffcanvas .offcanvas-body {
    overflow: hidden;
}

#reservaIframe {
    display: block;
}



#reservaIframe[src]:not([src=""]):not([src="about:blank"]) ~ #reservaOffcanvas .offcanvas-body::before {
    display: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 991px) {
    .site-header {
        padding: 0.75rem 0 2rem;
    }

    .hero-top-actions {
        justify-content: stretch;
        align-items: stretch;
        flex-wrap: wrap;
        padding-bottom: 1.25rem;
    }

    .hero-top-actions .btn,
    .hero-top-actions .language-selector {
        flex: 1 1 180px;
        justify-content: center;
    }

    .w10-hero .hero-top-actions .w10-language-selector {
        flex: 0 0 auto;
    }

    .carousel-thumbs .carousel-inner img {
        height: 280px;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .service-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.75rem;
    }

    .review-summary {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.25rem;
    }

    .service-photo {
        width: 56px;
        height: 56px;
    }

    .carousel-thumbs .carousel-inner img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        height: auto;
        padding: 1rem 0;
    }
    
    .site-footer .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        gap: 1rem;
    }
    
    #reservaOffcanvas {
        max-width: 100% !important;
    }
}
