/* ========================================
   PROYECTOS - MOBILIARIO KÖTTERMANN
   Archivo: css/proyectos-mobiliario.css
======================================== */

/* Reset específico para el contenido de proyectos */
#proyectos-content * {
    box-sizing: border-box;
}

/* Contenedor principal del contenido de proyectos */
.proyectos-container {
    display: none; /* Inicialmente oculto */
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background-color: white;
}

.proyectos-container.active {
    display: block !important;
    animation: fadeIn 0.5s ease-in;
}

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

/* Header con título */
.mobiliario-header {
    background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.mobiliario-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 100%);
}

.mobiliario-header h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
	text-align: center;
}

/* Layout principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Sección de imagen principal */
.image-section {
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Sección de información */
.info-section {
/*    padding: 28px 0; */
}

.kottermann-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.kottermann-logo img {
    max-height: 100px;
    width: auto;
}

.description {
    color: #666;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Sección "Por qué elegir" */
.why-choose {
/*    margin-bottom: 30px; */
}

.why-choose h2 {
    color: #0066cc;
    font-size: 20px;
    margin-bottom: 15px;
	font-weight: 600;
}

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

.features-list li {
    color: #0066cc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.features-list li::before {
 	content: '●'; 
    color: #0066cc;
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* Sección de PDFs */
.pdf-section {
    margin-top: 20px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px; /*30px;*/
}

.pdf-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

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

.pdf-item img {
    width: 100%;
    height: 160px; /*200;*/
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.pdf-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,102,204,0.9));
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Texto informativo */
.help-text {
    text-align: center;
    color: #0066cc;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 50px; /*20px;*/
}

/* Botón INFO */
.info-button {
    position: fixed;
    bottom: 60px; /*30px;*/
    right: 20px; /*30px;*/
    width: 60px;
    height: 40px; /*60px;*/
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
    text-decoration: none;
    color: white;
}

.info-button:active {
    transform: scale(0.95);
}

/* Estilos para integración con el sitio existente */
.menu-proyectos {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-proyectos:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ocultar contenido específico cuando proyectos está activo */
#contenidos .proyectos-active {
    display: none;
}

/* Mostrar solo el contenido de proyectos cuando está activo */
#contenidos.showing-proyectos > *:not(#proyectos-content) {
    display: none !important;
}

#contenidos.showing-proyectos #proyectos-content {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .proyectos-container {
        margin: 10px;
        padding: 15px;
    }

    .mobiliario-header h1 {
        font-size: 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .kottermann-logo {
        font-size: 24px;
    }

    .pdf-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pdf-item img {
        height: 150px;
    }

    .info-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }

    .help-text {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .mobiliario-header {
        padding: 12px 15px;
    }

    .mobiliario-header h1 {
        font-size: 18px;
    }

    .kottermann-logo {
        font-size: 20px;
    }

    .description, .help-text {
        font-size: 14px;
    }

    .why-choose h2 {
        font-size: 18px;
    }
}