/* ================================================================
   ESTILOS SECCIÓN SERVICIOS - LUVELCA ENERGY (PROYECTO LUVCORE)
   ================================================================ */

/* --- RESET Y BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f2f6fb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVEGACIÓN (FONDO NEGRO) --- */
nav {
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.navbar-logo {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* --- ENCABEZADO DE SECCIÓN --- */
.projects-header {
    padding: 60px 10% 20px;
    background: #fdfdfd;
    text-align: left;
}

.projects-header h2 {
    font-size: 38px;
    color: #333;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 4px;
    background: #f1b42f; 
    margin-top: 10px;
}

/* --- CONTENEDORES --- */
.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 10% 100px;
    align-items: center; 
}

/* --- IMÁGENES ESTÁTICAS --- */
.project-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.flip-card {
    width: 100%;
    max-width: 550px;
    height: 400px; 
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- CORRECCIÓN DE COLOR (LETRA NEGRA) --- */
.section-title h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333; /* Título principal en gris oscuro/negro */
}

/* AQUÍ ESTABA EL ERROR: Ahora el span es NEGRO, no verde */
.section-title span { 
    color: #333; 
    display: block; /* Para que baje de renglón si es necesario */
    font-weight: 700;
}
.section-title {
    max-width: 600px;   /* 🔥 CLAVE */
}
.section-title p {
    line-height: 1.7;
    color: #555;

    text-align: justify;
    text-justify: inter-word;

    hyphens: none; /* 🔥 QUITA cortes raros */
}

/* --- DIAGRAMAS INFERIORES --- */
.other-projects-title {
    text-align: center;
    padding: 40px 0 10px;
}

.projects-container.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-card-simple {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.project-card-simple img {
    width: 100%; 
    height: 250px;
    object-fit: contain;
    background: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* --- FOOTER --- */
.simple-footer {
    background: #8cc63f;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}

/* --- MENÚ MÓVIL Y HAMBURGUESA (CORREGIDO) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f1b42f;
}

@media (max-width: 900px) {

  .section-title {
    max-width: 100%; /* 🔥 en celular no limitar tanto */
}
  .section-title p {
    text-align: justify;
    hyphens: none;          /* 🔥 evita huecos feos */
    word-spacing: -0.5px;
}
    .hamburger { display: flex; }

    .projects-container, .projects-container.compact {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 2000;
    }

    .nav-links.active { right: 0; }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: #f1b42f;
        cursor: pointer;
    }
}


