/* ----- FUENTES Y RESETEO ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* ----- HEADER ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
}
header img {
    height: 45px;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #4dd0e1;
}
.menu-toggle {
    display: none;
}

/* ----- HERO ----- */
.hero-section {
    background: url('assets/images/hero-bg.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.7);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #fff;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.btn-primary {
    background: #4dd0e1;
    color: #0d1b2a;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: #3cbac9;
}

/* ----- SECCIONES GENERALES ----- */
section {
    padding: 100px 20px;
}
.content {
    max-width: 1100px;
    margin: auto;
}
h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #0d1b2a;
}
p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
ul.feature-list {
    list-style: none;
    padding-left: 0;
}
ul.feature-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8rem;
}
ul.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #4dd0e1;
    font-weight: bold;
}

/* ----- SECCIONES ALTERNAS ----- */
.alt-bg {
    background: #f4f8fb;
}

/* ----- ANIMACIONES DE APARICIÓN ----- */
.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----- APARTADO PROYECTO ----- */
.proyecto-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.proyecto-texto {
    flex: 1 1 500px;
    min-width: 300px;
}

.proyecto-imagen {
    flex: 1 1 400px;
    min-width: 300px;
    text-align: center;
}

.proyecto-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ----- FOOTER ----- */
footer {
    text-align: center;
    background: #0d1b2a;
    color: #fff;
    padding: 1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: rgba(13, 27, 42, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
        padding: 1rem;
    }
    nav ul.show {
        display: block;
    }
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Contenedor flex para Contacto */
.contacto-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contacto-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #0d1b2a;
}

.contacto-info .icono {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contacto-info a {
    color: #4dd0e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-info a:hover {
    color: #3cbac9;
}

/* Mapa ocupa mínimo 300px y hasta 50% */
.contacto-mapa {
    flex: 1 1 300px;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos para Financiado */
.financiado {
    margin-top: 3rem;
    text-align: center;
}

.financiado h3 {
    font-size: 1.8rem;
    color: #0d1b2a;
    margin-bottom: 1rem;
}

.financiado img {
    max-width: 850px;
    width: 100%;
    height: auto;
}

.logo-ctme {
    text-align: center;
    margin-top: 2rem;
}

.logo-ctme img {
    max-width: 250px; /* Ajusta según necesites */
    width: 100%;
    height: auto;
}