/* Estilos específicos para la página del proyecto UPBC */

/* Botón de Volver estilo iPhone */
.btn-volver {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 18px 10px 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0px;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-volver svg {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.proyecto-hero {
    padding: 80px 20px 80px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 50%, #1A1A1A 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #E5E5E5;
    margin-bottom: 20px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.3rem;
    color: #B3B3B3;
    margin-bottom: 30px;
    line-height: 1.6;
}

.proyecto-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    background: rgba(106, 17, 203, 0.2);
    color: #6A11CB;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #6A11CB;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6A11CB;
    color: white;
}

.btn-primary:hover {
    background: #574B90;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #6A11CB;
    border: 2px solid #6A11CB;
}

.btn-secondary:hover {
    background: #6A11CB;
    color: white;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Container general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sección de descripción */
.proyecto-descripcion {
    padding: 80px 20px;
    text-align: left;
    background-color: #1A1A1A;
}

.proyecto-descripcion h2 {
    text-align: center;
    margin-bottom: 60px;
}

.descripcion-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.descripcion-text h3 {
    color: #6A11CB;
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    font-size: 1.1rem;
    color: #B3B3B3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.descripcion-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #6A11CB;
    margin-bottom: 5px;
}

.stat-item p {
    color: #B3B3B3;
    font-size: 1rem;
}

/* Sección de tecnologías */
.tecnologias-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
}

.tecnologias-section h2 {
    text-align: center;
    margin-bottom: 60px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.tech-category h3 {
    color: #6A11CB;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateX(10px);
}

.tech-item img {
    width: 30px;
    height: 30px;
}

.tech-item span {
    font-weight: bold;
    color: #E5E5E5;
}

/* Galería */
.galeria-section {
    padding: 80px 20px;
    background-color: #1A1A1A;
}

.galeria-section h2 {
    text-align: center;
    margin-bottom: 60px;
}

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

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-10px);
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
}

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

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

/* Enlaces de descarga */
.enlaces-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
}

.enlaces-section h2 {
    text-align: center;
    margin-bottom: 60px;
}

.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.enlace-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.enlace-item:hover {
    transform: translateY(-5px);
}

.enlace-icon {
    margin-bottom: 20px;
}

.enlace-icon img {
    width: 60px;
    height: 60px;
}

.enlace-item h3 {
    color: #E5E5E5;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.enlace-item p {
    color: #B3B3B3;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-enlace {
    display: inline-block;
    padding: 12px 24px;
    background: #6A11CB;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-enlace:hover {
    background: #574B90;
    transform: translateY(-2px);
}

.btn-enlace.disabled {
    background: #666;
    cursor: not-allowed;
}

.btn-enlace.disabled:hover {
    background: #666;
    transform: none;
}

/* Call to Action */
.cta-section {
    padding: 80px 20px;
    background-color: #1A1A1A;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #B3B3B3;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer mejorado */
footer {
    background-color: #0F0F0F;
    padding: 40px 20px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #B3B3B3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6A11CB;
}

/* Responsivo */
@media (max-width: 768px) {
    .btn-volver {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-volver svg {
        width: 16px;
        height: 16px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .descripcion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tech-item {
        flex-direction: column;
        text-align: center;
        min-width: 120px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .enlaces-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}