/* ===================================================================
 *  estilos.css
 *  Estilos globales, tipografía y componentes comunes a todo el sitio.
 * =================================================================== */
:root {
    --azul: #011954;
}
/* --- Configuración Base y Tipografía --- */
body {
    color: #555;
    line-height: 1.65;
}
.font--jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    color: #333;
}

/* --- Preloader (Componente Global) --- */
#preloader {
    position: fixed; left: 0; top: 0; z-index: 9999;
    width: 100%; height: 100%;
    background-color: #ffffff;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    perspective: 800px;
}
body.loaded #preloader {
    opacity: 0; visibility: hidden;
}
#preloader img {
    width: 100px;
    animation: flip-3d 2.5s ease-in-out infinite;
}
@keyframes flip-3d {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* --- Footer (Diseño Original del Tema - ACTUALIZADO) --- */
.footer {
    background-color: #f5f5f5;
    color: #555;
}
.pt-100 {
    padding-top: 100px;
}
#main-footer .footer-logo {
    max-height: 60px;
}
.footer-socials {
    list-style: none; padding: 0; margin: 0; text-align: right;
}
.footer-socials li {
    display: inline-block; margin-left: 10px;
}
.footer-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background-color: #e0e0e0; color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    /* CAMBIO: Eliminar subrayado de los íconos del footer */
    text-decoration: none;
}
.footer-socials a:hover {
    background-color: #011954; color: #fff;
    text-decoration: none; /* Asegura que no haya subrayado en hover */
}
#main-footer hr {
    border-color: #e0e0e0; margin-top: 50px; margin-bottom: 30px;
}
.bottom-footer {
    padding-bottom: 30px;
}
.footer-contact, .copyright-text {
    font-size: 0.9rem; color: #777;
}
.footer-contact a {
    color: #777; text-decoration: none; transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: #011954;
}

/* ===================================================================
 *  Componente: Tarjeta de Proyecto Detallada (v2)
 * =================================================================== */

 .project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el contenido crezca */
}

.project-info {
    flex-grow: 1; /* Empuja el meta hacia abajo */
}
.project-info span {
    font-weight: 700;
    text-decoration: underline;
    text-transform: uppercase;
    display: block;
}
.project-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.project-title a {
    text-decoration: none;
    color: var(--azul);
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--azul);
}

.project-client {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 15px;
}

.project-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: justify;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: auto;
}

.project-location, .project-year {
    font-size: 0.9rem;
    color: #6c757d;
}

.project-location i, .project-year i {
    margin-right: 5px;
    color: var(--azul);
}

.project-investment {
    background-color: #e8f5e9;
    padding: 8px 15px;
    text-align: center;
    font-weight: 700;
    color: #28a745;
    border-top: 1px solid #d0e9c6;
}

.project-investment span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
textarea {
    resize: none;
  }