/* Importar una fuente más amigable */

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #f9f9f9; /* Fondo claro como papel */
    color: #333;
    text-align: center;
    min-height: 100vh;
}

header {
    padding: 50px 20px;
    background: white;
    border-bottom: 2px dashed #ccc;
}

h1 { color: #2d3436; font-size: 2.5rem; }

/* MENÚ DE BOTONES */
.menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    backdrop-filter: blur(5px);
}

.boton {
    padding: 12px 30px;
    margin: 10px;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid #333; /* Borde estilo dibujo */
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #333; /* Sombra sólida */
}

.android-btn { background: #A4C639; color: white; }
.ios-btn { background: #ff7675; color: white; }

.boton:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #333;
}

/* CONTENEDOR DE LA LÍNEA */
.timeline {
    display: none; 
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 0;
}

/* LÍNEA VERTICAL PUNTEADA */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    border-left: 4px dashed #b2bec3; /* Línea discontinua como la imagen */
    transform: translateX(-50%);
}

/* TARJETAS DE EVENTOS */
.event {
    position: relative;
    width: 42%;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border: 3px solid #333;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* Colores alternos para que se vea colorido */
.event:nth-child(4n+1) { border-color: #fab1a0; }
.event:nth-child(4n+2) { border-color: #74b9ff; }
.event:nth-child(4n+3) { border-color: #55efc4; }
.event:nth-child(4n+4) { border-color: #ffeaa7; }

.event:hover {
    transform: scale(1.03);
}

/* Posicionamiento Izquierda/Derecha */
.event:nth-child(odd) { align-self: flex-start; text-align: right; }
.event:nth-child(even) { align-self: flex-end; text-align: left; }

/* PUNTOS EN LA LÍNEA */
.event::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #333;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.event:nth-child(odd)::after { right: -13.5%; }
.event:nth-child(even)::after { left: -13.5%; }

/* BURBUJA DE INFORMACIÓN (Estilo Cómic) */
.info-bubble {
    position: absolute;
    top: -20%;
    background: #2d3436;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 14px;
    width: 280px;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.event:nth-child(odd) .info-bubble { left: 110%; text-align: left; }
.event:nth-child(even) .info-bubble { right: 110%; text-align: left; }