/* Estilos generales de la página */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117; /* Fondo oscuro tipo GitHub */
    color: #ffffff;
    line-height: 1.6;
}

/* El encabezado con la imagen nueva */
.inicio-pagina {
    /* Usamos la imagen del procesador con un filtro oscuro para que resalte el texto */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                      url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1470&auto=format&fit=crop');
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    text-align: center;
    align-items: center;
    border-bottom: 4px solid #3DDC84; /* Rayita verde de separación */
}

.capa-oscura {
    width: 100%;
    padding: 20px;
}

.capa-oscura h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
    color: #3DDC84;
}

.capa-oscura p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Títulos de las secciones */
.titulo-seccion-android {
    text-align: center;
    color: #3DDC84;
    font-size: 2.5rem;
    margin-top: 60px;
    text-transform: uppercase;
}

.titulo-seccion-ios {
    text-align: center;
    color: #007AFF;
    font-size: 2.5rem;
    margin-top: 100px;
    text-transform: uppercase;
}

/* La estructura de la línea del tiempo */
.guia-visual {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

/* El palo central de la línea */
.guia-visual::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #3DDC84;
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
}

/* Cambiamos el color a azul en la parte de iOS */
.linea-ios::after {
    background: #007AFF;
}

/* Los bloques donde van los años */
.item-lista {
    padding: 15px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.lado-izq { left: 0; text-align: right; }
.lado-der { left: 50%; text-align: left; }

/* El diseño de la tarjetita */
.tarjetita {
    background: #161b22;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #30363d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tarjetita:hover {
    border-color: #3DDC84;
    transform: translateY(-5px);
    background: #1c2128;
}

/* Si es de la sección iOS, el hover es azul */
.linea-ios .tarjetita:hover {
    border-color: #007AFF;
}

.tarjetita h4 { margin: 5px 0; font-size: 1.4rem; }
.tarjetita span { color: #3DDC84; font-weight: bold; font-size: 1.1rem; }
.linea-ios .tarjetita span { color: #007AFF; }

small {
    display: block;
    color: #8b949e;
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Ventana emergente (Modal) */
.fondo-oscuro-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(4px); /* Efecto borroso de fondo */
}

.cuadro-info {
    background: #161b22;
    margin: 10% auto;
    padding: 35px;
    width: 90%;
    max-width: 450px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid #3DDC84;
    animation: entrar 0.3s ease-out;
}

@keyframes entrar {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.boton-cerrar {
    background: #3DDC84;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
    color: #0d1117;
    cursor: pointer;
    font-size: 1rem;
}

.boton-cerrar:hover {
    background: #2ea043;
}