/* =======================
   ESTILOS GENERALES
======================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: linear-gradient(to top right, #ffffff 0%, #a0d8f1 100%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* =======================
   BANNER
======================= */
.banner-container {
    width: 100%;
    height: 20vh;
    background-color: #101010;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-container img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    border-radius: 1%;
}

/* =======================
   MENÚ DE PESTAÑAS
======================= */
nav#menuPestañas {
    position: relative;
    width: 100%;
    background: #1f1f1f;
}

nav#menuPestañas .tabs {
    display: flex;
    justify-content: center;
    position: relative;
}

nav#menuPestañas .tab {
    padding: 1% 2%;
    color: white;
    text-decoration: none;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
}

nav#menuPestañas .tab:hover {
    background: #3a3a3a;
    border-radius: 5px;
}

nav#menuPestañas .indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #fff;
    width: 0;
    left: 0;
    transition: left 0.3s, width 0.3s;
}

/* =======================
   SECCIONES
======================= */
.main {
    width: 90%;
    margin: 2% auto;
    display: flex;
    flex-direction: column;
    gap: 3%;
    flex: 1; /* Para que ocupe todo el espacio disponible */
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
}

/* Feed de proyectos */
.feed {
    display: flex;
    flex-direction: column;
    gap: 2%;
}

.post h2 {
    margin: 0 0 1% 0;
    font-size: 2em;
}

.post p {
    margin: 0;
    font-size: 1.2em;
}

/* =======================
   IMÁGENES LIBRES EN %
======================= */
.img-libre { /*contactos*/
    position: relative;
    width: 30%;
    margin: 2% auto;
    height: auto;
}
.img-derecha {
    float: right;
    width: 25%;           /* Anchura relativa */
    max-width: 20vw;      /* Para que no se haga gigante en pantallas grandes */
    margin: 0 2% 1.5em 2%; /* Márgenes relativos */
    border-radius: 0.5rem; /* Bordes redondeados */
}

#inicio p {
    line-height: 1.8em;
    margin-bottom: 1.5em;
}

#inicio h2 {
    margin-top: 2em;
    font-size: 1.6em;
    color: #101010;
    border-left: 0.5em solid #1f1f1f;
    padding-left: 0.5em;
}


/* =======================
   FOOTER ABAJO DEL TODO
======================= */
footer {
    text-align: center;
    padding: 1% 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.9em;
}
