/* ============================================================================================
   project_style.css
   Estilos para las páginas de proyectos individuales (ej: proyecto_01.html)
   
   ESTRUCTURA:
   1. Variables y Reset (duplicado de style.css)
   2. Navbar (duplicado de style.css)
   3. Botón primario y gradient-text (duplicado de style.css)
   4. Footer (duplicado de style.css)
   5. Estilos exclusivos de páginas de proyecto
============================================================================================ */


/*--------------------------------------------------------------------------------------------*/
/* 1. VARIABLES Y RESET (duplicado de style.css)                                              */
/*--------------------------------------------------------------------------------------------*/
:root {
    --bg: #0f172a;
    --surface: #111827;
    --accent: #3b82f6;
    --accent2: #8b5cf6;
    --text: #e5e7eb;
}

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

/* Bloqueo de Arrastre */
img {
    -webkit-user-drag: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}


/*--------------------------------------------------------------------------------------------*/
/* 2. NAVBAR (duplicado de style.css)                                                         */
/*--------------------------------------------------------------------------------------------*/
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    position: fixed;
    width: 100%;
    background: rgba(27, 39, 65, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.1rem 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text);
}

.nav a:hover {
    color: var(--accent);
}

/* Ocultar el botón de menú en Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* RESPONSIVE: MÓVIL (Menos de 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30%;
        height: 100vh;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }
}


/*--------------------------------------------------------------------------------------------*/
/* 3. BOTÓN PRIMARIO Y GRADIENT-TEXT (duplicado de style.css)                                 */
/*--------------------------------------------------------------------------------------------*/
.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transform: scale(1);
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Sirve para todos los Títulos */
.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*--------------------------------------------------------------------------------------------*/
/* 4. FOOTER (duplicado de style.css)                                                         */
/*--------------------------------------------------------------------------------------------*/
.footer {
    background: rgba(27, 39, 65, 0.8);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content p {
    color: rgba(229, 231, 235, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}


/* ============================================================================================
   5. ESTILOS EXCLUSIVOS DE PÁGINAS DE PROYECTO
============================================================================================ */


/*--------------------------------------------------------------------------------------------*/
/* NAV SÓLIDO PARA PÁGINAS DE PROYECTO                                                        */
/*--------------------------------------------------------------------------------------------*/

/* Nav fijo en páginas de proyecto con blur activo */
.project-page .nav {
    background-color: rgba(27, 39, 65, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Espaciado para que el contenido empiece debajo del nav */
.project-page .project-detail {
    padding-top: 140px !important;
    background-color: #0f172a;
    position: relative;
    z-index: 1;
}


/*--------------------------------------------------------------------------------------------*/
/* CABECERA Y TÍTULO DEL PROYECTO                                                             */
/*--------------------------------------------------------------------------------------------*/

/* Fondo general de la página de proyecto */
.project-page {
    background-color: var(--bg);
}

.project-detail-container {
    padding-top: 160px;
    padding-bottom: 100px;
}

/* Título con degradado */
.project-detail h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    background-clip: var(--text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtítulo con degradado */
.project-detail h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    background-clip: var(--text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* Cabecera con badge */
.p-header {
    margin-bottom: 3.5rem;
}

.p-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--accent);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.p-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    font-weight: 800;
}

/*--------------------------------------------------------------------------------------------*/
/* PARA IDENTAR TEXTO                                                          */
/*--------------------------------------------------------------------------------------------*/

.indent {
    padding-left: 25px;   /* metés las filas hacia adentro */
}

/*--------------------------------------------------------------------------------------------*/
/* MODAL: HEADER, BADGE, GRID, STATS                                                          */
/*--------------------------------------------------------------------------------------------*/
.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.badge-tech {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.modal-text h4 {
    color: var(--accent2);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
}

.m-stat {
    display: flex;
    flex-direction: column;
}

.m-stat strong {
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
}

.m-stat span {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsive para el Modal */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}


/*--------------------------------------------------------------------------------------------*/
/* IMAGEN DEL MODAL                                                                           */
/*--------------------------------------------------------------------------------------------*/
.modal-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.modal-img img:hover {
    transform: scale(1.02);
}


/*--------------------------------------------------------------------------------------------*/
/* BLOQUES DE CONTENIDO DEL PROYECTO                                                          */
/*--------------------------------------------------------------------------------------------*/
.project-block {
    margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out;
}

.block-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent2);
    padding-left: 1rem;
}

/* Grilla de Galería (Responsiva) */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.img-caption {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
}

/*---------------------------------------------*/
/* CONTENEDOR DEL VIDEO
/*---------------------------------------------*/

.video-container {
    text-align: center;
}

/* Contenedor de la miniatura */
.video-thumb-wrapper {
    position: relative;
    display: inline-block;
}

/* Miniatura del video */
.video-thumb {
    width: 100%;
    max-width: 400px; /* <<< HACELA MÁS CHIQUITA ACÁ */
    border-radius: 10px;
    display: block;
    transition: transform 0.2s ease;
}

/* Botón rojo estilo YouTube */
.play-button-red {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85px;
    height: 60px;
    background: rgba(255, 0, 0, 0.85); /* rojo YouTube */
    border-radius: 12px;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Triángulo blanco */
.play-button-red::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
}

/* Hover */
.video-thumb-wrapper:hover .video-thumb {
    transform: scale(1.02);
}

.video-thumb-wrapper:hover .play-button-red {
    background: rgba(255, 0, 0, 1);
}




/* Ajustes para móviles */
@media (max-width: 768px) {
    .project-block {
        margin-bottom: 3rem;
    }
}


/*--------------------------------------------------------------------------------------------*/
/* GRILLA PRINCIPAL DEL PROYECTO (p-grid)                                                     */
/*--------------------------------------------------------------------------------------------*/
.p-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.p-subtitle {
    color: var(--accent2);
    font-size: 1.4rem;
    margin: 2rem 0 0.5rem 0;
}

.p-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* Caja de Stats */
.p-stats-box {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.p-stat-item strong {
    font-size: 2rem;
    color: #fff;
    display: block;
}

.p-stat-item span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
}

/* Imágenes */
.p-featured-img img,
.p-gallery-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.p-block-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

.p-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.p-gallery-item {
    text-align: center;
}

.p-gallery-item p {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Video Fix */
.p-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.p-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .p-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .p-featured-img {
        order: -1;
    }
}


/*--------------------------------------------------------------------------------------------*/
/* FOOTER DEL PROYECTO (botón repo)                                                           */
/*--------------------------------------------------------------------------------------------*/
.project-footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Forzar que todos los párrafos y textos descriptivos usen el peso ligero */
.modal-text p, 
.indent, 
.p-content p {
    font-weight: 50 !important; /* El !important asegura que gane la prioridad */
    color: #e5e7eb; /* Mantiene tu blanco/grisáceo suave */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Si quieres que los subtítulos h4 sigan siendo llamativos pero no tan toscos: */
.modal-text h4 {
    font-weight: 600; /* Un semibold elegante en lugar del bold pesado por defecto */
}
/* Estilos para la lista de análisis */
.tecnoherramientas-list {
    list-style-type: disc; /* Mantiene el punto tradicional */
    padding-left: 20px;    /* Espacio para que los puntos no queden fuera del contenedor */
    margin-top: 1rem;
}

.tecnoherramientas-list li {
    font-weight: 50;      /* El peso ligero que elegiste */
    line-height: 1.3;      /* Buena separación entre líneas */
    margin-bottom: 0.2rem; /* Separación sutil entre cada ítem */
    color: #e5e7eb;        /* Color del texto */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}