/* Separación del header */
.section-box.full-width {
    margin-top: 120px;
}
.section-box.full-width h2 {
    position: relative;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #004687;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

/* Línea decorativa */
.section-box.full-width h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(
        to right,
        transparent,
        #004687,
        transparent
    );
    border-radius: 2px;
}

/* =========================
   TABS
========================= */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 35px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid #004687;
    color: #004687;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #004687;
    color: white;
}

.tab-btn.active {
    background-color: #004687;
    color: white;
}

/* =========================
   CONTENIDO
========================= */
.tab-content {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================
   LISTA DE PROYECTOS
========================= */
.projects-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* Proyecto individual */
.projects-list li {
    position: relative;
    padding: 18px 22px 18px 58px;
    margin-bottom: 18px;
    background: #f8f9fb;
    border-left: 5px solid #004687;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover elegante */
.projects-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* =========================
   ICONOS POR TIPO
========================= */

/* ⚡ ELÉCTRICO / ELECTROMECÁNICO */
#electromecanica .projects-list li::before {
    content: "⚡";
    position: absolute;
    left: 18px;
    top: 20px;
    font-size: 20px;
    color: #004687;
}

/* ⚙ MECÁNICO / CIVIL */
#civil .projects-list li::before {
    content: "⚙";
    position: absolute;
    left: 18px;
    top: 20px;
    font-size: 20px;
    color: #004687;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px) {
    .projects-list li {
        padding: 16px 18px 16px 52px;
        font-size: 15px;
    }

    #electromecanica .projects-list li::before,
    #civil .projects-list li::before {
        top: 18px;
        font-size: 18px;
    }
}

/* =========================
   ANIMACIÓN
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ocultar contenidos por defecto */
.tab-content {
    display: none;
}

/* Mostrar solo el activo */
.tab-content.active {
    display: block;
}

@media (max-width: 767px) {
    .section-box.full-width h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .section-box.full-width h2::after {
        width: 60px;
    }
}
