:root {
    --primary: #5a7247; 
    --primary-dark: #3a4a2e; 
    --secondary: #d4b483;
    --light: #f8f5f0; 
    --dark: #333; 
    --text: #444; 
    --white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7; 
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0; 
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.8rem; 
    color: var(--primary);
    cursor: pointer;
    display: none;
    transition: color 0.3s ease;
}
.nav-toggle:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s; 
    position: relative;
    padding: 5px 0; 
}

.nav-menu a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; 
    background: var(--primary);
    bottom: -8px; 
    left: 50%; 
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.nav-menu a:hover::after {
    width: 100%;
}


.hero {
    min-height: 100vh; 
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), 
                url('/public/img/Fondo.webp') no-repeat center bottom / cover; 
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    color: var(--white);
    margin-top: 70px; 
    padding: 2rem 0; 
}

.hero-content {
    max-width: 900px; 
    margin: 0 auto;
    padding: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); 
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem; 
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 8px 20px var(--shadow-medium);
}

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

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

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

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

.section {
    padding: 6rem 0; 
}

.section.bg-light {
    background-color: var(--white); 
}

.section-title {
    text-align: center;
    margin-bottom: 4rem; 
}

.section-title h2 {
    font-size: 3rem; 
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem; 
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px; 
    height: 4px;
    background-color: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    border-radius: 2px; 
    animation: revealLine 1s forwards cubic-bezier(0.19, 1, 0.22, 1); 
    animation-delay: 0.2s; 
    opacity: 0; 
}
@keyframes revealLine {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}


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

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.8rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px; 
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 280px; 
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent); 
    color: var(--white);
    padding: 1.2rem;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 1; 
}

.services { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; 
    margin-top: 2.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem; 
    border-radius: 12px; 
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.service-icon {
    font-size: 3.5rem; 
    color: var(--primary);
    margin-bottom: 1.8rem; 
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}


.service-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.service-card .service-icon i.fa-quote-left {
    color: var(--secondary); 
    font-size: 2.8rem;
}



.footer {
    background-color: var(--primary-dark);
    color: var(--light);
    padding: 4.5rem 0 0; 
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1.8rem; 
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-section h3::after { 
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-section.about p {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.socials {
    margin-top: 1.2rem;
}

.socials a {
    display: inline-block;
    margin-right: 1.2rem;
    color: var(--light);
    font-size: 1.5rem; 
    transition: color 0.3s, transform 0.2s;
}

.socials a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 1rem; 
}

.footer-section.links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.footer-section.links a:hover {
    color: var(--secondary);
    transform: translateX(5px); 
}

.footer-section.contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-section.contact i {
    margin-right: 0.8rem;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 3px; 
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 0;
    background-color: var(--primary);
    font-size: 0.85rem;
    color: var(--light);
}


@media (max-width: 992px) { 
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section-title h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) { 
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 66px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 20px var(--shadow-medium);
        overflow-y: auto; 
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0; 
    }

    .nav-menu a {
        font-size: 1.3rem; 
        color: var(--primary-dark);
    }
    .nav-menu a::after {
        background: var(--primary-dark);
    }

    .hero {
        margin-top: 66px;
        min-height: 70vh; 
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.75rem 2rem;
    }

    .section {
        padding: 4rem 0;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .section-title p {
        font-size: 1rem;
    }

    .gallery-item img {
        height: 220px; 
    }
    .gallery {
        grid-template-columns: 1fr; 
    }

    .services {
        grid-template-columns: 1fr; 
    }

    .service-card {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-section.contact p {
        justify-content: center;
    }
    .socials {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 480px) { 
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .logo {
        font-size: 1.6rem;
    }
}

/* CONTACTO & RESERVACION - Formulario y Contacto Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; 
    margin-top: 3rem;
    align-items: flex-start; 
}

.contact-info, .form-container.reservation-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover, .form-container.reservation-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.contact-info h3, .form-container h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text);
}

.contact-info p i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-info .socials {
    margin-top: 2rem;
    text-align: center; 
}
.contact-info .socials a {
    font-size: 1.8rem; 
    margin: 0 0.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem; 
    border: 1px solid #ddd;
    border-radius: 8px; 
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--light); 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.2); 
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn[type="submit"] {
    width: 100%; 
    padding: 1.2rem; 
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* MAP Styles */
.map-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 8px 25px var(--shadow-light);
    margin-top: 4rem; 
}

.map-container iframe {
    width: 100%;
    height: 450px; 
    border: 0;
    display: block; 
}

/* Specific class for padding on main content to avoid header overlap */
.main-content-padding {
    padding-top: 100px; 
}

/* Gallery full page - additional grid columns for larger screens */
.gallery.gallery-full {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}
@media (min-width: 992px) { 
    .gallery.gallery-full {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) { 
    .gallery.gallery-full {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ajustes Responsive para padding superior */
@media (max-width: 768px) {
    .main-content-padding {
        padding-top: 80px; 
    }
    .contact-grid {
        gap: 2rem;
    }
    .contact-info h3, .form-container h3 {
        font-size: 1.6rem;
    }
}
@media (max-width: 480px) {
    .main-content-padding {
        padding-top: 70px; 
    }
    .contact-info, .form-container.reservation-form {
        padding: 1.8rem;
    }
}

/* --- Styles for Reservation Search Bar (like the image) --- */
.reservation-search-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    justify-content: center; 
}

.reservation-search-container .form-group {
    flex: 1; 
    min-width: 180px; 
    margin-bottom: 0; 
}

.reservation-search-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.reservation-search-container .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    color: #555;
    background-color: #f8f8f8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reservation-search-container .form-control:focus {
    border-color: #5a7247;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.reservation-search-container .btn-search {
    padding: 12px 30px;
    background-color: #5a7247; 
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; 
}

.reservation-search-container .btn-search:hover {
    background-color: #3a4a2e;
    transform: translateY(-2px);
}

/* --- Styles for Cabin Listing (like the image) --- */
.cabin-listing-container {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; 
    margin-top: 30px; 
    flex-direction: column; 
}

/* Clase para ocultar cabañas sin romper layout */
.cabin-listing-container.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .cabin-listing-container {
        flex-direction: row; 
    }
}

.cabin-listing-image {
    flex: 1; 
    min-width: 300px; 
    height: 250px; 
    overflow: hidden;
}

.cabin-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.cabin-listing-details {
    flex: 2; 
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cabin-listing-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 8px;
}

.cabin-listing-details .stars {
    color: #ffc107; 
    margin-bottom: 10px;
    font-size: 1.1em;
}

.cabin-listing-details .location {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.cabin-listing-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cabin-listing-amenities span {
    background-color: #e9ecef;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.cabin-listing-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; 
    margin-top: auto; 
}

.cabin-listing-price-info {
    text-align: right; 
}

.cabin-listing-price{
    font-weight: 700;
    font-size: 2.2em;
    color: #333;
    line-height: 1;
}

.cabin-listing-price .original{
    text-decoration: line-through;
    color: #888;
}

.cabin-listing-price .discounted{
    color: #e74c3c;
}

.cabin-listing-guests {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.cabin-listing-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; 
}

@media (max-width: 767px) {
    .cabin-listing-rating {
        margin-left: 0; 
        width: 100%; 
        justify-content: flex-end; 
        margin-bottom: 15px; 
    }
    ce-info {
        text-align: left; 
    }
    .cabin-listing-bottom {
        justify-content: space-between; 
    }
}


.cabin-listing-rating .rating-text {
    font-weight: 600;
    color: #333;
}

.cabin-listing-rating .rating-score {
    background-color: #007bff; 
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2em;
}

.cabin-listing-book-btn {
    background-color: #5a7247; 
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cabin-listing-book-btn:hover {
    background-color: #3a4a2e;
    transform: translateY(-2px);
}


/* --- Modal (Pop-up) Styles Mejorados --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px 50px; 
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 550px; 
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box; 
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    text-align: center;
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px;
}

/* Asegura que los controles del formulario dentro del modal se vean bien */
.modal-content .form-group {
    margin-bottom: 20px; 
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500; 
    color: #333;
    font-size: 0.95em;
}


.modal-content .form-control {
    width: 100%;
    padding: 12px 15px; 
    border: 1px solid #dcdcdc; 
    border-radius: 8px; 
    font-size: 1em;
    color: #555;
    background-color: #fcfcfc; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; 
}

.modal-content .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
    background-color: #fff; 
}

/* Estilo específico para el 'Tipo de Cabaña' en el modal cuando está deshabilitado */
.modal-content #tipo-cabana {
    background-color: #e9ecef; 
    font-weight: 500;
    color: #333; 
    cursor: not-allowed; 
}

.modal-content .btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 30px; 
    border-radius: 8px;
    background-color: #28a745; 
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-content .btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Para los inputs de tipo date, asegura que el icono del calendario no interfiera con el texto */
input[type="date"].form-control {
    padding-right: 40px; 
}

/* Estilos para el placeholder (opcional, pero mejora la estética) */
.modal-content .form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Media query para pantallas pequeñas si es necesario */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px; 
    }
    .modal-content h3 {
        font-size: 1.6em;
    }
    .modal-content .btn-primary {
        font-size: 1.1em;
        padding: 12px;
    }
}

.btn-clear-filter{
     padding: 12px 30px;
    background-color: #5a7247;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; 
}

/* --- ESTILOS PARA LA GALERÍA (galeria.html) - MEJORADO Y MODERNIZADO --- */

#gallery {
    padding: 80px 0; 
    background-color: #f8f8f8; 
}

#gallery .section-title {
    margin-bottom: 70px; 
    text-align: center;
    color: #333;
}

#gallery .section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em; 
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px; 
    font-weight: 700; 
}

#gallery .section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px; 
    background-color: #5a7247;
    border-radius: 2px;
}

#gallery .section-title p {
    font-size: 1.2em; 
    color: #666;
    max-width: 800px; 
    margin: 0 auto;
    line-height: 1.8; 
}

.cabin-gallery-section {
    background-color: #ffffff;
    border-radius: 18px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); 
    padding: 40px; 
    margin-bottom: 60px; 
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}

.cabin-gallery-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2); 
}

.cabin-gallery-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em; 
    color: #444;
    margin-bottom: 30px; 
    position: relative;
    padding-bottom: 20px;
    font-weight: 600; 
}

.cabin-gallery-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #f0ad4e; 
    border-radius: 1px;
}

/* Contenedor de la Imagen Principal */
.gallery-main-image-container {
    width: 100%;
    max-width: 900px; 
    height: 500px; 
    margin: 0 auto 35px auto; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); 
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.gallery-main-image-container:hover {
    transform: scale(1.03); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.gallery-main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.6s ease; 
}

.gallery-main-image-container:hover img {
    transform: scale(1.06);
}

/* Miniaturas de la Galería */
.gallery-thumbnails,
.modal-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
    margin-top: 30px; 
    margin-bottom: 40px;
}

.gallery-thumbnails img,
.modal-thumbnails img {
    width: 120px; 
    height: 80px; 
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 4px solid transparent; 
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); 
}

.gallery-thumbnails img:hover,
.modal-thumbnails img:hover {
    border-color: #007bff; 
    transform: translateY(-7px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modal-thumbnails img.active-thumbnail {
    border-color: #007bff;
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.7); 
    transform: scale(1.1); 
}


/* Botón de Reservar en la Galería */
.btn-book-gallery {
    background-color: #5a7247 ; 
    color: white;
    border: none;
    padding: 15px 40px; 
    border-radius: 50px; 
    font-size: 1.2em;
    font-weight: 700; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 30px; 
    text-decoration: none; 
    display: inline-block; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-book-gallery:hover {
    background-color: #3a4a2e; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}


/* Estilos para el Modal (Lightbox) de Imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.96); 
    animation: fadeIn 0.4s forwards;
    display: flex; 
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex; 
}

.modal-content {
    position: relative;
    padding: 30px; 
    background-color: #fff;
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); 
    max-width: 95%; 
    max-height: 95%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.6); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}

.modal-content img#modalImage {
    max-width: 98%;
    max-height: 75vh; 
    display: block;
    margin-bottom: 25px; 
    border-radius: 12px;
    object-fit: contain; 
    background-color: #e0e0e0;
}

/* Botón de cerrar el modal */
.close-button {
    color: #fff;
    position: absolute;
    top: 25px; 
    right: 35px;
    font-size: 45px; 
    font-weight: lighter; 
    cursor: pointer;
    transition: 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.close-button:hover,
.close-button:focus {
    color: #ccc;
    transform: rotate(90deg) scale(1.1); 
}

/* Navegación dentro del modal (flechas) */
.modal-gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px; 
    transform: translateY(-50%);
    pointer-events: none; 
}

.modal-gallery-nav .nav-arrow {
    background-color: rgba(0, 0, 0, 0.7); 
    color: white;
    border: none;
    padding: 18px 25px; 
    font-size: 2.5em; 
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    pointer-events: all; 
    z-index: 1002; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-gallery-nav .nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.9); 
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Media Queries para responsividad - Ajustes más finos */
@media (max-width: 1200px) {
    #gallery .section-title h2 {
        font-size: 2.8em;
    }
    .cabin-gallery-section h3 {
        font-size: 2.2em;
    }
    .gallery-main-image-container {
        height: 450px;
    }
    .gallery-thumbnails img,
    .modal-thumbnails img {
        width: 110px;
        height: 75px;
    }
}

@media (max-width: 992px) {
    #gallery {
        padding: 60px 0;
    }
    #gallery .section-title h2 {
        font-size: 2.4em;
    }
    #gallery .section-title p {
        font-size: 1.1em;
    }
    .cabin-gallery-section {
        padding: 30px;
        margin-bottom: 50px;
    }
    .cabin-gallery-section h3 {
        font-size: 2em;
    }
    .gallery-main-image-container {
        height: 380px;
    }
    .gallery-thumbnails,
    .modal-thumbnails {
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .gallery-thumbnails img,
    .modal-thumbnails img {
        width: 90px;
        height: 60px;
    }
    .btn-book-gallery {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-content img#modalImage {
        max-height: 65vh;
        margin-bottom: 20px;
    }
    .modal-gallery-nav .nav-arrow {
        padding: 15px 22px;
        font-size: 2.2em;
    }
    .close-button {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    #gallery .section-title h2 {
        font-size: 2em;
    }
    #gallery .section-title p {
        font-size: 1em;
    }
    .cabin-gallery-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    .cabin-gallery-section h3 {
        font-size: 1.8em;
    }
    .gallery-main-image-container {
        height: 300px;
        border-radius: 12px;
    }
    .gallery-thumbnails img,
    .modal-thumbnails img {
        width: 75px;
        height: 50px;
        border-radius: 10px;
    }
    .btn-book-gallery {
        padding: 10px 25px;
        font-size: 1em;
    }
    .modal-content {
        padding: 15px;
        border-radius: 12px;
    }
    .modal-content img#modalImage {
        max-height: 55vh;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    .modal-gallery-nav {
        padding: 0 15px;
    }
    .modal-gallery-nav .nav-arrow {
        padding: 12px 18px;
        font-size: 2em;
    }
    .close-button {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 576px) {
    #gallery {
        padding: 40px 0;
    }
    #gallery .section-title h2 {
        font-size: 1.8em;
    }
    #gallery .section-title p {
        font-size: 0.9em;
    }
    .cabin-gallery-section {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 15px;
    }
    .cabin-gallery-section h3 {
        font-size: 1.6em;
    }
    .gallery-main-image-container {
        height: 250px;
    }
    .gallery-thumbnails,
    .modal-thumbnails {
        gap: 10px;
    }
    .gallery-thumbnails img,
    .modal-thumbnails img {
        width: 65px;
        height: 45px;
    }
    .btn-book-gallery {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .modal-content {
        padding: 10px;
    }
    .modal-content img#modalImage {
        max-height: 45vh;
    }
    .modal-gallery-nav .nav-arrow {
        padding: 10px 15px;
        font-size: 1.6em;
    }
    .close-button {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Centrar el botón "Ver más fotos" en la galería */
.text-center {
    text-align: center;
    margin-top: 1rem; /* Ajusta si quieres más espacio arriba */
}

.text-center .btn {
    display: inline-block;
    margin: 0 auto;
}


