/* ===============================
   FONDO PASTEL ALIWEB
   =============================== */
body {
    background: linear-gradient(135deg, #FFF3D4, #F7C4D8, #C7E8FF, #D8F7E1);
    font-family: "Poppins", sans-serif;
    margin: 0;
    color: #5b5b5b;
    overflow-x: hidden !important;
}

/* ===============================
   NAVBAR FIJA
   =============================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* encima de todo el contenido */
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg,#ffe9d6,#ffd9b3,#ffcc99);
    border-bottom: 3px solid #ffffff88;
}

/* NAVBAR DESPLEGABLE */
ul {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg,#ffe9d6,#ffd9b3,#ffcc99);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease-out, opacity 0.35s ease;
    z-index: 1000;
}

/* ===============================
   FOOTER
   =============================== */
footer {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1000;
    background: linear-gradient(135deg, #FFF3D4, #F7C4D8, #C7E8FF, #D8F7E1);
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

/* ===============================
   FORMULARIO
   =============================== */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 0; /* ya no necesitamos margin-top */
}

section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    border: 2px dashed #d6c6ff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    width: 220px;
}

section form input,
section form button {
    border-radius: 14px;
    padding: 12px;
    border: 2px solid #e2d4ff;
    font-size: 14px;
}

section form button {
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(135deg, #F7C4D8, #C7E8FF);
    border: none;
    color: #5b5b5b;
    transition: 0.25s;
}

section form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* ===============================
   GRID DE FOTOS
   =============================== */
.fotos-grid {
    width: 90%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.foto-item {
    text-align: center;
    transition: 0.25s;
}

.foto-item:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.foto-click {
    width: 100%;
    border-radius: 20px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 18px rgba(150, 160, 200, 0.25);
    cursor: pointer;
    transition: 0.25s;
}

.foto-click:hover {
    transform: scale(1.05);
}

.foto-item p {
    margin-top: 8px;
    color: #6f6c88;
    font-weight: 500;
}

/* ===============================
   POPUP
   =============================== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 9999;
    transition: 0.3s ease;
}

.popup.hidden {
    visibility: hidden;
    opacity: 0;
}

.popup img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    border: 6px solid white;
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.cerrar {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    transition: 0.2s ease;
    z-index: 10000;
}

.cerrar:hover {
    transform: scale(1.15);
}

/* ===============================
   BOTÓN FLOTANTE CREAR EVENTO
   =============================== */
#addEventBtn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #ffa45b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: 0.25s;
    z-index: 999;
}

#addEventBtn:hover {
    transform: scale(1.12);
    background: #e78b47;
}
