/* ============================
   MONTAJES METÁLICOS MALLO - PROYECTOS
   CSS Optimizado solo para proyectos.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;
}

/* ============================
   INTRODUCCIÓN DE PROYECTOS
   ============================ */
.projects-intro {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.projects-intro h1 {
    font-size: 2.5em;
    margin-bottom: 16px;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-intro p {
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

.projects-intro strong {
    color: #fff;
}

/* ============================
   GRID DE PROYECTOS
   ============================ */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(42, 42, 42, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-type {
    font-size: 0.85em;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #ffc107;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.project-description {
    font-size: 0.95em;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #ffc107;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    border: 2px solid #ffc107;
}

.project-link:hover {
    background-color: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.project-link i {
    margin-left: 6px;
}

/* ============================
   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: 768px) {
    body {
        padding-top: 72px;
    }

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

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .projects-intro {
        padding: 30px 16px 16px;
    }

    .projects-intro h1 {
        font-size: 26px;
    }

    .projects-intro p {
        font-size: 1em;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        padding: 20px 16px;
    }

    .project-image {
        height: 160px;
    }

    .project-info {
        padding: 16px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-description {
        font-size: 13px;
    }

    .project-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .projects-intro {
        padding: 20px 12px 12px;
    }

    .projects-intro h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .projects-intro p {
        font-size: 14px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 12px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 14px;
    }

    .project-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .project-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .project-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}
