:root {
    --bg-color: #fcfcfc;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent-color: #E30613; /* Rojo DP */
    --accent-hover: #b3000b;
    --nav-bg: rgba(255, 255, 255, 0.7);
    /* Sumar al :root existente */
    --stage-investigation: #BFD730; /* Verde Lima */
    --stage-idea: #F39200;          /* Ocre/Naranja */
    --stage-dev: #0077C8;           /* Azul */
    --stage-assimilation: #009640;  /* Verde */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navegación flotante (Glassmorfismo centrado) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    
    /* Grid de 3 columnas para centrar el logo matemáticamente */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
    padding: 12px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-side {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-side a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* --- Logo Imagen --- */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 32px; /* Altura ajustada para no desfasar la barra */
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
}

/* --- Botones modernos --- */
.btn-nav {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    border: 2px solid var(--text-main);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: white;
}

.shadow-glow {
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

/* --- Portada (Hero) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Elemento decorativo de fondo */
.blob-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227,6,19,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- Secciones Generales --- */
.section {
    padding: 120px 20px 80px; /* Mucho padding superior para que el ancla del menú no tape el título */
    display: flex;
    justify-content: center;
}

.section-container {
    max-width: 1000px;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--accent-color);
}

/* --- Qué es DP (Narrativa y Textos) --- */
.narrative-box {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.text-block h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.text-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Responsive: Una sola columna en celulares */
@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* --- Sección Contenido y Tarjetas de Misión --- */
.bg-light {
    background-color: #f5f5f7;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: -20px;
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta base */
.task-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Encabezados por etapa */
.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.bg-investigation { background-color: var(--stage-investigation); color: #1a1a1a; }
.bg-development { background-color: var(--stage-dev); }

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.card-deadline {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.bg-investigation .card-deadline {
    background: rgba(0, 0, 0, 0.08);
}

.deadline-urgent {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(227, 6, 19, 0.3);
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 24px;
    flex-grow: 1;
}

.card-context {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.mission-title {
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Caja de Entregables */
.deliverable-box {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--dp-gray-border);
}

.deliverable-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.deliverable-box ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.deliverable-box li {
    margin-bottom: 6px;
}

/* Pie de la tarjeta */
.card-footer {
    padding: 16px 24px;
    background-color: #fafafa;
    border-top: 1px solid var(--dp-gray-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}