:root {
    --celeste: #0089da;
    --blanco: #FFFFFF;
    --dorado: #F6B40E;
    --oscuro: #121212;
    --gris-claro: #f8f9fa;
    --gris-borde: #dddddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--blanco); color: var(--oscuro); line-height: 1.6; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 2.5rem 5%; background: transparent; transition: 0.4s ease;
}
.navbar.nav-active {
    background-color: var(--blanco); padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo-img { height: 50px; transition: 0.4s; filter: brightness(0) invert(1); }
.nav-active .logo-img { filter: none; }
.nav-links a {
    text-decoration: none; color: var(--blanco); font-weight: 600; margin-left: 1.8rem;
    text-transform: uppercase; font-size: 0.75rem; transition: 0.3s;
}
.nav-active .nav-links a { color: var(--oscuro); }
.btn-contacto { border: 1.5px solid var(--blanco); padding: 0.5rem 1.2rem; border-radius: 50px; }
.nav-active .btn-contacto { border-color: var(--celeste); color: var(--celeste) !important; }

/* HERO */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('fondo.jpg') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 2; color: white; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.2; font-weight: 700; }
.hero h1 span { color: var(--celeste); }
.bandera-detalle { height: 5px; width: 80px; background: var(--celeste); margin: 2.5rem auto; position: relative; }
.bandera-detalle::after { content: ''; position: absolute; left: 90px; height: 5px; width: 30px; background: var(--dorado); }

/* NOSOTROS */
.section-nosotros {
    position: relative; padding: 120px 10%;
    background: url('nosotros.jpg') no-repeat center center/cover; background-attachment: fixed;
}
.nosotros-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1; }
.nosotros-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.text-p { margin-bottom: 1rem; font-size: 1.1rem; }
.white-text { color: var(--blanco); }
.nosotros-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 30px; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.gallery-item p { font-size: 0.8rem; color: var(--blanco); text-align: center; margin-top: 10px; }

/* TECNOLOGÍA */
.section-tecnologia { padding: 100px 10%; background-color: var(--gris-claro); }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; text-transform: uppercase; }
.section-title span { color: var(--celeste); }
.tec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 1200px; margin: 0 auto; }
.tec-main-img { width: 100%; border-radius: 8px; }
.tec-info-card { background: var(--blanco); padding: 40px; border-radius: 8px; border-left: 5px solid var(--celeste); }
.tec-list { list-style: none; margin-top: 20px; }
.tec-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.tec-list li::before { content: '•'; color: var(--celeste); position: absolute; left: 0; font-weight: bold; }

.tec-gallery { display: flex; gap: 20px; margin-top: 50px; align-items: center; }
.tec-gallery .gallery-item { flex: 1; }
.tec-gallery .gallery-item-center { flex: 2; }
.tec-gallery img { width: 100%; border-radius: 4px; }

/* Ajuste de color y centrado para la frase de tecnología */
.tec-footer-title {
    text-align: center !important;
    margin: 60px auto 40px !important;
    display: block !important;
}

.frase-celeste {
    color: #0089da !important; /* El azul/celeste definido */
    font-size: 1.6rem;
    line-height: 1.3;
    text-transform: none !important; /* Mantiene el texto tal cual lo escribiste */
}

/* SECCIÓN SUSTENTABILIDAD PASO A PASO */
.section-sustentabilidad {
    position: relative;
    padding: 120px 10%;
    background: url('canchita.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Efecto de profundidad */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscurece un poco la foto para leer mejor */
    z-index: 1;
}

.sust-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.white-text {
    color: var(--blanco) !important;
}

.sust-texto-central {
    margin-top: 40px;
    color: var(--blanco);
}

.sust-texto-central p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

/* SECCIÓN EQUIPO */
.section-equipo {
    padding: 100px 10%;
    background-color: #0089da; /* El azul/celeste definido */
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 30px;
    margin-top: 50px;
}

.equipo-item {
    text-align: center;
}

.equipo-item img {
    width: 80%;
    aspect-ratio: 1/1; /* Mantiene las fotos cuadradas y alineadas */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Un sutil borde blanco */
}

.equipo-info h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.equipo-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Ajuste para móviles */
@media (max-width: 992px) {
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .equipo-grid {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN CONTACTO - ESTILO TECNOLOGÍA */
.section-contacto {
    padding: 100px 10%;
    background-color: var(--blanco);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.contacto-subtitle {
    font-size: 1.5rem;
    color: var(--oscuro);
    margin-bottom: 20px;
}

.contacto-text {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.dato-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--oscuro);
}

.dato-item strong {
    color: var(--oscuro);
}

.dato-item a {
    color: #0089da;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.dato-item a:hover {
    color: #005a8e;
}

/* ESTILO DEL FORMULARIO */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form input, 
.contacto-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--gris-borde);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.contacto-form input:focus, 
.contacto-form textarea:focus {
    border-color: #0089da;
}

.btn-enviar {
    background-color: #0089da;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-enviar:hover {
    background-color: #0072b5;
}

.btn-enviar:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* RESPONSIVO CONTACTO */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-contacto {
        padding: 60px 5%;
    }
}

/* FOOTER */
.main-footer { background-color: var(--blanco); padding: 40px 5%; border-top: 1px solid var(--gris-borde); }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.footer-mail { text-decoration: none; color: var(--celeste); font-weight: 600; }
.footer-logo { height: 30px; order: 3; }