:root {
    --primary-color: #1e6091;
    --secondary-color: #3ca6a6;
    --accent-color: #f39237;
    --light-color: #f5f5f5;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--dark-color);
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.booking-btn {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.booking-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Logo del navbar */
.navbar-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 5px;
}

/* Seccion de hero */
.hero {
    height: 100vh;
    background-image: url('Imagenes/agrelo/Agrelo.JPEG');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.01));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Seccion de casa */
.casa-img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.casa-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Seccion de galeria */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-filter {
    border-radius: 30px;
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: var(--transition);
    font-weight: 500;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

.gallery-container {
    max-width: 100%;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 15px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-caption {
    color: white;
    margin: 0;
    font-weight: 600;
}

.gallery-item-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.gallery-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

/* Modal lightbox mejorado */
.modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.carousel-item img {
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-caption {
    padding: 0 20px;
    text-align: center;
}

/* ===== SERVICIOS SECTION ===== */
.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Seccion de ubicacion */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-details {
    margin-top: 2rem;
}

.location-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.location-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.location-item h5 {
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.location-item p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Seccion de alrededores */
.surroundings-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.surroundings-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    text-align: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.surroundings-content {
    flex-grow: 1;
}

.surroundings-content h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.surroundings-list {
    list-style: none;
    padding-left: 0;
}

.surroundings-list li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.surroundings-list li span {
    font-weight: 500;
    color: var(--text-color);
}

/* Opiniones */
.booking-score-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 53, 128, 0.1);
    transition: var(--transition);
}

.booking-score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 53, 128, 0.15);
}

.booking-score-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.booking-score-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #003580, transparent);
}

.booking-score-header img {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.booking-score-header h4 {
    margin-bottom: 0;
    color: #003580;
    font-weight: 600;
}

.booking-score-content {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.booking-score-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 53, 128, 0.05);
    z-index: 0;
    transition: var(--transition);
}

.booking-score-card:hover .booking-score-content::before {
    transform: scale(10);
    opacity: 0.1;
}

.booking-score-number {
    width: 90px;
    height: 90px;
    background-color: #003580;
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 2rem;
    box-shadow: 0 4px 8px rgba(0, 53, 128, 0.2);
    position: relative;
}

.booking-score-number::after {
    content: '/10';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.booking-score-number.exceptional::before {
    content: '★';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #003580;
}

.booking-score-text {
    flex-grow: 1;
}

.booking-score-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #003580;
}

.booking-score-category {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.booking-score-category span {
    width: 180px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.booking-score-category .progress {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.booking-score-category .progress-bar {
    background-color: #003580;
    font-size: 0;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.booking-score-category .progress-bar::after {
    content: attr(aria-valuenow);
    position: absolute;
    right: 5px;
    top: -16px;
    font-size: 0.8rem;
    color: #003580;
    font-weight: 600;
}

.review-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 53, 128, 0.1);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 53, 128, 0.15);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 53, 128, 0.1);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.review-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 53, 128, 0.05) 51%);
    z-index: 0;
    transition: var(--transition);
}

.review-card:hover::after {
    width: 100px;
    height: 100px;
}

.review-header {
    display: flex;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #003580;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h5 {
    margin-bottom: 0.3rem;
    color: #003580;
    font-weight: 600;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.review-rating i {
    animation: star-pulse 1s infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.review-rating i:nth-child(1) {
    --i: 1;
}

.review-rating i:nth-child(2) {
    --i: 2;
}

.review-rating i:nth-child(3) {
    --i: 3;
}

.review-rating i:nth-child(4) {
    --i: 4;
}

.review-rating i:nth-child(5) {
    --i: 5;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.review-body {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    padding-left: 0.5rem;
}

.review-body p {
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--text-color);
}

.review-source {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}

.review-source img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.review-source span {
    font-size: 0.9rem;
    color: #003580;
    font-weight: 500;
}

.review-country {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-top: 0.2rem;
}

.review-country i {
    margin-right: 5px;
    color: #003580;
}

.btn-booking {
    background-color: #003580;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 53, 128, 0.2);
}

.btn-booking:hover {
    background-color: #00224f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 53, 128, 0.3);
}

.reviews-loader,
.summary-loader {
    padding: 3rem 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
}

.reviews-loader .spinner-border,
.summary-loader .spinner-border {
    border-width: 0.2em;
    border-right-color: #003580;
    width: 3rem;
    height: 3rem;
}

/* Secxión de CTA */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-section .btn-primary:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: white;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list li i {
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.quick-links {
    list-style: none;
    padding-left: 0;
    columns: 2;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.quick-links a:hover {
    color: var(--accent-color);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

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

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    padding-left: 0;
}

.footer-bottom-links li {
    margin-left: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Boton de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Boton de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 400px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 1rem;
        justify-content: center;
    }

    .footer-bottom-links li:first-child {
        margin-left: 0;
    }

    .booking-score-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-score-number {
        margin-bottom: 1.5rem;
        margin-right: 0;
    }
    
    /* Arreglos para el botón del menú en móviles */
    .navbar-toggler {
        position: relative;
        z-index: 1050 !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        margin-right: 5px;
        border: 1px solid var(--primary-color);
    }
    
    [data-bs-theme="dark"] .navbar-toggler {
        background-color: rgba(33, 33, 33, 0.9) !important;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1040;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    [data-bs-theme="dark"] .navbar-collapse {
        background-color: #1e1e1e;
    }
    
    .navbar {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .quick-links {
        columns: 1;
    }

    .footer-bottom-links {
        flex-direction: column;
    }

    .footer-bottom-links li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .booking-score-category span {
        width: 140px;
    }

    .booking-score-content {
        flex-direction: column;
        align-items: center;
    }

    .booking-score-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    /* Arreglos para la galería en móviles */
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px !important;
        width: 100% !important;
    }
    
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.big {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 200px !important;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mejorar visibilidad de los filtros */
    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn-filter {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 5px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }

    .btn-filter {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .booking-score-category span {
        width: 120px;
        font-size: 0.8rem;
    }
    
    /* Mejoras para el botón de WhatsApp y tema en móvil */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.3rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        top: 80px;
        right: 15px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animacion de estrellas */
@keyframes star-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

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

/* Estilos para el modo oscuro */
[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #ffffff;
    color: #ffffff;
}

[data-bs-theme="dark"] .navbar {
    background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .booking-score-header h4,
[data-bs-theme="dark"] .booking-score-label {
    color: #ffffff;
}

[data-bs-theme="dark"] .section-title,
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] p {
    color: #ffffff;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .surroundings-card,
[data-bs-theme="dark"] .review-card,
[data-bs-theme="dark"] .booking-score-card {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] .footer {
    background-color: #1a1a1a;
    color: #ffffff;
}

[data-bs-theme="dark"] .quick-links a,
[data-bs-theme="dark"] .feature-list li,
[data-bs-theme="dark"] .contact-list li,
[data-bs-theme="dark"] .surroundings-list li,
[data-bs-theme="dark"] .surroundings-list li span,
[data-bs-theme="dark"] .section-subtitle,
[data-bs-theme="dark"] .location-item p,
[data-bs-theme="dark"] .booking-score-category span {
    color: #ffffff;
}

/* Estilos para el botón de cambio de tema */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .theme-toggle {
    background-color: #333333;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: #333333;
}

[data-bs-theme="dark"] .theme-toggle i {
    color: #ffffff;
}

/* Estilos para la galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

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

.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

.gallery-item.wide {
    grid-column: span 2;
    height: auto;
}

.gallery-item.tall {
    grid-row: span 2;
    height: auto;
}

/* Estilos para las reseñas */
.review-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    height: 100%;
}

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

.review-info {
    flex: 1;
}

.review-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.review-rating {
    color: #ff9800;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
}

.review-body {
    margin-bottom: 15px;
    font-style: italic;
}

.review-source {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.review-source img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* NUEVAS MEJORAS PARA RESPONSIVE MÓVIL */

/* Mejoras para el navbar en móvil */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        border: 1px solid var(--primary-color);
        position: relative;
        z-index: 1030;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(30, 96, 145, 0.25);
    }

    .navbar-collapse {
        background-color: var(--bs-body-bg);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--box-shadow);
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link.booking-btn {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Mejoras para la galería en móvil */
@media (max-width: 767.98px) {
    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filters::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-filters::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 4px;
    }

    .btn-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .gallery-item {
        height: 200px;
    }
}

/* Mejoras para el botón de WhatsApp y tema en móvil */
@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.3rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        top: 80px;
        right: 15px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mejoras para la sección de hero en móvil */
@media (max-width: 767.98px) {
    .hero {
        height: 90vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Mejoras para las tarjetas de servicios en móvil */
@media (max-width: 767.98px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
}

/* Mejoras para las reseñas en móvil */
@media (max-width: 767.98px) {
    .booking-score-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .booking-score-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .booking-score-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-score-category span {
        width: 100%;
        margin-bottom: 0.3rem;
    }
}

/* Contenedor para la galería móvil */
#mobileGalleryContainer {
    margin-top: 20px;
}

#mobileGalleryContainer .carousel-item img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

#mobileGalleryContainer .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-radius: 0 0 8px 8px;
    padding: 15px;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
}

#mobileGalleryContainer .carousel-indicators {
    margin-bottom: 0;
}
