/* ==========================================================
   VARIABLES Y CONFIGURACIÓN BASE (VN14 BRUTALISTA)
   ========================================================== */
:root {
    --bg-color: #f9f8f6;       /* Fondo crema/hueso premium */
    --text-color: #121212;     /* Negro pleno tipográfico de imprenta */
    --accent-clean: #7a7874;   /* Gris de tono medio para datos técnicos */
    --pop-michelle: #ff007f;   /* Fucsia/Magenta neón */
    --pop-rocio: #ff3333;      /* Rojo vibrante para Rocío */
    --pop-valen: #ffcc00;      /* Amarillo pleno para Valentina */
    --border-color: #121212;
    --font-block: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-block);
    letter-spacing: -0.04em;
    line-height: 1.1;
    padding: 3vw;
    overflow-x: hidden;
    cursor: none; /* Inversión personalizada activa */
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

/* ==========================================================
   CURSOR INTERACTIVO DE INVERSIÓN (DIFFERENCE BLOCK)
   ========================================================== */
#custom-cursor {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    display: block;
    border: 0px solid transparent;
    border-radius: 0% !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s, border-radius 0.2s, background-color 0.2s, border 0.2s;
}

/* MUTACIONES DEL CURSOR CON MÁXIMA ESPECIFICIDAD */
#custom-cursor.star-shape {
    width: 70px !important;
    height: 70px !important;
    border-radius: 0% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.787 1.4 8.168L12 18.896l-7.334 3.857 1.4-8.168L.132 9.21l8.2-1.192z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

#custom-cursor.circle-shape {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 3px solid #ffffff !important; 
}

#custom-cursor.diamond-shape {
    width: 65px !important;
    height: 65px !important;
    border-radius: 0% !important;
    background-color: #ffffff !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* ==========================================================
   ESTRUCTURA DE CONTENEDORES Y GRILLA GENERAL
   ========================================================== */
.grid-wrapper {
    border: 3px solid var(--border-color);
    padding: 2vw;
    min-height: 94vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.meta-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 5vw;
}

.group-header {
    margin-bottom: 6vw;
}

.main-title {
    font-size: clamp(5rem, 16vw, 15rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.75;
    letter-spacing: -0.06em;
}

.main-title span {
    font-weight: 400;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 9rem);
    display: block;
    letter-spacing: -0.02em;
    color: var(--accent-clean);
    margin-top: 10px;
}

.subtitle-tech {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 5px 15px;
}

/* ==========================================================
   MÓDULO DE INTEGRANTES (INDEX)
   ========================================================== */
.section-label {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    border-top: 3px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 3vw;
}

.team-container-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    margin-bottom: 5vw;
}

@media (max-width: 850px) {
    .team-container-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.member-card {
    border: 3px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1;
    position: relative;
    background-color: transparent;
    transition: background-color 0.25s, border-color 0.25s;
}

.member-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-clean);
    border-bottom: 1px solid #e0deda;
    padding-bottom: 10px;
}

.member-card .card-initials {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    position: absolute;
    right: 30px;
    top: 55px;
    line-height: 1;
}

.member-card h3 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
    transition: color 0.2s;
}

.member-card .arrow-link {
    font-size: 2.2rem;
    font-weight: 900;
    align-self: flex-end;
    line-height: 1;
    transition: transform 0.3s ease, color 0.2s;
}

/* CONTENEDORES DE IMÁGENES INTEGRADOS */
.photo-container {
    width: 100%;
    height: 50%;
    border: 1px solid var(--border-color);
    margin-top: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    object-position: center center; /* Default base */
    transition: filter 0.3s ease;
}

/* EXCEPCIONES DIRECTAS DE ENCUADRE VERTICAL PARA FADU */
.rocio-hover .photo-container img {
    object-position: center 10% !important;
}

.michelle-hover .photo-container img {
    object-position: center 17% !important;
}

/* Efectos de Hover por bloque */
.rocio-hover:hover { border-color: var(--pop-rocio); background-color: rgba(255, 51, 51, 0.01); }
.rocio-hover:hover h3, .rocio-hover:hover .arrow-link { color: var(--pop-rocio); }
.rocio-hover:hover img { filter: grayscale(0%) sepia(100%) hue-rotate(-30deg) saturate(300%); }
.rocio-hover:hover .arrow-link { transform: translateX(6px); }

.valen-hover:hover { border-color: var(--pop-valen); background-color: rgba(255, 204, 0, 0.01); }
.valen-hover:hover h3, .valen-hover:hover .arrow-link { color: var(--pop-valen); }
.valen-hover:hover img { filter: grayscale(0%) sepia(100%) hue-rotate(15deg) saturate(400%); }
.valen-hover:hover .arrow-link { transform: translateX(6px); }

.michelle-hover:hover { border-color: var(--pop-michelle); background-color: rgba(255, 0, 127, 0.02); }
.michelle-hover:hover h3, .michelle-hover:hover .arrow-link { color: var(--pop-michelle); }
.michelle-hover:hover img { filter: grayscale(0%) sepia(100%) hue-rotate(290deg) saturate(350%); }
.michelle-hover:hover .arrow-link { transform: translateX(8px); }

/* ==========================================================
   BARRA DE NAVEGACIÓN COMPARTIDA Y MÓDULOS
   ========================================================== */
.nav-scroller { display: flex; border-top: 3px solid var(--border-color); background-color: var(--bg-color); }
.grid-wrapper .nav-scroller { border-bottom: 3px solid var(--border-color); margin: 0 -2vw 4vw -2vw; }
.nav-scroller a { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-color); padding: 18px 30px; border-right: 3px solid var(--border-color); text-transform: uppercase; }
.nav-scroller a.active, .nav-scroller a:hover { background-color: var(--text-color); color: var(--bg-color); }
.nav-scroller .btn-home, .nav-scroller .btn-catedra { margin-left: auto; border-left: 3px solid var(--border-color); border-right: none; }

.seccion-titulo-modulo { font-size: 3rem; font-weight: 900; text-transform: uppercase; margin-bottom: 4vw; }
.plan-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 6vw; }
@media (max-width: 900px) { .plan-layout { grid-template-columns: 1fr; gap: 40px; } }
.brief-item { margin-bottom: 40px; }
.brief-item h3 { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }
.brief-item p, .brief-item li { font-size: 1.05rem; line-height: 1.5; color: #333333; margin-bottom: 12px; }
.brief-item ul { padding-left: 20px; }

.timeline { border-left: 2px dashed var(--border-color); padding-left: 30px; }
.timeline-step { position: relative; margin-bottom: 40px; }
.timeline-step::before { content: ''; position: absolute; left: -35px; top: 5px; width: 8px; height: 8px; background-color: var(--text-color); border-radius: 50%; }
.timeline-step h4 { font-family: var(--font-mono); font-size: 0.95rem; text-transform: uppercase; margin-bottom: 12px; }

.mapa-wrapper-ajustado { width: 100%; height: 680px; border: 3px solid var(--border-color); background-color: #ffffff; }
.mapa-wrapper-ajustado iframe { width: 100%; height: 100%; border: none; display: block; }
.app-vacia { padding: 150px 20px; border: 3px dashed var(--border-color); text-align: center; font-family: var(--font-mono); color: var(--accent-clean); text-transform: uppercase; font-size: 1.1rem; font-weight: 700; }
.editorial-footer { padding-top: 40px; font-size: 0.85rem; font-weight: 700; color: var(--accent-clean); line-height: 1.4; border-top: 3px solid var(--border-color); margin-top: 4vw; }
/* ==========================================================
   ESTADO EXCLUSIVO: INTERFAZ APP NODO (AZUL ELÉCTRICO)
   ========================================================== */

/* Solo se activa si el body tiene la clase .pantalla-azul */
body.pantalla-azul {
    background-color: #0101ff !important;
    color: #ffffff !important;
}

/* Modificadores de la estructura perimetral a blanco */
body.pantalla-azul .grid-wrapper,
body.pantalla-azul .meta-top,
body.pantalla-azul .nav-scroller,
body.pantalla-azul .editorial-footer {
    border-color: #ffffff !important;
}

/* Comportamiento de los links de navegación sobre azul */
body.pantalla-azul .nav-scroller a {
    color: #ffffff !important;
    border-right-color: #ffffff !important;
}

body.pantalla-azul .nav-scroller a:hover, 
body.pantalla-azul .nav-scroller a.active {
    background-color: #ffffff !important;
    color: #0101ff !important;
}

body.pantalla-azul .nav-scroller .btn-home {
    border-left-color: #ffffff !important;
}

/* Título e información legal del footer en blanco/opaco */
body.pantalla-azul .seccion-titulo-modulo {
    color: #ffffff !important;
}

body.pantalla-azul .editorial-footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================
   CONTENEDOR DEL IFRAME DE FIGMA (MOBILE FRAME)
   ========================================================== */
.iframe-proto-container {
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed #ffffff; /* Bordes discontinuos blancos */
    background-color: transparent;
    padding: 2vw;
}

.iframe-proto-container iframe {
    width: 100%;
    max-width: 420px;
    height: 100%;
    border: none;
}