/* CONTENIDO */
.contenido-fotos {
    margin-top: 100px;
    margin-left: 80px;
    padding: 20px;
}

/* TOP BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* BOTÓN */
.btn-subir {
    background: linear-gradient(45deg, #29b6f6, #1565c0);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.btn-subir:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #4fc3f7;
}

/* GALERÍA */
.galeria {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

/* CARD */
.card {
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info {
    padding: 10px;
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
}

.modal-content {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    margin: 120px auto;
}

/* INPUTS */
input, textarea {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
}

/* VISOR COMPLETO */
.visor {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

#imagenGrande {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

/* BOTONES */
.icon-btn {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);

    border: none;
    border-radius: 12px;
    padding: 12px;

    cursor: pointer;
}

/* ICONOS SVG */
.icon-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: url(#gradienteIcono);
    stroke-width: 2;
}

/* POSICIÓN */
.prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.cerrar {
    top: 25px;
    right: 25px;
}

/* HOVER */
.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #4fc3f7;
}

.info-visor {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);

    padding: 15px 25px;
    border-radius: 15px;

    color: white;
    text-align: center;
}

.info-visor h3 {
    margin: 0;
    font-size: 18px;
}

.info-visor p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 🔥 VISOR BASE */
.visor {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;

    z-index: 9999;
}

.visor.activo {
    opacity: 1;
    pointer-events: all;
}

/* 🖼 IMAGEN */
#imagenGrande {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;

    transform: scale(0.85);
    opacity: 0;

    transition: 
        transform 0.4s ease,
        opacity 0.4s ease;
}

/* 🟢 CUANDO ABRE */
.visor.activo #imagenGrande {
    transform: scale(1);
    opacity: 1;
}

/* 🔘 BOTONES ICONO */
.icon-btn {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);

    border-radius: 12px;
    padding: 12px;

    cursor: pointer;

    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* SVG BASE */
.icon-btn svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: #ffffff80; /* gris suave */
    stroke-width: 2;

    transition: stroke 0.3s ease;
}

/* ✨ HOVER PRO */
.icon-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 18px #4fc3f7;
    background: rgba(255,255,255,0.15);
}

/* 🔥 ACTIVAR DEGRADADO EN HOVER */
.icon-btn:hover svg {
    stroke: url(#gradienteIcono);
}

/* POSICIONES */
.prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.cerrar {
    top: 25px;
    right: 25px;
}

/* 🔥 MODAL FONDO */
.modal {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);

    opacity: 0;
    pointer-events: none;

    transition: 0.4s ease;

    z-index: 2000;
}

.modal.activo {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);

    opacity: 1;
    pointer-events: all;
}

/* 💎 CONTENIDO (ESTILO GLASS) */
.modal-content {
    width: 340px;
    padding: 25px;

    border-radius: 20px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.2);

    color: white;

    transform: scale(0.8);
    opacity: 0;

    transition: 0.4s ease;
}

.modal.activo .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 📝 INPUTS */
.modal-content input,
.modal-content textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;

    border-radius: 12px;
    border: none;

    background: rgba(255,255,255,0.1);
    color: white;

    outline: none;

    transition: 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    box-shadow: 0 0 10px #4fc3f7;
}

/* 🔘 BOTÓN SUBIR */
.modal-content button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(45deg, #4fc3f7, #1565c0);
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

.modal-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #4fc3f7;
}

/* ❌ BOTÓN CERRAR */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;

    cursor: pointer;
}

.close-btn svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: url(#gradienteIcono);
    stroke-width: 2;

    transition: 0.3s;
}

.close-btn:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #4fc3f7);
}

/* CONTENEDOR */
.drop-zone {
    border: 2px dashed #4fc3f7;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;

    transition: 0.3s;
}

/* HOVER */
.drop-zone:hover {
    background: rgba(255,255,255,0.05);
}

/* 🔥 IMAGEN PREVIEW */
#preview {
    margin-top: 10px;

    max-width: 100%;
    max-height: 180px; /* 🔥 CONTROLA ALTURA */

    object-fit: cover;
    border-radius: 12px;

    display: none;

    box-shadow: 0 0 10px rgba(79,195,247,0.5);
}

#preview {
    width: 100%;
    height: 160px;

    object-fit: cover;
    border-radius: 12px;

    display: none;
}

#preview {
    opacity: 0;
    transform: scale(0.9);
    transition: 0.3s;
}

#preview.show {
    opacity: 1;
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: url(#gradienteIcono);
    stroke-width: 2;
    transition: 0.3s;
}

.close-btn:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #4fc3f7);
}

/* FOOTER */
.footer {
    width: 100%;
    text-align: center;

    padding: 15px 10px;

    color: rgba(255,255,255,0.9);
    font-size: 13px;

    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);

    margin-top: 50px;
}
