a:hover img {
    transform: scale(1.1); /* Zoom in */
}

/* Background Containers */
.bg-container-main {
    background: url('../assets/BG.png') no-repeat center center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.bg-container-cp {
    background: url('../assets/casa_punta/index/BG.jpg') no-repeat center center;
    background-size: cover;
    height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bg-container-cm {
    background: url('../assets/casa_manta/index/BG.jpg') no-repeat center center;
    background-size: cover;
    height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Modal Backgrounds */
.bg-casaPuntaModal {
    background-color: #b1652b;
    color: white;
}

.bg-casaMantaModal {
    background-color: #909b57;
    color: white;
}

/* Logo Container */
.logo-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-container img {
    width: 25vw;
    max-width: 250px;
    min-width: 100px;
    border-radius: 50%;
}

/* Content and Layout */
.text-container {
    background-color: white;
    padding: 40px;
    position: relative;
    z-index: 5;
    margin-top: 3rem;
}

.content {
    color: white;
    margin-top: -150px;
}

.casa-body {
    padding-top: 56px;
}

/* Section Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.section {
    display: none;
    opacity: 0;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.section.fading-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Main Content */
.main-content {
    transition: margin-left 0.3s;
}

/* Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Flexible columns */
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100px;
    height: 100px;
    border: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-item i {
    font-size: 30px;
    color: #064420;
}

.grid-item:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Background Colors */
.cp-bg {
    background-color: #b1652b;
    color: white;
}

.cp-bg-gradient {
    background: linear-gradient(to bottom, #b1652b, #e6a87b, #b1652b);
}

.cm-bg {
    background-color: #909b57;
    color: white;
}

.cm-bg-gradient {
    background: linear-gradient(to bottom, #909b57, #d3e37e, #909b57);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        top: 30%;
    }
    .logo-container img {
        width: 40vw;
    }
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
