:root {
    --ios-blue: #007aff; /* El azul clásico de Apple */
    --ios-silver: #f5f5f7;
    --dark-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 20px;
    /* Fondo con brillo azul sutil en lugar de verde */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 122, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 245, 247, 0.05) 0%, transparent 40%);
}

.timeline-header {
    text-align: center;
    margin-bottom: 100px;
}

.btn-back {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-back:hover { background: white; color: black; }

.timeline-header h1 {
    font-size: 3rem;
    margin-top: 30px;
    letter-spacing: -1px;
}

.ios-text {
    background: linear-gradient(180deg, #fff 0%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* CONTENEDOR ZIG-ZAG */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Línea central sutil plateada */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--ios-blue), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.5px;
    opacity: 0.4;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

/* El punto LED Azul */
.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--ios-blue);
    border-radius: 50%;
    top: 50px;
    z-index: 10;
    box-shadow: 0 0 20px var(--ios-blue);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -6px; }
.timeline-item:nth-child(even) .timeline-dot { left: -6px; }

.timeline-date {
    font-weight: 700;
    color: var(--ios-blue);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* Tarjetas Estilo Apple Glass */
.timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.timeline-content:hover {
    border-color: rgba(0, 122, 255, 0.5);
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-content h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 600; }
.timeline-content p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; font-weight: 300; }

/* Añade esto al final de tus archivos CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- FOOTER ELEGANTE iOS --- */
.main-footer {
    margin-top: 100px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 122, 255, 0.05), transparent);
}

.footer-line {
    width: 100px;
    height: 1px;
    background: var(--ios-blue);
    margin: 0 auto 30px;
    opacity: 0.3;
}

.footer-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--ios-blue);
    border: 1px solid var(--ios-blue);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: var(--ios-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-3px);
}

/* Estilo para las imágenes de la línea de tiempo */
.timeline-img {
    width: 100%; /* Se adapta al ancho de la tarjeta */
    max-width: 200px; /* Pero no dejará que sea gigante */
    height: 120px; /* Altura fija para que todas se vean parejas */
    object-fit: cover; /* Recorta la imagen para que no se deforme */
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
}

/* Alineación de la imagen según el lado del zig-zag */
.timeline-item:nth-child(odd) .timeline-img { margin-left: auto; } /* Derecha si el texto es a la derecha */
.timeline-item:nth-child(even) .timeline-img { margin-right: auto; }

.timeline-img {
    width: 100%;           /* Se ajusta al ancho del cuadro */
    max-width: 150px;      /* Tamaño máximo sugerido */
    height: auto;          /* Mantiene la proporción */
    border-radius: 12px;   /* Bordes redondeados estilo Apple */
    margin-bottom: 15px;   /* Espacio con el texto */
    display: block;        /* Para centrarla o alinearla */
}

/* Para que la imagen se alinee según el lado del zig-zag */
.timeline-item:nth-child(odd) .timeline-img { margin-left: auto; } 
.timeline-item:nth-child(even) .timeline-img { margin-right: auto; }