/* --- ESTILOS SECCIÓN PROYECTOS (ACTUALIZADO CON GIRO 3D) --- */

/* Encabezado de la página */
.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; /* El dorado Luvelca */
    margin-top: 10px;
}

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

/* ========================================
   EFECTO 3D FLIP CARD (Acomodado al CSS existente)
   ========================================
*/

.project-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenedor con perspectiva para el giro */
.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 550px;
    height: 400px; /* Altura necesaria para que el giro luzca */
    perspective: 1500px; 
}

/* El elemento que realmente gira */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Giro al pasar el mouse o tocar en móvil */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Propiedades comunes para ambas caras */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Oculta la espalda al girar */
    border-radius: 12px;
    overflow: hidden;
}

/* CARA FRONTAL (La foto de la instalación) */
.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto del proyecto llene el espacio */
    display: block;
}

.card-label {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    font-size: 11px;
    letter-spacing: 1px;
}

/* CARA TRASERA (Los Recibos) */
.flip-card-back {
    background-color: #1a1a1a; /* Fondo oscuro Luvelca */
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.receipts-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 15px;
}

.receipt-before, .receipt-after {
    flex: 1;
    position: relative;
}

.receipts-container img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.tag {
    position: absolute; top: -10px; left: 0;
    font-size: 10px; padding: 2px 8px; font-weight: bold;
}
.tag-red { background: #e74c3c; color: #fff; }
.tag-green { background: #8cc63f; color: #1a1a1a; }

.cost { font-weight: bold; margin-top: 8px; font-size: 16px; }
.cost.red { color: #e74c3c; }
.cost.green { color: #8cc63f; }

.divider-arrow { font-size: 24px; color: #444; }

/* --- FIN DEL EFECTO 3D --- */

/* Lista de características e iconos */
.section-title h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.section-title span { color: #8cc63f; }

.feature-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 30px;
    color: #8cc63f;
    background: #f4f9f0;
    padding: 15px;
    border-radius: 50%;
    line-height: 1;
}

.feature-text h4 {
    margin-bottom: 5px;
    color: #222;
}

.feature-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Footer de la página */
.simple-footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .projects-container {
        grid-template-columns: 1fr;
        padding: 20px 5%;
    }

    .projects-header { text-align: center; }
    .divider { margin: 10px auto; }
    
    .project-visual { padding: 10px 0; }
}

@media (max-width: 600px) {
    .flip-card { height: 480px; } /* Más espacio vertical en móvil */
    .receipts-container { flex-direction: column; }
    .divider-arrow { transform: rotate(90deg); margin: 5px 0; }
}

/*CSS PARA ANIMACION DE CARGA*/
/* --- MINI LOADER CIRCULAR LUVELCA --- */
#mini-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1a1a; /* Fondo oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.4s ease;
}

.solar-circle {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(140, 198, 63, 0.2); /* Círculo verde tenue */
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El Sol que gira alrededor */
.orbiting-sun {
    width: 15px;
    height: 15px;
    background: #f1b42f; /* Dorado Luvelca */
    border-radius: 50%;
    position: absolute;
    top: -8px;
    box-shadow: 0 0 10px #f1b42f;
    transform-origin: 50% 48px; /* Radio de giro */
    animation: orbit 1.5s infinite linear;
}

/* El panel/icono central */
.inner-panel {
    font-size: 24px;
    filter: grayscale(1) brightness(2); /* Estilo técnico plateado */
}

#mini-loader p {
    color: #8cc63f; /* Verde Luvelca */
    margin-top: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Animación de rotación */
@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Clase para ocultar */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
}
/* ========================================
  logo parte superior izquierda
   ========================================
*/
/* Contenedor principal del logo y texto */
.navbar-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px; /* Espacio entre el círculo y el texto */
}

/* Estilo para la imagen circular del logo */
.navbar-logo {
    height: 50px; /* Ajusta según el tamaño de tu navbar */
    width: auto;
    display: block;
}

/* Contenedor del texto al lado del logo */
.navbar-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-slogan {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Ajuste general del navbar para que todo fluya en línea */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #333; /* Color oscuro como el de tu imagen */
}


/* --- Texto Negro (Sustituye el verde) --- */
/* Busca las clases donde tenías el texto verde y asegúrate de que tengan esto: */
.feature-text p, .feature-text h4, .project-info span {
    color: #000000 !important;
}

/* --- Justificado en Celulares --- */
@media (max-width: 768px) {
    .project-info p, .feature-text p {
        text-align: justify;
    }
}
/* ---arreglo para texto modificacion extra---*/
/* Color para el título general (Caso de Éxito) */
.section-title h3 {
    color: #000000 !important; /* Negro */
}

/* Color específico para el nombre del proyecto */
.proyecto-verde {
    color: #8cc63f; /* El verde de Luvelca */
}

/* Color para el párrafo de descripción y ficha técnica */
.text-negro, 
.feature-text p, 
.feature-text h4 {
    color: #000000 !important; /* Negro */
}

/* Justificado en celulares para el texto de abajo */
@media (max-width: 768px) {
    .justify-mobile {
        text-align: justify;
    }
}
/*menu de hamburguesa*/
/* --- MENU HAMBURGUESA Y RESPONSIVE --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: #f1b42f; }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .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;
    }
    .nav-links.active { right: 0; }
    .close-menu { display: block; position: absolute; top: 25px; right: 25px; font-size: 40px; color: #f1b42f; cursor: pointer; }
    
    .info-cards { flex-direction: column; margin-top: -30px; }
    .about-detail { flex-direction: column; text-align: center; padding: 50px 10%; }
}
/* --- 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 p {
    line-height: 1.6;
    color: #555;
}
/* --- FOOTER --- */
.simple-footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}
