/* ============================
   MONTAJES METÁLICOS MALLO - PÁGINAS DE PROYECTO INDIVIDUAL
   CSS Optimizado para proyecto-1.html a proyecto-11.html
   ============================ */

/* IMPORTAR FUENTE */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding-top: 92px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

/* IMAGEN DE FONDO CORPORATIVA */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('logo.webp') no-repeat center center/contain;
    opacity: 0.15;
    z-index: -1;
}

/* ============================
   HEADER Y NAVEGACIÓN
   ============================ */
.main-header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffc107;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffc107;
    font-size: 2em;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
}

/* ============================
   CONTENEDOR PRINCIPAL DEL PROYECTO
   ============================ */
.project-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Enlace volver */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #ffc107;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 1em;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.back-link i {
    margin-right: 8px;
}

/* ============================
   CABECERA DEL PROYECTO
   ============================ */
.project-header {
    margin-bottom: 50px;
    text-align: center;
}

.project-type {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
}

.project-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   GALERÍA DE IMÁGENES
   ============================ */
.project-gallery {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

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

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

/* ============================
   CONTENIDO DEL PROYECTO
   ============================ */
.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.project-description {
    line-height: 1.8;
    color: #f0f0f0;
}

.project-description h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #ffc107;
    font-weight: 600;
}

.project-description p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.project-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-description li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* ============================
   ESPECIFICACIONES TÉCNICAS
   ============================ */
.specs-section {
    background: rgba(42, 42, 42, 0.6);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    height: fit-content;
}

/* Solo el specs-section dentro de project-content es sticky en escritorio */
/* El specs-objetivo NUNCA es sticky */
@media (min-width: 1025px) {
    .project-content .specs-section:not(.specs-objetivo) {
        position: sticky;
        top: 120px;
    }
}

.specs-section.specs-objetivo {
    position: static !important;
    margin-top: 30px;
}

.specs-section h3 {
    font-size: 1.4em;
    margin-bottom: 25px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-section h4 {
    font-size: 1em;
    color: #ffc107;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.spec-item {
    display: flex;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: #ffc107;
    min-width: 130px;
    margin-right: 15px;
    font-size: 0.95em;
}

.spec-value {
    color: #ddd;
    flex: 1;
    font-size: 0.95em;
}

/* ============================
   BLOQUES DE SOLUCIÓN (para proyectos con múltiples opciones)
   ============================ */
.solution-block {
    background: rgba(42, 42, 42, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #333;
    text-align: left;
}

.solution-block h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #ffc107;
    font-weight: 600;
}

.solution-block p {
    font-size: 1em;
    margin-bottom: 8px;
    text-align: left;
}

.solution-block ul {
    margin-left: 20px;
    margin-bottom: 8px;
}

.solution-block li {
    margin-bottom: 6px;
    font-size: 1em;
}

/* ============================
   LLAMADA A LA ACCIÓN (CTA)
   ============================ */
.project-cta {
    margin-top: 50px;
    padding: 40px 30px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

.project-cta h3 {
    color: #ffc107;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.project-cta p {
    color: #ddd;
    font-size: 1.1em;
    margin-bottom: 25px;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background-color: #ffc107;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #ffc107;
}

.cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.cta-button i {
    margin-right: 10px;
}

.cta-button.whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.cta-button.whatsapp:hover {
    background-color: #1ebc57;
}

/* ============================
   FOOTER
   ============================ */
.main-footer {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid #ffc107;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-content a {
    color: #ffc107;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .specs-section {
        position: static;
    }

    .project-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .main-header {
        padding: 10px 15px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .project-detail-container {
        padding: 0 16px;
    }

    .project-title {
        font-size: 2em;
    }

    .project-content {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-section {
        padding: 20px;
    }

    .specs-section h3 {
        font-size: 1.2em;
    }

    .project-cta {
        padding: 30px 20px;
    }

    .project-cta h3 {
        font-size: 1.5em;
    }

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

@media (max-width: 480px) {
    .project-title {
        font-size: 1.6em;
    }

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

    .project-description h2 {
        font-size: 1.2em;
    }

    .project-description p,
    .project-description li {
        font-size: 1em;
    }

    .specs-section {
        padding: 16px;
    }

    .spec-label {
        min-width: 100px;
        font-size: 0.9em;
    }

    .spec-value {
        font-size: 0.9em;
    }

    .project-cta {
        padding: 25px 15px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
