/* Fondo y estructura general */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('https://capillavirgenninapa.com.ar/wp-content/uploads/2025/02/Altar_Virgen_Nina_Punta_Alta.jpg') no-repeat center center/cover;
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
}

/* Encabezado */
header {
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 20px;
    position: relative;
    text-align: center;
}

/* Títulos */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

h2, h3 {
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Secciones */
section {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    color: black;
}

/* Línea de tiempo */
.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.timeline div {
    background: #34495e;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.timeline div:hover {
    background: #1abc9c;
    transform: scale(1.05);
}

.timeline div:active {
    background: #16a085;
    transform: scale(0.98);
}

.timeline .active {
    background: #e74c3c !important;
}

/* Botones con estilo unificado */
button, .menu button, .submenu button, .timeline div {
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    width: 250px; /* Mantener el ancho de los botones */
    max-width: 90%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Efecto hover (cuando se pasa el mouse por encima) */
button:hover, .menu button:hover, .submenu button:hover, .timeline div:hover {
    background: rgba(255, 255, 255, 0.3); /* Cambio de color con hover */
    transform: scale(1.05);
}

/* Efecto al presionar el botón */
button:active, .menu button:active, .submenu button:active, .timeline div:active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0.98);
}

/* Centrar el menú */
.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Botones del submenú */
.submenu {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    align-items: center;
}

/* Ajuste para la línea de tiempo */
.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.timeline div {
    width: auto;
    padding: 10px 20px;
}

/* Estilo para el botón activo */
.timeline .active {
    background: rgba(255, 255, 255, 0.7) !important;
    color: black;
}



/* Elementos multimedia */
audio {
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 10px auto;
}
/* Estilo del botón flotante */
#btnSubir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    display: none; /* Oculto por defecto */
}

/* Efecto hover */
#btnSubir:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Efecto al presionar */
#btnSubir:active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}
/* Estilos del menú */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Botones principales */
.menu button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    width: 250px;
    max-width: 90%;
}

/* Efecto hover */
.menu button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
/* --- HEADER GENERAL --- */
.main-header {
    width: 100%;
    background: #4fa1ca; /* Color del menú */
    color: white;
    padding: 2px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

/* --- Botón hamburguesa --- */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- Menú de navegación (ESCRITORIO) --- */
.menu-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    position: relative;
}

.menu-nav a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

/* Hover en los enlaces */
.menu-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- SUBMENÚ (ESCRITORIO) --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #4fa1ca;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.submenu li {
    padding: 8px 0;
}

.submenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
}

.submenu-item:hover .submenu {
    display: block;
}

/* --- MENÚ EN MÓVILES --- */
@media (max-width: 768px) {
    /* Mostrar el botón hamburguesa */
    #menu-toggle {
        display: block;
    }

    /* Ocultar el menú por defecto */
    .menu-nav {
        display: none;
        flex-direction: column;
        background: #4fa1ca; /* Mismo color del header */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        gap: 10px;
        text-align: center;
    }

    /* Mostrar menú cuando esté activo */
    .menu-nav.active {
        display: flex;
    }

    /* Estilos del submenú en móviles */
    .submenu {
        position: relative;
        top: 0;
        width: 100%;
        display: none;
    }

    .submenu.active {
        display: block;
    }

    /* Evitar viñetas en los enlaces */
    .menu-nav li {
        list-style: none;
    }

    /* Ajuste de enlaces en móviles */
    .menu-nav a {
        display: block;
        padding: 12px;
        font-size: 18px;
        text-decoration: none;
        color: white;
    }

    /* Corregir color de los enlaces en móviles */
    .menu-nav a:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}
