/* Base Styles */
:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --accent-color: #74b9ff;
    --light-color: #f5f6fa;
    --dark-color: #2d3436;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

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

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Descripción del inmueble */
.description {
    padding: 50px 0;
    background-color: white;
    box-shadow: var(--shadow);
}

.description h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.description h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.description-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.description-item {
    flex: 1 1 100%;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    padding: 25px;
    transition: var(--transition);
    margin-bottom: 15px;
    background: none;
    color: var(--primary-color);
}

/* Eliminado el efecto hover para mantener el estilo consistente */

@media (min-width: 768px) {
    .description-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (min-width: 992px) {
    .description-item {
        flex: 1 1 calc(33.333% - 15px);
    }
}

.description-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    transition: var(--transition);
}

.description-item ul {
    list-style-type: none;
    padding: 0;
}

.description-item li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: var(--transition);
}

.description-item li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: var(--transition);
}

/* Gallery Controls */
.gallery-controls {
    padding: 30px 0;
    background-color: white;
    box-shadow: var(--shadow);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Gallery Grid */
.gallery {
    padding: 50px 0;
}

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

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
