* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-space) + 24px);
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

:root {
    --magenta-andino: #9B1C56;
    --naranja-tierra: #D96A1D;
    --marfil-textil: #F4EBDD;
    --negro-profundo: #0E0E0E;
    --gris-volcanico: #2A2A2A;
    --header-space: 93px;
}

body {
    background:
        linear-gradient(rgba(255, 248, 240, 0.44), rgba(255, 248, 240, 0.44)),
        url("img/pexels-onurburakakin-28303412.jpg?v=20260306-1");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #1C1C1C;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-space);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: rgb(241, 0, 0);
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #f05454;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to bottom, #000, #222);
}

section {
    padding: 80px 40px;
}

.card {
    background: #1e1e1e;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.03);
    background: #292929;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f05454;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeria-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.4s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.galeria-grid img:hover {
    transform: scale(1.05);
}


/* ===== GALERÍA CENTRADA ===== */

#galeria {
    text-align: center;
}

#galeria h2 {
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 60px;
}

@media(max-width: 900px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

.redes a {
    margin: 0 10px;
    color: var(--magenta-andino);
    text-decoration: none;
}

/* RESPONSIVE */

@media(max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* ===== PROYECTOS ESTILO ARTÍSTICO ===== */

.proyectos-section {
    padding: 120px 60px;
}

.titulo-seccion {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 60px;
    letter-spacing: 4px;
    color: var(--magenta-andino);   /* 👈 título magenta */
    position: relative;
}

.titulo-seccion::after {
    content: "";
    width: 60px;
    height: 2px;
    background: var(--naranja-tierra);  /* 👈 línea tomate */
    display: block;
    margin: 15px auto 0 auto;
}

.proyecto-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;

    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: 0.4s ease;
}

.proyecto-card:hover {
    transform: translateY(-8px);
}

.proyecto-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.proyecto-card:hover img {
    transform: scale(1.1);
}

/* Overlay oscuro */

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
}

.overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* ===== TESIS DOCTORAL ESTILO PRO ===== */

.tesis-section {
    padding: 50px 40px 60px 40px; /* arriba | lados | abajo */
    text-align: center;
}

.tesis-contenido {
    max-width: 1200px;
    margin: 25px auto 0 auto;
}

.visor-pdf {
    width: 100%;
    height: 600px;
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.visor-pdf iframe {
    width: 100%;
    height: 100%;
}

.tesis-info p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ===== BOTÓN GLOBAL ===== */

.btn-global {
    display: inline-block;
    padding: 14px 35px;
    border: 1.5px solid var(--magenta-andino);
    background: transparent;
    color: var(--magenta-andino);
    border-radius: 30px;
    letter-spacing: 2px;
    text-decoration: none;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-global:hover {
    background: var(--magenta-andino);
    color: white;
}

/* Responsive tesis */

@media(max-width: 768px) {
    .visor-pdf {
        height: 400px;
    }
}

/* ===== REPOSITORIO DE SABERES ===== */

.repositorio-section {
    padding: 100px 40px;
    text-align: center;
}

.repositorio-subtitulo {
    margin-top: 10px;
    margin-bottom: 50px;
    font-size: 1.18rem;
    opacity: 0.85;
}

.repositorio-subtitulo{
max-width:920px;
margin: 10px auto 50px auto;
line-height:1.85;
}

.repositorio-preview {
    max-width: 1280px;
    margin: auto;
}

/* Galería repositorio */

.media-placeholder {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
        radial-gradient(circle at 18% 20%, rgba(155, 28, 86, 0.18), transparent 42%),
        radial-gradient(circle at 82% 82%, rgba(217, 106, 29, 0.16), transparent 42%);
    box-shadow:
        0 22px 46px rgba(14, 14, 14, 0.09),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62),
        inset 0 0 0 2px rgba(155, 28, 86, 0.1);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.media-placeholder::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.media-placeholder::after {
    content: "";
    position: absolute;
    inset: auto 12% 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    opacity: 0.65;
}

.media-placeholder:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 54px rgba(14, 14, 14, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.68),
        inset 0 0 0 2px rgba(155, 28, 86, 0.14);
}

.audio-placeholder {
    position: relative;
    width: min(100%, 360px);
    min-height: 198px;
    padding: 22px 22px 24px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at top right, rgba(217, 106, 29, 0.1), transparent 38%);
    color: var(--gris-volcanico);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    box-shadow:
        0 20px 40px rgba(14, 14, 14, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.56),
        inset 0 0 0 2px rgba(155, 28, 86, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.audio-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 42%);
    pointer-events: none;
}

.audio-placeholder:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 50px rgba(14, 14, 14, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62),
        inset 0 0 0 2px rgba(155, 28, 86, 0.12);
}

.audio-placeholder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.audio-placeholder-label,
.audio-placeholder-status,
.audio-duration {
    position: relative;
    z-index: 1;
}

.audio-placeholder-label {
    font-size: 0.84rem;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--magenta-andino);
}

.audio-placeholder-status {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(155, 28, 86, 0.08);
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--magenta-andino);
}

.audio-wave {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    align-items: end;
    gap: 8px;
    min-height: 92px;
}

.audio-wave span {
    display: block;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(155, 28, 86, 0.9), rgba(217, 106, 29, 0.56));
    opacity: 0.82;
}

.audio-wave span:nth-child(1),
.audio-wave span:nth-child(9) { height: 22px; }
.audio-wave span:nth-child(2),
.audio-wave span:nth-child(13) { height: 58px; }
.audio-wave span:nth-child(3),
.audio-wave span:nth-child(11) { height: 38px; }
.audio-wave span:nth-child(4),
.audio-wave span:nth-child(15) { height: 72px; }
.audio-wave span:nth-child(5),
.audio-wave span:nth-child(10) { height: 30px; }
.audio-wave span:nth-child(6),
.audio-wave span:nth-child(14) { height: 64px; }
.audio-wave span:nth-child(7),
.audio-wave span:nth-child(16) { height: 42px; }
.audio-wave span:nth-child(8),
.audio-wave span:nth-child(12) { height: 84px; }

.audio-placeholder-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audio-duration {
    font-size: 0.86rem;
    letter-spacing: 2px;
    color: rgba(42, 42, 42, 0.58);
}

.audio-play-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(155, 28, 86, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    flex-shrink: 0;
}

.audio-play-placeholder::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid var(--magenta-andino);
}

.repositorio-cierre {
    max-width: 760px;
    opacity: 0.84;
}

.repositorio-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 46px;
}

.repositorio-galeria img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.5s ease;
}

.repositorio-galeria img:hover {
    transform: scale(1.05);
}

/* Audios */

.repositorio-audios {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-bottom: 50px;
}

.repositorio-audios audio {
    width: 260px;
    border-radius: 20px;
}

.repositorio-audios-resumen {
    margin-bottom: 20px;
}

.repositorio-detalle-section {
    padding-top: 95px;
    padding-bottom: 95px;
}

.repositorio-detalle-section--compact {
    padding-top: 40px;
    padding-bottom: 90px;
}

.repositorio-subtitulo-detalle {
    max-width: 760px;
    margin-bottom: 42px;
}

/* Responsive */

@media(max-width: 900px) {
    .repositorio-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .repositorio-audios {
        flex-direction: column;
        align-items: center;
    }
}

@media(max-width: 600px) {
    .repositorio-galeria {
        grid-template-columns: 1fr;
    }
}

/* ===== TRAYECTORIA ===== */

.trayectoria-section {
    padding: 100px 49px;
    text-align: center;
}

.trayectoria-subtitulo {
    margin-top: 10px;
    margin-bottom: 60px;
    font-size: 1.1rem;
    opacity: 0.85;
}

.trayectoria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.trayectoria-card {
    padding: 50px 30px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: 0.4s ease;
    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.trayectoria-card:hover {
    transform: translateY(-10px);
    border-color: white;
}

.trayectoria-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Responsive */

@media(max-width: 900px) {
    .trayectoria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .trayectoria-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HEADER MODERNO ===== */

.main-header {
    background: var(--negro-profundo);
    padding: 20px 60px;
    transition: transform 0.35s ease;
    position: fixed;   /* 👈 lo fija */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;     /* 👈 asegura que esté encima */
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.main-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--magenta-andino);
}

.header-container {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo span {
    color: var(--marfil-textil);
}

.linea1 {
    letter-spacing: 2px;
}

.linea2 {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-top: 2px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

.nav-links li {
    margin: 0;
}

.logo {
    justify-self: start;
}

nav {
    justify-self: center;
}

.social-icons {
    justify-self: end;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--marfil-textil);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--magenta-andino);
}

.nav-links a:hover {
    color: var(--magenta-andino);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--marfil-textil);
    transition: 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1rem;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: var(--magenta-andino);
    transform: translateY(-3px);
}

/* Responsive */

@media(max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* ===== FOOTER PROFESIONAL COMPLETO ===== */

.footer{

    background:black;

    padding: 10px 40px 60px;

    color:white;

    border-top: 3px solid var(--magenta-andino);

}

.footer-container{

    max-width:1100px;

    margin:auto;

    text-align:center;

}

.footer-brand h2{

    font-family:'Cormorant Garamond', serif;

    font-size:2rem;

    letter-spacing:3px;

    margin-top: 40px;
    margin-bottom:10px;

}

.footer-brand p{

    opacity:0.7;

    margin-bottom:25px;

}

.footer-contacto{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:6px;

    margin-bottom:25px;

}

.footer-contacto a{

    color:white;

    text-decoration:none;

    display:flex;

    align-items:center;

    gap:10px;

    font-size:1rem;

    opacity:0.8;

    transition:0.3s;

}

.footer-contacto a:hover{

    opacity:1;

}

.footer-contacto a:first-child{

    position:relative;
    padding-top:50px;

}

.footer-contacto a:first-child::before{

    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);

    width:120px;
    height:3px;

    background:var(--magenta-andino);

}

.footer-redes{

    display:flex;

    justify-content:center;

    gap:18px;

    margin-bottom:15px;

}

.footer-redes a{

    color: white;

    font-size:1.5rem;

    opacity:0.8;

    transition:0.3s;

}

.footer-redes a:hover{

    opacity:1;

    transform:translateY(-3px);

    color: var(--magenta-andino);

}

.footer-copy{

    font-size:0.8rem;

    opacity:0.5;

    letter-spacing:2px;

}

/* RESPONSIVE */

@media (max-width: 768px) {
    .footer-contenido {
        flex-direction: column;
        gap: 40px;
    }
}

/* ===== HERO LAYOUT HORIZONTAL ===== */

.hero-section {
    min-height: calc(100vh + var(--header-space));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-space) 84px 0;
    position: relative;
    margin-top: calc(var(--header-space) * -1);

    background:
        linear-gradient(100deg, rgba(5, 7, 9, 0.76), rgba(5, 7, 9, 0.52) 48%, rgba(5, 7, 9, 0.62)),
        url("img/pexels-onurburakakin-28303412.jpg?v=20260306-1");

    background-size: cover;
    background-position: center;
}

.hero-contenido{
display:grid;
grid-template-columns:minmax(0, 1.1fr) minmax(320px, 430px);
align-items:center;
gap:68px;
max-width:1260px;
margin:auto;
padding:88px 40px 108px;
}

/* TEXTO */

.hero-texto{
max-width:640px;
}

.hero-texto h1{
font-family:'Cormorant Garamond', serif;
font-size:clamp(3rem, 4.8vw, 4.2rem);
font-weight:600;
letter-spacing:2px;
margin-bottom:14px;
color: rgb(255, 255, 255);
}

.hero-subtitulo{
font-family:'Montserrat', sans-serif;
font-size:clamp(0.88rem, 1vw, 0.98rem);
letter-spacing:3.2px;
text-transform:uppercase;
color:#c9c9c9;
margin-bottom:28px;
line-height:1.7;
max-width:34ch;
}

.hero-subtitulo::after{
content:"";
display:block;
width:64px;
height:3px;
background: var(--naranja-tierra);
margin-top:14px;
}

.hero-descripcion{
max-width:620px;
line-height:1.82;
font-size:clamp(1rem, 1.18vw, 1.18rem);
color:#ffffff;
text-wrap:pretty;
}

/* FOTO */

.hero-foto {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-foto img{
width:min(27vw, 390px);
height:min(27vw, 390px);
object-fit:cover;
border-radius:50%;
border:3px solid rgba(255,255,255,0.38);
box-shadow:0 22px 58px rgba(0,0,0,0.42);
}

/* FLECHA */

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: white;
    animation: bounce 2s infinite;
    transition: 0.3s;
}

.scroll-down:hover {
    color: var(--magenta-andino);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, 8px); }
    60% { transform: translate(-50%, 4px); }
}

/* RESPONSIVE */

@media(max-width: 900px) {
    .hero-contenido {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 54px 20px 72px;
        text-align: center;
    }

    .hero-texto {
        max-width: none;
    }

    .hero-descripcion {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-subtitulo::after {
        margin: 14px auto 0;
    }

    .hero-foto img {
        width: min(320px, 76vw);
        height: min(320px, 76vw);
    }
}

/* ===== MEJORAS RESPONSIVE GENERALES ===== */

@media (max-width: 768px) {

    /* Hero */
    .hero-section {
        padding: calc(var(--header-space) + 12px) 20px 28px;
        min-height: auto;
    }

    .hero-texto h1 {
        font-size: 2.7rem;
    }

    .hero-descripcion {
        font-size: 1rem;
    }

    /* Secciones generales */
    section {
        padding: 52px 18px;
    }

    /* Proyectos imagen más pequeña */
    .proyecto-card img {
        height: 260px;
    }

    /* Repositorio audios más flexibles */
    .repositorio-audios audio {
        width: 100%;
        max-width: 300px;
    }

    /* Trayectoria columnas */
    .trayectoria-grid {
        grid-template-columns: 1fr;
    }

    /* Header más compacto */
    .main-header {
        padding: 13px 18px;
    }

}

/* ===== ESTÉTICA GENERAL VIDRIO ANDINO ===== */

section {
    margin: 80px auto;
    max-width: 1200px;
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-section {
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.floating-buttons{
  position: fixed;
  bottom: 30px;
  width: 100%;
  pointer-events: none;
}

/* BOTON SUBIR */
.btn-up{
  position: fixed;
  right: 50px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  background: white;
  color: var(--gris-volcanico);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  pointer-events: auto;
  transition: transform 0.3s;
  opacity: 0.6;
}

/* BOTON WHATSAPP */
.btn-whatsapp{
  position: fixed;
  left: 50px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  background: white;
  color: var(--gris-volcanico);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  pointer-events: auto;
  transition: transform 0.3s;
  opacity: 0.6;
}

/* HOVER */
.btn-up:hover,
.btn-whatsapp:hover{
  transform: scale(1.15);
}

/* ===== MODAL VIDEO ===== */

.video-modal{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.85);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:2000;
}

.video-contenido {

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

}

.video-contenido iframe,
.video-contenido video {

    width: 900px;
    max-width: 90vw;

    aspect-ratio: 16/9;

    border-radius: 18px;

}

#videoLocal {
    width: 900px;
    max-width: 90%;
    border-radius: 18px;
}

.cerrar-video{
    position:absolute;
    top: -60px;
    right:0;
    font-size:40px;
    color:white;
    background: transparent;
    border: none;
    line-height: 1;
    cursor:pointer;
}

.btn-proyecto{

border:2px solid var(--magenta-andino);
color:var(--marfil-textil);
background: transparent;

padding:12px 34px;
border-radius:40px;

text-decoration:none;
font: inherit;
text-align: center;
cursor: pointer;

transition:0.3s;

}

.btn-proyecto:hover{

background:var(--magenta-andino);
color:var(--marfil-textil);

}

.btn-obra{

background: #9B1C56;
color: #F4EBDD;

padding:12px 24px;
border-radius:8px;

text-decoration:none;
display:inline-block;

font-family:'Montserrat', sans-serif;
font-size:15px;

transition:0.3s;

}

.btn-obra:hover{

background:#ffffff;

}

.img-obra{

width:350px;
border-radius:10px;
margin: 50px auto;
display:block;

}

.texto-obra{

max-width:1012px;
line-height:1.8;
font-size:16px;

margin:auto;
text-align:center;

}

.boton-ver-obra{
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid #a02a5e;
    background: transparent;
    border-radius: 40px;
    color: #a02a5e;
    text-decoration: none;
    font: inherit;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-ver-obra:hover{
    background:#a02a5e;
    color:rgb(255, 255, 255);
}

.boton-desactivado {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.botones{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* espacio entre botones */
    margin-top: 45px;

}

section h2{

text-align: center;
font-size: 44px;

margin-top: 40px;
margin-bottom: 30px;

font-weight: 100;
letter-spacing: 2px;

color: var(--magenta-andino);

}

.header-secundario{
    background:black;
    padding:25px 40px;

    display:flex;
    justify-content:center;
    align-items:center;

    position:relative;

    border-bottom:3px solid var(--magenta-andino);
}

/* MISMO LOGO DEL HEADER PRINCIPAL */

.header-secundario .logo{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: white;
}

/* BOTON VOLVER */

.volver{
    position:absolute;
    left:40px;

    color:rgb(255, 255, 255);
    text-decoration:none;
    font-family:'Montserrat', sans-serif;
    font-size: 1.1rem;

    opacity:0.8;
    transition:0.3s;
}

.volver:hover{
    color:var(--magenta-andino);
    opacity:1;
}

.header-secundario{
    position:sticky;
    top:0;
    z-index:1000;
}

/* ===== HEADER SECUNDARIO ===== */

.header-secundario{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--negro-profundo);
    border-bottom: none;
    z-index: 1000;
    overflow: hidden;
}

.header-secundario::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    background: var(--magenta-andino);
}

/* botón volver */

.volver{
    position: absolute;
    left: 40px;
    display: inline-flex;
    align-items: center;

    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;

    text-decoration: none;
    color: white;

    letter-spacing: 1.5px;

    transition: color 0.3s ease;
}

.volver::after{
    content:"";
    position:absolute;
    left:1.9em;
    right:0;
    bottom:-8px;
    width:auto;
    height:2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin:right center;
    transition: transform 0.3s ease;
}

.volver:hover{
    color: var(--magenta-andino);
}

.volver:hover::after{
    transform: scaleX(1);
}

/* titulo */

.header-secundario .logo{
    font-family:'Montserrat', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

#proyectos,
#tesis,
#repositorio,
#trayectoria,
#galeria {
    scroll-margin-top: 120px;
}

/* ================================= */
/* RESPONSIVE GENERAL */
/* ================================= */

@media (max-width: 900px){

:root{
--header-space: 155px;
}

/* HEADER */

.header-container{
display:flex;
flex-direction:column;
gap:12px;
text-align:center;
}

.logo{
align-items:center;
}

.linea1{
font-size:1.7rem;
letter-spacing:1.5px;
}

.linea2{
font-size:0.95rem;
letter-spacing:2.2px;
}

.nav-links{
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
gap:10px 16px;
}

.nav-links li{
margin:0;
}

.nav-links a{
font-size:0.86rem;
letter-spacing:0.7px;
}

.social-icons{
display:none;
}

/* HERO */

.hero-section{
padding: calc(var(--header-space) + 10px) 22px 32px;
min-height: auto;
}

.hero-contenido{
grid-template-columns:1fr;
gap:28px;
text-align:center;
padding:24px 0 18px;
}

.hero-texto h1{
font-size:2.2rem;
}

.hero-subtitulo{
font-size:0.8rem;
letter-spacing:2.4px;
line-height:1.55;
margin-bottom:20px;
max-width:none;
}

.hero-descripcion{
font-size:0.96rem;
line-height:1.72;
}

.hero-foto img{
width:min(236px, 62vw);
height:min(236px, 62vw);
margin:auto;
}

/* TITULOS */

.titulo-seccion{
font-size:2.05rem;
letter-spacing:2px;
margin-bottom:38px;
}

/* PROYECTOS */

.proyectos-section{
padding:62px 20px;
}

.proyecto-card img{
height:240px;
}

.overlay{
padding:18px;
}

.overlay h3{
font-size:1.28rem;
margin-bottom:6px;
}

.overlay p{
font-size:0.82rem;
line-height:1.58;
}

/* TESIS */

.tesis-section{
padding:52px 20px;
}

.tesis-info p{
font-size:0.95rem;
line-height:1.72;
}

/* REPOSITORIO */

.repositorio-section{
padding:62px 20px;
}

.repositorio-galeria{
grid-template-columns:repeat(2, 1fr);
gap:16px;
}

.repositorio-audios{
flex-direction:column;
gap:14px;
}

.audio-placeholder{
width:100%;
max-width:420px;
min-height:176px;
}

/* TRAYECTORIA */

.trayectoria-section{
padding:62px 20px;
}

.trayectoria-subtitulo{
font-size:0.95rem;
line-height:1.72;
margin-bottom:34px;
}

.trayectoria-grid{
grid-template-columns:1fr;
gap:18px;
}

.trayectoria-card{
min-height:156px;
padding:26px 18px;
}

.trayectoria-card h3{
font-size:1.12rem;
margin-bottom:18px;
}

/* GALERIA */

.galeria-grid{
grid-template-columns:repeat(2, 1fr);
gap:14px;
}

.galeria-grid img{
height:210px;
}

/* FOOTER */

.footer{
padding:18px 20px 42px;
}

.footer-brand h2{
font-size:1.36rem;
}

.footer-brand p,
.footer-contacto a{
font-size:0.92rem;
}

/* BOTONES FLOTANTES */

.floating-buttons{
width:auto;
}

.btn-up{
right:20px;
bottom:20px;
width:48px;
height:48px;
font-size:18px;
}

.btn-whatsapp{
left:20px;
bottom:20px;
width:48px;
height:48px;
font-size:20px;
}

}

/* ================================= */
/* MÓVILES PEQUEÑOS */
/* ================================= */

@media (max-width: 480px){

:root{
--header-space: 138px;
}

.main-header{
padding:10px 14px;
}

.header-container{
gap:10px;
}

.linea1{
font-size:1.32rem;
}

.linea2{
font-size:0.78rem;
letter-spacing:1.6px;
}

.nav-links{
gap:8px 12px;
}

.nav-links a{
font-size:0.78rem;
}

.hero-texto h1{
font-size:2rem;
margin-bottom:10px;
}

.hero-subtitulo{
font-size:0.74rem;
letter-spacing:1.9px;
margin-bottom:16px;
}

.hero-subtitulo::after{
width:48px;
margin-top:12px;
}

.hero-descripcion{
font-size:0.9rem;
line-height:1.68;
}

.hero-foto img{
width:min(210px, 58vw);
height:min(210px, 58vw);
}

section{
padding:42px 14px;
}

.titulo-seccion{
font-size:1.72rem;
margin-bottom:28px;
}

.overlay h3{
font-size:1.08rem;
}

.overlay p{
font-size:0.76rem;
line-height:1.5;
}

.proyecto-card img{
height:220px;
}

.btn-global,
.btn-proyecto,
.boton-ver-obra{
padding:12px 24px;
font-size:0.86rem;
letter-spacing:1.4px;
}

.repositorio-galeria{
grid-template-columns:1fr;
gap:14px;
}

.audio-placeholder{
min-height:160px;
padding:18px 18px 20px;
border-radius:24px;
}

.audio-wave{
gap:5px;
min-height:68px;
}

.audio-play-placeholder{
width:46px;
height:46px;
}

.trayectoria-subtitulo,
.repositorio-subtitulo,
.tesis-info p,
.texto-obra{
font-size:0.9rem;
line-height:1.66;
}

.trayectoria-card{
padding:22px 16px;
min-height:144px;
}

.galeria-grid img{
height:190px;
}

.footer-contacto a{
font-size:0.84rem;
}

.galeria-grid{
grid-template-columns:1fr;
}

}

@media (max-width: 768px) and (orientation: portrait){

.hero-section{
padding: calc(var(--header-space) + 6px) 18px 24px;
}

.hero-contenido{
gap:22px;
padding:6px 0 10px;
}

.proyecto-card{
display:flex;
flex-direction:column;
}

.proyecto-card img,
.galeria-grid img,
.repositorio-galeria img,
.img-obra{
height:auto;
object-fit:contain;
}

.overlay{
position:static;
padding:18px 16px 22px;
background: linear-gradient(180deg, rgba(14, 14, 14, 0.16), rgba(14, 14, 14, 0.92) 18%);
}

.overlay h3{
font-size:1.16rem;
}

.overlay p{
font-size:0.8rem;
line-height:1.6;
margin-bottom:16px;
}

#galeria h2{
font-size:clamp(1.72rem, 7vw, 2.05rem);
letter-spacing:2px;
margin-bottom:28px;
}

.img-obra{
width:min(100%, 350px);
}

.header-secundario{
height:auto;
min-height:90px;
padding:16px 16px 14px;
flex-direction:column;
gap:8px;
}

.volver{
position:relative;
left:auto;
align-self:flex-start;
font-size:0.88rem;
}

.volver::after{
left:0;
}

.header-secundario .logo{
max-width:100%;
padding:0 8px;
text-align:center;
font-size:clamp(0.96rem, 4.6vw, 1.15rem);
line-height:1.35;
letter-spacing:1.2px;
}

}
