/* Variables globales */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.social-icons a {
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Secciones */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Estilos para la página de descargas */
.downloads-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.app-icon {
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.instruction-list {
    padding-left: 1.5rem;
}

.instruction-list li {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.downloads-section .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.downloads-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.downloads-section .btn-primary {
    width: 100%;
}

/* Estilos para la página de impresión 3D */
.print3d-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.printer-card {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s;
}

.printer-card:hover {
    transform: translateY(-5px);
}

.printer-card img {
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
}

.material-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
}

#galleryModal .modal-content {
    background: transparent;
    border: none;
}

#galleryModal .modal-body {
    padding: 0;
}

#modalImage {
    border-radius: 8px;
}

.quote-section .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Estilos para la página de talleres */
.workshops-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.tool-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 1rem;
}

.workshop-section img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.workshop-section .card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.workshop-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.registration-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

#registrationModal .modal-content {
    border-radius: 8px;
    border: none;
}

#registrationModal .modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

#registrationModal .btn-close {
    filter: brightness(0) invert(1);
}

.age-group-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar .social-icons {
        margin-top: 0.5rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
