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

html, body {
    min-height: 100vh;
}

body {
    background-image: url("imagen/IMG_0839.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.5;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   FUENTES PERSONALIZADAS
   ============================================ */

/* ---------- Arial Narrow Custom ---------- */
@font-face {
    font-family: 'Arial Narrow Custom';
    src: url('fuentes/arialnarrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arial Narrow Custom';
    src: url('fuentes/arialnarrow_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arial Narrow Custom';
    src: url('fuentes/arialnarrow_italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Arial Narrow Custom';
    src: url('fuentes/arialnarrow_bolditalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* ---------- Soviet ---------- */
@font-face {
    font-family: 'Soviet';
    src: url('../fuentes/Soviet2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- Barlow Condensed Light ---------- */
@font-face {
    font-family: 'Barlow Condensed Light';
    src: url('fuentes/BarlowCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   FUENTE GLOBAL FORZADA EN TODO EL SITIO
   ============================================ */
*,
*::before,
*::after,
html,
body,
div,
span,
a,
p,
h1, h2, h3, h4, h5, h6,
ul, ol, li,
table, thead, tbody, tr, th, td,
form, input, textarea, select, button,
label, fieldset, legend,
header, footer, nav, section, article, aside, main {
    font-family: 'Arial Narrow Custom', 'Barlow Condensed Light', Arial, sans-serif !important;
    color: black;
}

/* ============================================
   FUENTE SOVIET — SOLO EN PÁGINAS MARCADAS
   ============================================ */
body.fuente-soviet,
body.fuente-soviet *,
body.fuente-soviet *::before,
body.fuente-soviet *::after {
    font-family: 'Soviet', Arial, sans-serif !important;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    padding: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    background-color: white;
    border-radius: 0 0 12px 12px;
    border-bottom: 3px solid black;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar:hover,
.navbar:focus-within {
    opacity: 1;
    border-bottom: 3px solid black;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.navbar a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: red;
    transform: scale(1.1);
}

/* ============================================
   BANNER
   ============================================ */
.banner {
    height: 200px;
}

/* ============================================
   CONTENIDO
   ============================================ */
.contenido {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 15%;
    padding: 20px;
}

.sidebar a {
    display: block;
    margin: 10px 0;
    color: black;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
    transform-origin: left center;
}

.sidebar a:hover {
    color: red;
    transform: scale(1.1);
}

/* Main */
.main {
    width: 90%;
    padding: 20px;
    color: white;
}

.main h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* ============================================
   GALERÍA — miniaturas uniformes
   ============================================ */
.galeria {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.foto {
    position: relative;
    width: 20vw;
    height: 20vw;
    min-width: 100px;
    min-height: 100px;
    max-width: 250px;
    max-height: 250px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.foto:hover {
    transform: scale(1.05);
}

.foto > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ============================================
   OVERLAY (IMAGEN EXPANDIDA)
   ============================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
    box-sizing: border-box;
}

.overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* ============================================
   PÁGINA BIOGRAFÍA
   ============================================ */
.main-biografia {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    color: black;
}

.titulo-biografia {
    width: 100%;
    text-align: center;
    font-size: 2.2em;
    margin: 10px 0 30px 0;
    color: black;
}

.imagen-biografia {
    width: 30%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.texto-biografia {
    width: 60%;
    max-width: 900px;
    line-height: 1.7;
    text-align: justify;
    font-size: 1em;

    background-color: transparent;
    border: none;
    border-radius: 12px;
    padding: 30px 40px;

    color: black;
}

.texto-biografia,
.texto-biografia p,
.texto-biografia span,
.texto-biografia strong,
.texto-biografia em {
    color: black;
}

.texto-biografia p {
    margin-bottom: 1.2em;
}

.texto-biografia p:last-child {
    margin-bottom: 0;
}

/* ============================================
   PÁGINA CARPETA
   ============================================ */
.carpeta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    align-items: center;
}

.seccion-carpeta {
    position: relative;
    display: block;
    width: 90%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.seccion-carpeta > img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(1) blur(4px) contrast(1.05) brightness(0.95);
    transition: filter 0.4s ease;
    z-index: 0;
}

.seccion-carpeta:hover > img:first-child {
    filter: sepia(0) blur(0) contrast(1) brightness(1);
}

.seccion-carpeta .clasificado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.seccion-carpeta:hover .clasificado {
    opacity: 0;
}

.texto-documento {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    font-family: 'Soviet', Arial, sans-serif;
    font-size: 2em;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;

    padding: 10px 30px;
    border-radius: 6px;

    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.5);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 3;
}

.seccion-carpeta:hover .texto-documento {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================
   PÁGINA SECCIONES ALTERNADAS
   ============================================ */
.secciones {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px 0;
    color: white;
}

.seccion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
    padding: 20px 5%;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

.seccion-texto {
    flex: 1;
    line-height: 1.7;
    text-align: justify;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.seccion:hover .seccion-texto {
    opacity: 1;
}

.seccion-texto h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.seccion-imagen {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seccion-imagen img {
    width: 30vw;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ============================================
   PÁGINA PROYECTOS RECIENTES
   ============================================ */
.main-proyectos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.titulo-proyectos {
    width: 100%;
    text-align: center;
    color: black;
    font-size: 2.2em;
    margin: 10px 0 30px 0;
}

.banner-proyectos {
    display: block;
    width: 90%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-proyectos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.banner-proyectos:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.banner-proyectos:hover img {
    transform: scale(1.05);
}


/* ============================================
   PRÓXIMAMENTE — TÍTULO E IMAGEN CUADRADA
   ============================================ */
.titulo-proximamente {
    width: 100%;
    text-align: center;
    color: black;
    font-size: 2.5em;
    margin: 100px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.instagram-post {
    width: 400px;
    height: 400px;
    max-width: 90%;
    margin: 0 auto 40px auto;
    overflow: hidden;
    border-radius: 10px;
    background-color: #d4b896;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    filter: sepia(1) contrast(1.05) brightness(0.95) !important;   /* 👈 forzado */
}

@media (max-width: 600px) {
    .titulo-proximamente {
        font-size: 1.8em;
        margin: 100px 0 20px 0;
        letter-spacing: 2px;
    }

    .instagram-post {
        width: 300px;
        height: 300px;
    }
}




/* ============================================
   SECCIÓN INFO CENTRAL (reemplaza galería)
   ============================================ */
.info-central {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.info-central h2 {
    font-size: 2em;
    color: black;
    margin-bottom: 20px;
    text-align: center;
}

.info-central p {
    max-width: 800px;
    color: black;
    line-height: 1.7;
    font-size: 14px;
    text-align: justify;
}

/* ============================================
   FICHA TÉCNICA — alineada con la galería
   ============================================ */
.ficha-tecnica {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 0;      /* sin padding lateral para alinear con galería */
    margin-top: 40px;
}

.ficha-tecnica h2 {
    font-size: 2em;
    color: black;
    margin-bottom: 20px;
    text-align: left;      /* alineado con el borde izquierdo de las imágenes */
    width: 100%;
}

.ficha-tecnica p {
    width: 100%;           /* ocupa el mismo ancho que la galería */
    color: black;
    line-height: 1.7;
    font-size: 15px;
    text-align: justify !important;
}

/* ============================================
   CLASE SOVIET — TODO EL EFECTO
   ============================================ */
.soviet {
    width: 90%;
    padding: 20px;
    color: white;
}

.soviet h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.soviet .foto > img:first-child {
    filter: sepia(1) blur(4px) contrast(1.05) brightness(0.95);
    transition: filter 0.4s ease;
}

.soviet .foto .classified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.soviet .foto:hover > img:first-child {
    filter: sepia(0) blur(0) contrast(1) brightness(1);
}

.soviet .foto:hover .classified {
    opacity: 0;
}

/* ============================================
   PÁGINA CONTACTO
   ============================================ */
.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.contacto-link {
    color: black;
    text-decoration: none;
    font-size: 1.2em;
    padding: 0;
    border: none;
    background: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contacto-link:hover {
    color: red;
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================ */
@media (max-width: 900px) {
    .seccion {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .seccion-imagen img {
        width: 60vw;
    }

    .seccion-texto {
        text-align: left;
        opacity: 1;
    }

    .carpeta {
        gap: 15px;
        padding: 15px 0;
    }
}

/* ============================================
   RESPONSIVE — MÓVIL (max 600px)
   ============================================ */
@media (max-width: 600px) {

    /* Navbar responsiva */
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        opacity: 1;             /* siempre visible en móvil */
        border-bottom: 3px solid black;
    }

    .navbar a {
        font-size: 1em;
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    /* Contenido en columna */
    .contenido {
        flex-direction: column;
    }

    .sidebar,
    .main {
        width: 100%;
    }

    /* Galería más grande en móvil */
    .foto {
        width: 40vw;
        height: 40vw;
    }

    /* Biografía */
    .imagen-biografia {
        width: 80%;
    }

    .texto-biografia {
        width: 100%;
        padding: 20px;
    }

    .titulo-biografia {
        font-size: 1.8em;
    }

    /* Secciones */
    .secciones {
        gap: 40px;
        padding: 20px 0;
    }

    .seccion-imagen img {
        width: 80vw;
    }

    /* Proyectos */
    .banner-proyectos {
        height: 200px;
    }

    .titulo-proyectos {
        font-size: 1.8em;
    }

    /* Soviet */
    .soviet {
        width: 100%;
    }
}

/* ============================================
   DISPOSITIVOS SIN HOVER (táctiles)
   ============================================ */
@media (hover: none) {
    .texto-documento {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .navbar {
        opacity: 1;
        border-bottom: 3px solid black;
    }
}

/* ============================================
   BOTÓN HAMBURGUESA (oculto en desktop)
   ============================================ */
.menu-toggle {
    display: none;   /* oculto por defecto */
}

/* ============================================
   RESPONSIVE — MENÚ DESPLEGABLE EN MÓVIL
   ============================================ */
@media (max-width: 600px) {

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;

        background-color: white;
        color: black;
        border: 2px solid black;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 1.5em;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu-toggle:hover {
        background-color: black;
        color: white;
    }

    /* Navbar: oculta por defecto en móvil */
    .navbar {
        display: none;            /* 👈 oculta hasta que se pulse el botón */
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
        opacity: 1;
        border-bottom: 3px solid black;
        background-color: white;
        margin-top: 60px;         /* espacio para el botón hamburguesa */
    }

    /* Navbar cuando se activa */
    .navbar.activo {
        display: flex;
    }

    .navbar a {
        font-size: 1em;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    
    /* El contenido se adapta */
    .contenido {
        flex-direction: column;
    }

    .main {
        width: 100%;
    }
}
/* ============================================
   PÁGINA EN CONSTRUCCIÓN
   ============================================ */
.main-construccion {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 30px;
}

.imagen-construccion {
    width: 40%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.texto-construccion {
    font-size: 3em;
    color: black;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .imagen-construccion {
        width: 60%;
    }
    .texto-construccion {
        font-size: 2.5em;
    }
}

@media (max-width: 600px) {
    .imagen-construccion {
        width: 80%;
    }
    .texto-construccion {
        font-size: 2em;
        letter-spacing: 4px;
    }


}
