@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Quicksand:wght@500;700&display=swap');

:root {
    --bg-color: #FFF7F9;
    --card-bg: #FFFFFF;
    --primary: #FF8FA3;
    --primary-hover: #FF6B8B;
    --secondary: #A2E8DD;
    --accent: #FFE5A3;
    --text: #4A4A4A;
    --text-muted: #888888;
    --border-color: #FFD6E0;
    --danger: #FF6B6B;
}

* {
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 12px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(255, 143, 163, 0.15);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
/*
body {
    background-color: var(--bg-color);
    color: var(--text);
    padding: 12px;
    min-height: 100vh;
}

.container {
    margin: 0 auto;
}

*/


h1, h2, h3 {
    font-family: 'Fredoka', cursive;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

/* Menú Superior */
.nav-menu {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: #FFF0F3;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid #FFE0E6;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 15px;
    transition: all 0.2s;
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 143, 163, 0.3);
}

.btn-cute {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Fredoka', cursive;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 143, 163, 0.25);
    transition: transform 0.1s, background 0.2s;
}

.btn-cute:active {
    transform: scale(0.97);
}

/* --- BOTÓN Y PANEL DE FILTROS CUTE / MODERNO --- */
.btn-filter-toggle {
    width: 100%;
    background: linear-gradient(135deg, #FFF0F3 0%, #FFE5EC 100%);
    color: var(--primary-hover);
    border: 2px solid #FFC2D1;
    padding: 12px 16px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Fredoka', cursive;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(255, 143, 163, 0.12);
    transition: all 0.2s ease;
}

.btn-filter-toggle:active {
    transform: scale(0.98);
    background: #FFE0E6;
}

.filter-panel {
    background: #FFF9FA;
    border: 2px solid #FFD6E0;
    border-radius: 22px;
    padding: 18px;
    margin-top: 12px;
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.1);
}

.filter-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 8px;
    display: block;
}

.select-cute-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}

.select-cute {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 18px;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--text);
    outline: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8FA3'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.select-cute:focus {
    border-color: var(--primary);
}

/* --- TARJETAS DE LA GALERÍA Y BOTONES GRANDES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-card {
    border: 2px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 6px 16px rgba(255, 143, 163, 0.08);
}

.gallery-card img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gallery-card-footer {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFBFB;
    border-top: 1px solid #FFEBF0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--primary-hover);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Fredoka', cursive;
}

.likes-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Botones táctiles ampliados y separados */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 16px; /* Separación amplia anti-toques erróneos */
}

.btn-like-large {
    background: #FFE0E6;
    border: 2px solid #FFB6C1;
    border-radius: 50%;
    width: 48px; /* Tamaño ampliado */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(255, 123, 156, 0.2);
    transition: transform 0.15s ease;
}

.btn-like-large:active {
    transform: scale(0.88);
    background: #FFB6C1;
}

.btn-download-large {
    background: var(--secondary);
    border: 2px solid #82D8CC;
    color: #154D4B;
    border-radius: 50%;
    width: 48px; /* Tamaño ampliado */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(162, 232, 221, 0.35);
    transition: transform 0.15s ease;
}

.btn-download-large:active {
    transform: scale(0.88);
}

/* Modal Visor */
.modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.modal-overlay.active { display: flex !important; }

.modal-img {
    max-width: 95%;
    max-height: 80vh;
    border-radius: 20px;
    object-fit: contain;
}

/* Campo de texto de nombre estilizado */
.input-cute {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: #FFFBFB;
    outline: none;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 4px 10px rgba(255, 143, 163, 0.05);
    transition: all 0.2s ease;
}

.input-cute:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 143, 163, 0.18);
}

.input-cute::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

/* BARRA FLOTANTE INFERIOR (STICKY BOTTOM BAR) */
.bottom-sticky-bar {
    position: fixed;
    bottom: -80px; /* Oculta por defecto abajo */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 143, 163, 0.3);
    z-index: 99999;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}


/* BARRA FLOTANTE INFERIOR FORZADA */
div.bottom-sticky-bar {
    position: fixed !important;
    bottom: -100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    background: #FFFFFF !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 25px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.35) !important;
    z-index: 999999 !important;
    transition: bottom 0.3s ease-in-out !important;
}

div.bottom-sticky-bar.visible {
    bottom: 20px !important;
}

.btn-bar-scrolltop {
    background: #FFF0F3 !important;
    color: var(--primary-hover) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Fredoka', cursive, sans-serif !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-bar-upload {
    flex: 1 !important;
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-family: 'Fredoka', cursive, sans-serif !important;
    text-decoration: none !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(255, 143, 163, 0.3) !important;
}