/* style.css */

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el footer baje si hay poco contenido */
}

/* --- VIDEO DE FONDO --- */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Un poco más oscuro para mejor lectura */
    z-index: -1;
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ccc; /* Color por defecto más suave */
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* --- CONTENIDO PRINCIPAL (Main) --- */
main {
    flex: 1; /* Empuja el footer hacia abajo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
}

/* --- GRID DE PROYECTOS --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 4px;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- FORMULARIO --- */
.contact-form {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    padding: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom: 1px solid #aaa;
}

button {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

button:hover {
    background: #e0e0e0;
}

main {
    /* Aseguramos que el contenido principal tenga suficiente altura
       para empujar el footer fuera de la pantalla inicial */
    min-height: 120vh; 
    padding-top: 80px; /* Espacio para que no se pegue al menú */
    justify-content: flex-start; /* Alineación arriba hacia abajo */
}

/* --- ESTILOS ESPECÍFICOS PARA SECCIONES DEL INDEX --- */

/* Clase común para las secciones internas del index */
.index-section {
    padding: 4rem 5%;
    margin: 2rem 0;
    max-width: 900px;
    /* Efecto cristal sutil para separar del fondo */
    background: rgba(0,0,0,0.2); 
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Estilo diferente para el primer bloque H1 */
.hero-block {
    min-height: 80vh; /* Ocupa casi toda la primera pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none; /* Sin fondo extra */
    backdrop-filter: none;
    border: none;
    margin-top: 0;
}

/* GRID DE SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 3rem;
}

.service-card {
    /* Un poco más oscuro que los proyectos para diferenciar */
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Iconos de los servicios (usando FontAwesome) */
.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff; 
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.9rem;
}

/* --- FOOTER ACTUALIZADO --- */
footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro al 50% */
    backdrop-filter: blur(5px); /* Desenfoque sutil detrás */
    padding: 3rem 5%;
    margin-top: auto; /* Asegura que se quede abajo */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Separa las 3 columnas */
    align-items: flex-start;
    flex-wrap: wrap; /* Para que se adapte a móviles */
    gap: 2rem;
}

.footer-column {
    flex: 1; /* Las 3 columnas ocupan el mismo ancho */
    min-width: 250px;
    text-align: center; /* Texto centrado como pediste */
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-column p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0 auto; /* Centrar el bloque de texto */
}

/* Iconos de Redes Sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #e0e0e0;
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
    text-decoration: none;
}

/* Créditos finales */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

