/* Enhanced Espacios Styles */
.espacios-section {
    padding: 2rem 0;
}

.espacios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.espacio-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.espacio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.espacio-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.espacio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.espacio-card:hover .espacio-image {
    transform: scale(1.05);
}

.espacio-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 63, 144, 0.8) 0%, rgba(7, 124, 231, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.espacio-card:hover .espacio-image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.espacio-content {
    padding: 2rem;
}

.espacio-title {
    color: #163f90;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.espacio-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.espacio-description h1,
.espacio-description h2,
.espacio-description h3,
.espacio-description h4,
.espacio-description h5,
.espacio-description h6 {
    color: #163f90;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.espacio-description ul,
.espacio-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.espacio-description li {
    margin-bottom: 0.5rem;
}

.espacio-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.espacio-btn {
    flex: 1;
    min-width: 160px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.espacio-btn-primary {
    background: linear-gradient(135deg, #1cc765 0%, #15a555 100%);
    color: white;
}

.espacio-btn-primary:hover {
    background: linear-gradient(135deg, #15a555 0%, #138a47 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 199, 101, 0.3);
}

.espacio-btn-secondary {
    background: linear-gradient(135deg, #163f90 0%, #077ce7 100%);
    color: white;
}

.espacio-btn-secondary:hover {
    background: linear-gradient(135deg, #0f2d6b 0%, #0566c2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 63, 144, 0.3);
}

.espacio-btn i {
    font-size: 1.1em;
}

.espacios-header {
    text-align: center;
    margin-bottom: 3rem;
}

.espacios-header h2 {
    color: #163f90;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.espacios-header p {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.empty-state h2 {
    color: #163f90;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .espacios-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .espacio-card {
        display: grid;
        grid-template-columns: 1fr 2fr;
        min-height: 350px;
    }

    .espacio-image-container {
        height: auto;
    }

    .espacio-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .espacio-actions {
        margin-top: auto;
    }
}

@media (min-width: 1200px) {
    .espacios-grid {
        gap: 4rem;
    }

    .espacio-title {
        font-size: 2rem;
    }
}

/* Breadcrumb enhancement */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item a {
    color: #163f90;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #077ce7;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Animation on load */
.espacio-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.espacio-card:nth-child(1) { animation-delay: 0.1s; }
.espacio-card:nth-child(2) { animation-delay: 0.2s; }
.espacio-card:nth-child(3) { animation-delay: 0.3s; }
.espacio-card:nth-child(4) { animation-delay: 0.4s; }
.espacio-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
