/* Hero Section para páginas internas */
.page-hero {
    margin-top: 80px;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide:first-child {
    opacity: 1;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    color: white;
    text-align: center;
    background: rgba(44, 62, 80, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.carousel-caption p {
    font-size: 1.2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--accent);
}

/* Navegación por Espacios */
.espacios-navegacion {
    padding: 3rem 20px;
    background: var(--white);
    border-bottom: 2px solid var(--secondary);
}

.espacios-navegacion h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.espacios-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.espacio-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--background);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: var(--text);
}

.espacio-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.espacio-btn:hover:not(.active) {
    background: var(--secondary);
    transform: translateY(-2px);
}

.espacio-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.espacio-btn span {
    font-size: 0.9rem;
}

/* Contenedor de Espacios */
.espacios-container {
    position: relative;
}

.espacio-section {
    display: none;
    padding: 0 20px;
}

.espacio-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero de cada espacio */
.espacio-hero {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.espacio-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.espacio-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 62, 80, 0.9));
    color: white;
    padding: 2rem;
}

.espacio-hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.espacio-hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Grid de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.producto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.producto-image {
    height: 200px;
    overflow: hidden;
}

.producto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.producto-card:hover .producto-image img {
    transform: scale(1.1);
}

.producto-info {
    padding: 1.5rem;
}

.producto-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.producto-info p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.producto-precio {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 1rem;
}

.btn-producto {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-producto:hover {
    background: var(--accent);
}

/* Media Queries - Tablet */
@media (min-width: 768px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }
    
    .espacios-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .espacio-hero {
        height: 400px;
    }
    
    .espacio-hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Media Queries - Desktop */
@media (min-width: 1024px) {
    .espacios-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-caption {
        left: 15%;
        right: 15%;
    }
    
    .espacio-hero-content {
        padding: 3rem;
    }
}

/* Media Queries - Large Desktop */
@media (min-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

