/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

/* Color Palette */
:root {
    --color-primary: #D35400;    /* Tierra Oaxaqueña */
    --color-secondary: #E67E22;  /* Naranja */
    --color-accent: #F39C12;     /* Amarillo */
    --color-text: #2C3E50;       /* Azul oscuro */
    --color-bg: #FDF2E9;         /* Fondo cálido */
    --color-white: #FFFFFF;
    --color-highlight: #E74C3C;  /* Rojo mexicano */
    --color-green: #27AE60;      /* Verde */
}

/* Carousel Section */
.carousel-section {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 70vh;
    max-height: 700px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-section {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* General Body Styles */
body {
    font-family: 'Nunito', 'Poppins', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23f1c27d" fill-opacity="0.1" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    background-size: 150px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="0.1" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    background-size: 80px;
    opacity: 0.3;
}

.header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.8rem;
    font-weight: 800;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.header .subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.95);
}

.price-tag {
    display: inline-block;
    background-color: var(--color-highlight);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Container for layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: -40px auto 0;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section {
    background: var(--color-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.section h2 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    margin-top: 0 0 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-highlight);
}

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    border: 5px solid white;
}

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

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 2;
    border-color: var(--color-accent);
}

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

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, #FFF5E6, #FFEBD6);
    border-left: 5px solid var(--color-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.1);
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23E67E22" fill-opacity="0.1" d="M50,5L20,95L50,85L80,95Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(30%, -30%);
}

.pricing-section h3 {
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.price {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.currency {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.equivalent {
    background: var(--color-accent);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: auto;
    align-self: center;
}

.pricing-note {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed var(--color-secondary);
}

.pricing-note p {
    margin: 0.5rem 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-note strong {
    color: var(--color-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: linear-gradient(135deg, #FFF9F2, #FFF0E0);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.15);
    background: linear-gradient(135deg, #FFF0E0, #FFE4C8);
}

.feature-icon {
    font-size: 1.8rem;
    min-width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.feature-text {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

/* Amenities */
.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #F8F9FA;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.amenity:hover {
    background: #E9ECEF;
    transform: translateX(5px);
}

.amenity-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

/* List Styles */
ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

ul li {
    background: linear-gradient(135deg, #FFF9F2, #FFF0E0);
    margin-bottom: 12px;
    padding: 15px;
    border-left: 5px solid var(--color-secondary);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

ul li::before {
    content: '→';
    position: absolute;
    right: 15px;
    color: var(--color-secondary);
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

ul li:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #FFF0E0, #FFE4C8);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.05);
}

ul li:hover::before {
    opacity: 1;
    right: 10px;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    margin: 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    content: '-';
}

.faq-item h3:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

/* Map Placeholder */
#map-placeholder {
    width: 100%;
    height: 400px;
    background: #e9e9e9;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 1.2rem;
    border-radius: 8px;
}

/* Map Styles */
#map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    border: 5px solid white;
}

#map iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-highlight));
}

.footer p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .features-grid, .amenities {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Add delay to each section */
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding: .1rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex; /* Becomes a flex container when shown */
}

.modal-content {
    display: block;
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    margin: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}