:root {
    --primary-color: #2842c8;
    --secondary-color: #fff;
    --text-color: #333;
    --background-color: #f8f8f8;
    --hover-color: #1a2e8a;
    --dark-mode-background: #1a1a1a;
    --dark-mode-text: #f0f0f0;
    --dark-mode-header: #4a6cd4;
    --dark-mode-aside: #333;
    --dark-mode-hover: #3a5bc4;
    --dark-mode-price: #4a6cd4;
    --dark-mode-border: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb-color: #2842c8;
    --scrollbar-track-color: #f8f8f8;
    --rating-color: #ffc107;
}
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right button {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 20px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    width: 100%;
    height: 50px;
    background: var(--secondary-color);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    list-style: none;
}

.sidebar-content li {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar-content li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    width: 100%;
    text-align: center;
    padding: 10px 5px;
    transition: color 0.3s;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gradient-item {
    background: var(--primary-color);
}

.gradient-item a {
    color: var(--secondary-color) !important;
}

/* Main */
main {
    margin-top: 60px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.main-content {
    max-width: 1200px;
    width: 100%;
}

.house-gallery {
    margin-bottom: 20px;
}

.gallery-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 10px;
}

.gallery-container img {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 8px;
    max-height: 300px;
    object-fit: cover;
}

.house-details {
    margin-top: 20px;
}

.house-details h1 {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.house-details .description {
    font-size: 16px;
    margin-bottom: 15px;
}

.services {
    display: flex;
    gap: 20px;
}

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

.service-item {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.price {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 15px;
}

.location {
    font-size: 15px;
    margin-bottom: 20px;
}

.reserve-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

/* Formulario reserva */
.reservation-form {
    background-color: var(--secondary-color);
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
}

.reservation-form h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.reservation-form .form-group {
    margin-bottom: 15px;
}

.reservation-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.reservation-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 14px;
}

.reservation-form .form-group input:valid {
    border-color: green;
}

.reservation-form .form-group input:invalid {
    border-color: red;
}

.reservation-form .reserve-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin-top: 15px;
}

/* Customer reviews*/
.customer-reviews {
    background-color: var(--secondary-color);
    padding: 20px 0;
    width: 100%;
}

.customer-reviews h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.reviews-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 20px;
}

.review-box {
    flex: 0 0 280px;
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    scroll-snap-align: start;
    text-align: center;
}

.review-box i {
    font-size: 24px;
    margin-bottom: 10px;
}

.review-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.stars {
    color: var(--rating-color);
    margin-bottom: 10px;
}

.review-box p {
    font-size: 14px;
}

/*FOOTER*/
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
}

.footer-content {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: var(--primary-color);
}

.footer-title {
    font-size: 5rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 20px;
    text-decoration: none;
}

.footer-email {
    margin-bottom: 60px;
}

/*ESTILOS BARRAS*/
.customer-reviews {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

.customer-reviews::-webkit-scrollbar {
    height: 12px;
}

.customer-reviews::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 6px;
}

.customer-reviews::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
    border-radius: 6px;
}

.main-content {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

.main-content::-webkit-scrollbar {
    height: 12px;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
    border-radius: 6px;
}


/* Tablet Styles */
@media screen and (min-width: 768px) {
    .gallery-container img {
        flex: 0 0 50%;
    }

    .review-box {
        flex: 0 0 calc(50% - 20px);
    }

    .reservation-form {
        padding: 30px;
    }

    .reservation-form h2 {
        font-size: 28px;
    }

    .reservation-form .form-group label {
        font-size: 16px;
    }
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
    .sidebar {
        width: 60px;
        height: 100vh;
        right: 0;
        top: 0;
        bottom: auto;
        left: auto;
        flex-direction: column;
        border-top: none;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sidebar-content {
        flex-direction: column;
    }

    .sidebar-content li a {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 14px;
        padding: 20px 0;
    }

    main {
        margin-right: 60px;
    }

    .gallery-container img {
        flex: 0 0 33.33%;
    }

    .review-box {
        flex: 0 0 calc(33.33% - 20px);
    }

    .header-right {
        margin-right: 80px;
    }

    .footer-title {
        font-size: 10rem;
    }

    .footer-social ul {
        margin-bottom: 2px;
    }

    .footer-email {
        margin-bottom: 10px;
    }

    .reservation-form {
        padding: 40px;
    }

    .reservation-form h2 {
        font-size: 32px;
    }

    .reservation-form .form-group label {
        font-size: 18px;
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--dark-mode-background);
    color: var(--dark-mode-text);
}

.dark-mode header {
    background-color: var(--dark-mode-header);
}

.dark-mode .house-details h1 {
    color: var(--secondary-color);
}

.dark-mode .price {
    color: var(--dark-mode-price);
}

.dark-mode .service-item i {
    color: var(--dark-mode-price);
}

.dark-mode .reserve-button {
    background: var(--dark-mode-header);
    color: var(--dark-mode-text);
}

.dark-mode .customer-reviews {
    background-color: var(--dark-mode-aside);
}

.dark-mode .customer-reviews h2 {
    color: var(--secondary-color);
}

.dark-mode .review-box {
    background-color: var(--dark-mode-background);
}

.dark-mode footer {
    background-color: var(--dark-mode-header);
}

.dark-mode .footer-content {
    background-color: var(--dark-mode-header);
}

.dark-mode .sidebar {
    background: var(--dark-mode-aside);
    border-color: var(--dark-mode-border);
}

.dark-mode .sidebar-content li a {
    color: var(--dark-mode-text);
}

.dark-mode .gradient-item {
    background: var(--dark-mode-header);
}

.dark-mode .reservation-form {
    background-color: var(--dark-mode-aside);
}

.dark-mode .reservation-form h2 {
    color: var(--secondary-color);
}

.dark-mode .reservation-form .form-group input {
    background-color: var(--dark-mode-background);
    color: var(--dark-mode-text);
    border-color: var(--dark-mode-border);
}