/* =========================================
   ESTILOS MAESTROS: CASO DE ESTUDIO (PROYECTOS)
   ========================================= */

/* --- 1. CONFIGURACIÓN GENERAL --- */
.project-case-main {
    background-color: #0F172A; /* Fondo oscuro base */
    color: #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 100px;
    overflow-x: hidden;
}

.case-container-limit {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. HERO HEADER (CABECERA) --- */
.case-hero {
    position: relative;
    height: 90vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}

/* Sombra oscura sobre la foto para leer el texto */
.case-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), #0F172A);
}

.hero-content-wrapper {
    position: relative; z-index: 2; width: 100%; max-width: 900px; text-align: center;
    animation: fadeUp 1s ease forwards;
}

/* Etiquetas del Proyecto */
.project-tag {
    display: inline-block; padding: 8px 18px; border-radius: 50px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 25px; color: #00E5FF; /* Por defecto Cyan */
}

.project-title {
    font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 40px; color: white;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Caja de Datos Flotante (Cliente, Estado, etc) */
.project-meta-box {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px);
    padding: 25px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.meta-label { display: block; font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; margin-bottom: 5px; }
.meta-value { display: block; font-size: 1rem; font-weight: 700; color: white; }

/* --- 3. ESTADOS DEL PROYECTO (Colores) --- */
/* En Desarrollo (Jaka - Rosa) */
.status-wip { color: #FF4081; display: flex; align-items: center; gap: 8px; }

/* Completado / Activo (GDP - Cyan) */
.status-done { color: #00E5FF; display: flex; align-items: center; gap: 8px; }

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background-color: currentColor;
    box-shadow: 0 0 10px currentColor; animation: pulse 2s infinite;
}

/* --- 4. BLOQUES DE CONTENIDO --- */
.section-block { margin-bottom: 100px; }

.text-intro { text-align: center; max-width: 700px; margin: 0 auto; }
.text-intro h2 { font-size: 2.5rem; color: white; margin-bottom: 20px; font-weight: 800; }
.text-intro p { font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; }


/* --- A. BARRA DE PROGRESO (Roadmap - Jaka) --- */
.roadmap-box {
    background: #1e293b; padding: 50px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05); text-align: center;
}
.roadmap-title { margin-bottom: 30px; font-size: 1.5rem; font-weight: 700; color: white; }

.progress-labels { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.progress-bar-bg {
    width: 100%; height: 14px; background: #334155; border-radius: 50px; overflow: hidden; position: relative;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, #FF4081, #7C4DFF); /* Gradiente */
    border-radius: 50px; position: relative; transition: width 1s ease;
}
.progress-bar-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
.status-text { margin-top: 25px; color: #e2e8f0; font-style: italic; }


/* --- B. MÉTRICAS (GDP) --- */
.metrics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    background: #1e293b; padding: 40px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}
.metric-item { text-align: center; }
.metric-num { font-size: 3.5rem; font-weight: 800; color: #00E5FF; line-height: 1; display: block; margin-bottom: 5px; }
.metric-desc { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }


/* --- 5. VISUALES --- */
.visual-full img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); margin-bottom: 2rem;}
.visual-full video {width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); margin-bottom: 2rem;}
/* --- TU CSS BASE (Escritorio / Tablet) --- */
.visual-full video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
    
    /* Agregamos esto para que el navegador recalcule la altura automáticamente en PC */
    height: auto; 
    transition: all 0.3s ease; /* Suaviza el cambio si redimensionas la ventana */
}

/* --- RESPONSIVE: MÓVIL (Forzar 4:3) --- */
@media (max-width: 768px) {
    .visual-full video {
        /* 1. Obligamos al video a tener proporción 4:3 */
        aspect-ratio: 4 / 3;

        /* 2. CRÍTICO: 'cover' hace zoom y recorta los sobrantes.
           Si no pones esto, el video se verá aplastado/estirado. */
        object-fit: cover;

        /* 3. Centramos el video para que corte los lados por igual */
        object-position: center;
    }
}



.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 60px; }
.visual-grid img { width: 100%; border-radius: 20px; }
/* Contenedor del Video */
.custom-video-wrapper {
    width: 100%;
    max-width: 900px; /* Ancho máximo para que no se vea gigante en PC */
    margin: 40px auto; /* Centrado horizontalmente */
    border-radius: 20px; /* Bordes modernos */
    overflow: hidden; /* Para que el video respete los bordes redondos */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Sombra para darle profundidad */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil si el fondo es oscuro */
}

/* El Video en sí */
.custom-video-wrapper video {
    width: 100%;
    height: auto; /* Mantiene la proporción original */
    display: block; /* Elimina espacios extra abajo */
    background: #000; /* Fondo negro mientras carga */
}


.info-box {
    padding: 30px; border-left: 4px solid #00E5FF;
    background: rgba(255,255,255,0.03); border-radius: 0 20px 20px 0;
}
.info-box h3 { font-size: 1.5rem; margin-top: 0; color: white; margin-bottom: 15px; }
.info-box p { color: #cbd5e1; line-height: 1.6; }

/* --- 6. NAV INFERIOR --- */
.project-nav {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; margin-top: 80px;
    display: flex; justify-content: space-between;
}
.btn-nav { text-decoration: none; color: white; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.btn-nav:hover { color: #00E5FF; gap: 15px; }

/* Animaciones */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 900px) {
    .project-title { font-size: 2.5rem; }
    .project-meta-box { grid-template-columns: 1fr; }
    .metrics-grid, .visual-grid { grid-template-columns: 1fr; }
}




/* --- TARJETA DE ENLACE WEB OFICIAL --- */
.official-web-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    
    /* Estilo Vidrio Neon */
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(0, 229, 255, 0.3); /* Borde Cyan sutil */
    border-left: 5px solid #00E5FF; /* Borde grueso a la izquierda para destacar */
    border-radius: 16px;
    padding: 30px 50px;
    
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

/* Efecto Hover en la tarjeta completa */
.official-web-card:hover {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1); /* Resplandor */
    transform: translateY(-5px);
}

/* Logo */
.web-card-logo img {
    max-width: 150px; /* Ajusta según el tamaño de tu logo */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)); /* El logo brilla un poco */
}

/* Contenedor Derecho */
.web-card-action {
    display: flex;
    align-items: center;
    gap: 30px;
}

.web-text h3 {
    margin: 0; font-size: 1.2rem; color: white; font-weight: 700;
}
.web-text p {
    margin: 5px 0 0 0; font-size: 0.9rem; color: #94a3b8;
}

/* --- BOTÓN NEON PULSANTE --- */
.btn-neon-glow {
    text-decoration: none;
    background-color: #00E5FF; /* Cyan GDP */
    color: #000; /* Texto negro para contraste */
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); /* Glow inicial */
    transition: 0.3s;
    animation: btnPulse 2s infinite; /* Animación de latido */
}

.btn-neon-glow:hover {
    background-color: white;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
    transform: scale(1.05);
}

/* Animación sutil para que el botón "respire" */
@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* RESPONSIVE: En móvil se apila todo */
@media (max-width: 768px) {
    .official-web-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }
    .web-card-logo img { max-width: 120px; margin-bottom: 10px; }
    .web-card-action { flex-direction: column; gap: 20px; }
    .btn-neon-glow { width: 100%; justify-content: center; }
}





/* --- GRID DE CONEXIONES (Para ponerlas lado a lado) --- */
.project-connections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% - 50% */
    gap: 30px;
}

/* --- ESTILO BASE DE TARJETA (Chato / Horizontal) --- */
.official-web-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    background: rgba(30, 41, 59, 0.4); /* Fondo base oscuro */
    backdrop-filter: blur(10px);
}

.official-web-card:hover {
    transform: translateY(-5px);
}

/* --- VARIANTES DE COLOR --- */

/* Variante 1: CYAN (Para GDP) */
.card-cyan {
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-left: 4px solid #00E5FF;
}
.card-cyan:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, rgba(30, 41, 59, 0.6) 100%);
}
.card-cyan .btn-icon-only {
    background: #00E5FF; color: black;
}

/* Variante 2: BLANCO/PLATA (Para SketchSportsX - Marca Madre) */
.card-white {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #ffffff;
}
.card-white:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(30, 41, 59, 0.6) 100%);
}
.card-white .btn-icon-only {
    background: white; color: black;
}

/* --- ELEMENTOS INTERNOS --- */
.web-card-logo img {
    max-width: 120px; /* Tamaño controlado del logo */
    height: auto;
    display: block;
}

.web-card-action {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: right; /* Texto alineado a la derecha para balancear */
}

.web-text h3 { margin: 0; font-size: 1.1rem; color: white; font-weight: 800; text-transform: uppercase; }
.web-text p { margin: 4px 0 0 0; font-size: 0.75rem; color: #94a3b8; letter-spacing: 1px; text-transform: uppercase; }

/* Botón Redondo Pequeño (Flecha) */
.btn-icon-only {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}
.btn-icon-only:hover { transform: scale(1.1) rotate(45deg); }


/* --- RESPONSIVE (Móvil se apilan) --- */
@media (max-width: 900px) {
    .project-connections-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .official-web-card { padding: 20px; text-align: center;}
    .web-card-logo img { max-width: 100px; }
    .web-text h3 { font-size: 0.9rem; }
      .web-text {
        text-align: center;
    }
}









/* 2. GALERÍA TIPO MOSAICO (MASONRY) */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Cuadradas por defecto, se puede cambiar */
    font-family: 'medium';
}

/* Variaciones de tamaño para que no se vea aburrido */
.gallery-card.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-card.tall { grid-row: span 2; aspect-ratio: 1 / 2; }

.gallery-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%); /* Un toque desaturado elegante */
}

/* Efecto Hover */
.gallery-card:hover img {
    transform: scale(1.1); /* Zoom suave */
    filter: grayscale(0%); /* Color total */
}

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0; transition: 0.3s;
    display: flex; align-items: flex-end; padding: 20px;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

.photo-caption {
    color: white; font-family: 'Oswald'; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
}
.gallery-card .gallery-overlay span {
    font-family: 'medium';
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gallery-card.wide, .gallery-card.tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1; }
    .section-title-center h2 { font-size: 2.5rem; }
}
@media (max-width: 400px) {
    .media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 85vw;
    aspect-ratio: 1 / 1; /* Cuadradas por defecto, se puede cambiar */
}

}