/* ============================================
   HS STUDIO - ESTILOS COMPLETOS
   ============================================ */

:root {
    --ss-primary: #0891b2;
    --ss-primary-dark: #0e7490;
    --ss-primary-light: #22d3ee;
    --ss-bg: #f8fafc;
    --ss-card-bg: #ffffff;
    --ss-text: #0f172a;
    --ss-text-muted: #64748b;
    --ss-border: #e2e8f0;
    --ss-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --ss-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --ss-radius: 12px;
    --ss-radius-sm: 6px;
    --ss-transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Ocultar skip-link nativo de WordPress */
.skip-link,
.screen-reader-shortcut {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--ss-bg);
    color: var(--ss-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.ss-error { padding: 40px; text-align: center; color: #ef4444; }
.ss-empty-state { padding: 60px 20px; text-align: center; color: var(--ss-text-muted); }

.ss-landing-wrap,
.sirenas-skin-wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px 40px; min-height: 100vh; }

/* ============================================
   NAVBAR
   ============================================ */
.ss-navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ss-nav-left { display: flex; align-items: center; gap: 12px; }

.ss-logo { font-size: 22px; font-weight: 800; color: var(--ss-primary); font-family: 'Inter', sans-serif; }

.ss-nav-links { display: flex; gap: 4px; }

.ss-nav-links a {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
    color: var(--ss-text-muted); text-decoration: none; transition: all 0.2s;
}

.ss-nav-links a:hover { background: rgba(8,145,178,0.06); color: var(--ss-text); }
.ss-nav-links a.active { background: rgba(8,145,178,0.1); color: var(--ss-primary); font-weight: 600; }

.ss-logout-btn {
    background: none; border: none; color: var(--ss-text-muted); font-size: 18px;
    cursor: pointer; padding: 8px; border-radius: 50%; transition: all 0.2s;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}

.ss-logout-btn:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

/* ============================================
   MAIN
   ============================================ */
.ss-main { padding-top: 76px; padding-bottom: 40px; min-height: calc(100vh - 60px); width: 100%; max-width: 1400px; margin: 0 auto; }

/* ============================================
   GRID VIEW
   ============================================ */
.ss-grid-container { background: white; border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); padding: 16px 0; }

.ss-grid-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px 16px; border-bottom: 1px solid var(--ss-border);
}

.ss-grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px; justify-content: start; align-content: start; }
.ss-grid-view .ss-billions-card { width: 100%; margin: 0; }

.ss-btn-back {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: 20px; background: var(--ss-bg); color: var(--ss-text-muted);
    text-decoration: none; font-size: 13px; font-weight: 500; transition: var(--ss-transition);
}

.ss-btn-back:hover { background: var(--ss-primary); color: white; }

/* ============================================
   PAGINACIÓN
   ============================================ */
.ss-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; padding: 0 16px; }

.ss-page-arrow {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ss-border);
    background: white; color: var(--ss-text); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; text-decoration: none; transition: all 0.2s;
}

.ss-page-arrow:hover { border-color: var(--ss-primary); color: var(--ss-primary); }

.ss-page-numbers { display: flex; align-items: center; gap: 4px; }

.ss-page-num {
    min-width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ss-border);
    background: white; color: var(--ss-text-muted); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; text-decoration: none; font-size: 14px;
    font-weight: 500; transition: all 0.2s;
}

.ss-page-num:hover { border-color: var(--ss-primary); color: var(--ss-primary); }
.ss-page-num.active { background: var(--ss-primary); color: white; border-color: var(--ss-primary); font-weight: 700; }

.ss-page-dots { color: var(--ss-text-muted); padding: 0 4px; }

/* ============================================
   NUEVA PLAYLIST
   ============================================ */
.ss-new-playlist-wrap { padding: 20px 0; text-align: center; }

.ss-new-playlist-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
    background: var(--ss-primary); color: white; border: none; border-radius: 30px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--ss-transition);
}

.ss-new-playlist-btn:hover { background: var(--ss-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }

/* ============================================
   INPUTS
   ============================================ */
.ss-input {
    width: 100%; padding: 10px 14px; border: 2px solid var(--ss-border); border-radius: var(--ss-radius-sm);
    font-size: 14px; line-height: 1.4; min-height: 40px; transition: var(--ss-transition); background: white; color: var(--ss-text);
}

.ss-input:focus { border-color: var(--ss-primary); outline: none; box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }

.ss-input-with-icon { position: relative; display: flex; align-items: center; }
.ss-input-with-icon .ss-input { padding-right: 50px; }

.ss-input-counter { position: absolute; right: 12px; font-size: 12px; color: var(--ss-text-muted); pointer-events: none; }
.ss-input-counter.warn { color: #f59e0b; }
.ss-input-counter.danger { color: #ef4444; }

/* ============================================
   EDITOR
   ============================================ */
.ss-editor-container { display: flex; gap: 24px; background: white; border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); padding: 24px; min-height: 600px; }

.ss-editor-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.ss-editor-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ss-border); }

.ss-editor-title { font-size: 18px; font-weight: 700; color: var(--ss-text); }
.ss-editor-title i { color: var(--ss-primary); margin-right: 8px; }

.ss-editor-close { color: var(--ss-text-muted); text-decoration: none; font-size: 20px; padding: 4px 8px; border-radius: 50%; transition: var(--ss-transition); }
.ss-editor-close:hover { background: rgba(0,0,0,0.05); color: #ef4444; }

.ss-playlist-selector { display: flex; align-items: center; gap: 8px; }
.ss-playlist-selector i { color: var(--ss-text-muted); font-size: 14px; }
.ss-playlist-selector .ss-input { flex: 1; }

/* Toolbar */
.ss-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 12px; background: var(--ss-bg); border-radius: var(--ss-radius-sm); border-bottom: 1px solid var(--ss-border); }

.ss-tool { padding: 4px 8px; border: none; background: transparent; border-radius: 4px; cursor: pointer; font-size: 13px; color: var(--ss-text-muted); transition: var(--ss-transition); }
.ss-tool:hover { background: rgba(0,0,0,0.05); color: var(--ss-text); }
.ss-tool.active { background: rgba(8,145,178,0.12); color: var(--ss-primary); }

.ss-tool-divider { width: 1px; height: 24px; background: var(--ss-border); margin: 0 4px; }

.ss-tool select { padding: 2px 6px; border: 1px solid var(--ss-border); border-radius: 4px; font-size: 12px; background: white; }

/* Editor rich */
.ss-rich-box { border: 2px solid var(--ss-border); border-radius: var(--ss-radius-sm); overflow: hidden; transition: var(--ss-transition); }
.ss-rich-box:focus-within { border-color: var(--ss-primary); box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }

.ss-editor { min-height: 120px; padding: 12px 14px; font-size: 14px; line-height: 1.6; outline: none; background: white; color: var(--ss-text); }
.ss-editor:empty::before { content: 'Escribe tu nota aquí...'; color: var(--ss-text-muted); }
.ss-editor img { max-width: 100%; height: auto; border-radius: 4px; }
.ss-editor iframe { max-width: 100%; }

/* Botón agregar nota */
.ss-action-left { display: flex; gap: 8px; align-items: center; }

.ss-btn-add-note {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: none; background: var(--ss-primary); color: white; font-size: 18px;
    cursor: pointer; transition: var(--ss-transition);
}

.ss-btn-add-note:hover { background: var(--ss-primary-dark); transform: scale(1.05); }
.ss-btn-add-note:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Lista de notas */
.ss-notes-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ss-bg); font-size: 13px; font-weight: 600; color: var(--ss-text-muted); border-bottom: 1px solid var(--ss-border); }

.ss-notes-list { max-height: 400px; overflow-y: auto; padding: 8px 0; }

.ss-note-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--ss-border); transition: var(--ss-transition); }
.ss-note-item:hover { background: var(--ss-bg); }

.ss-note-time-btn { flex-shrink: 0; padding: 2px 10px; background: var(--ss-primary); color: white; border: none; border-radius: 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--ss-transition); font-family: monospace; }
.ss-note-time-btn:hover { background: var(--ss-primary-dark); transform: scale(1.05); }

.ss-note-content { flex: 1; font-size: 14px; line-height: 1.5; word-break: break-word; max-height: 60px; overflow: hidden; transition: max-height 0.3s ease; }
.ss-note-content.expanded { max-height: 500px; }

.ss-note-edit, .ss-note-delete { flex-shrink: 0; padding: 4px 8px; border: none; background: transparent; color: var(--ss-text-muted); cursor: pointer; border-radius: 4px; transition: var(--ss-transition); }
.ss-note-edit:hover { background: rgba(8,145,178,0.1); color: var(--ss-primary); }
.ss-note-delete:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

.ss-empty-notes { text-align: center; padding: 40px 20px; color: var(--ss-text-muted); }
.ss-empty-notes i { font-size: 32px; opacity: 0.3; }

/* Acciones del editor */
.ss-action-buttons { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.ss-action-right { display: flex; gap: 8px; }

.ss-btn-save, .ss-btn-cancel {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none;
    border-radius: var(--ss-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--ss-transition); text-decoration: none;
}

.ss-btn-save { background: #3D605B; color: white; }
.ss-btn-save:hover { background: var(--ss-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }

.ss-btn-cancel { background: var(--ss-bg); color: var(--ss-text-muted); }
.ss-btn-cancel:hover { background: #ef4444; color: white; }

/* Video sidebar */
.ss-video-sidebar { flex-shrink: 0; width: 380px; display: flex; flex-direction: column; gap: 12px; }

.ss-video-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--ss-bg); border-radius: var(--ss-radius-sm); font-size: 13px; font-weight: 500; color: var(--ss-text-muted); }
.ss-video-header i { color: var(--ss-primary); }

#ss-time-display { font-family: monospace; font-size: 16px; font-weight: 600; color: var(--ss-text); }

.ss-video-wrap { background: #000; border-radius: var(--ss-radius-sm); overflow: hidden; aspect-ratio: 16/9; position: relative; }
#ss-video-player { width: 100%; height: 100%; }

.ss-video-controls { display: flex; gap: 8px; justify-content: center; padding: 8px 0; }

.ss-btn-capture { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--ss-primary); color: white; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--ss-transition); }
.ss-btn-capture:hover { background: var(--ss-primary-dark); transform: scale(1.03); }

#ss-capture-toast { opacity: 0; transition: opacity 0.3s ease; color: #10b981; font-size: 13px; }

/* ============================================
   MODAL PREVIEW (Netflix style)
   ============================================ */
.ss-preview-modal-shell {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,0.92);
    padding: 20px; animation: ssFadeIn 0.25s ease;
}

@keyframes ssFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ss-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(15,23,42,0.92);
}

.ss-modal-box {
    background: #0f172a; border-radius: 24px; max-width: 900px; width: 100%;
    max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: ssSlideUp 0.3s ease;
}

@keyframes ssSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ss-modal-close {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
    border-radius: 50%; border: none; background: rgba(0,0,0,0.6);
    color: #fff; cursor: pointer; display: flex; align-items: center;
    justify-content: center; z-index: 10; transition: all 0.2s; font-size: 16px;
}

.ss-modal-close:hover { background: rgba(239,68,68,0.8); transform: rotate(90deg); }

.ss-modal-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.ss-preview-player-wrap { background: #000; flex-shrink: 0; position: relative; }

.ss-preview-player-inner { position: relative; padding-bottom: 56.25%; }

.ss-preview-player-inner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.ss-preview-no-video {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: #0f172a; color: #475569; gap: 12px; flex-direction: column;
}

.ss-preview-no-video i { font-size: 48px; }

.ss-preview-content { padding: 24px; flex: 1; background: #0f172a; }

.ss-preview-title { font-size: 22px; margin: 0 0 20px 0; font-weight: 700; color: #fff; }

.ss-preview-empty { color: #94a3b8; margin: 0; }

.ss-preview-notes { margin-top: 8px; }

.ss-preview-notes-header {
    display: flex; align-items: center; gap: 8px; font-size: 14px;
    font-weight: 600; color: #fff; margin-bottom: 12px;
}

.ss-preview-notes-header i { color: #22d3ee; }

.ss-preview-notes-count { margin-left: auto; font-size: 12px; color: #94a3b8; background: rgba(255,255,255,0.1); padding: 2px 10px; border-radius: 20px; }

.ss-modal-footer { display: flex; gap: 12px; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.1); background: #0f172a; flex-wrap: wrap; }

.ss-modal-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }

.ss-modal-btn-share { background: linear-gradient(135deg, #0891b2, #7c3aed); color: white; }
.ss-modal-btn-share:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }

.ss-modal-btn-edit { background: #f59e0b; color: white; }
.ss-modal-btn-edit:hover { background: #d97706; transform: translateY(-2px); }

.ss-modal-btn-delete { background: #ef4444; color: white; }
.ss-modal-btn-delete:hover { background: #dc2626; transform: translateY(-2px); }

/* Notas en preview */
.ss-preview-notes .ss-note-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ss-preview-notes .ss-note-item:last-child { border-bottom: none; }

.ss-preview-notes .ss-note-time-btn { flex-shrink: 0; padding: 4px 12px; background: linear-gradient(135deg, #0891b2, #06b6d4); color: white; border: none; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ss-preview-notes .ss-note-time-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }

.ss-preview-notes .ss-note-content { flex: 1; font-size: 14px; line-height: 1.6; color: #cbd5e1; word-break: break-word; }

/* ============================================
   EDIT NOTE MODAL
   ============================================ */
.ss-edit-note-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); }
.ss-edit-note-modal.active { display: flex; animation: ssFadeIn 0.2s ease; }

.ss-edit-note-content { width: 90%; max-width: 600px; max-height: 80vh; background: white; border-radius: var(--ss-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1); }
.ss-edit-note-modal.active .ss-edit-note-content { transform: scale(1); }

.ss-edit-note-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ss-border); }

.ss-edit-note-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ss-edit-note-title i { color: var(--ss-primary); }

.ss-edit-note-close { width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: var(--ss-text-muted); cursor: pointer; font-size: 16px; transition: var(--ss-transition); }
.ss-edit-note-close:hover { background: rgba(0,0,0,0.05); color: #ef4444; }

.ss-edit-note-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 12px; background: var(--ss-bg); border-bottom: 1px solid var(--ss-border); }

.ss-edit-note-editor { flex: 1; min-height: 150px; max-height: 300px; overflow-y: auto; padding: 14px 16px; font-size: 14px; line-height: 1.6; outline: none; background: white; }

.ss-edit-note-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--ss-border); background: var(--ss-bg); }

.ss-edit-note-cancel, .ss-edit-note-save { padding: 8px 20px; border: none; border-radius: var(--ss-radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--ss-transition); }

.ss-edit-note-cancel { background: var(--ss-bg); color: var(--ss-text-muted); }
.ss-edit-note-cancel:hover { background: #ef4444; color: white; }

.ss-edit-note-save { background: var(--ss-primary); color: white; display: inline-flex; align-items: center; gap: 6px; }
.ss-edit-note-save:hover { background: var(--ss-primary-dark); }

/* ============================================
   HERO CONTROL (legacy)
   ============================================ */
.ss-hero-control { background: white; border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); padding: 24px; }
.ss-hero-control h2 { font-size: 20px; margin-bottom: 20px; color: var(--ss-text); }

.ss-hero-control-section { margin-bottom: 20px; padding: 16px; background: var(--ss-bg); border-radius: var(--ss-radius-sm); }
.ss-hero-control-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--ss-text); }

.ss-hero-control-section label { display: block; font-size: 13px; font-weight: 500; color: var(--ss-text-muted); margin-bottom: 4px; margin-top: 12px; }
.ss-hero-control-section label:first-of-type { margin-top: 0; }
.ss-hero-control-section .ss-input { margin-bottom: 4px; }

.ss-hero-control .ss-btn-primary { padding: 12px 32px; background: var(--ss-primary); color: white; border: none; border-radius: var(--ss-radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--ss-transition); }
.ss-hero-control .ss-btn-primary:hover { background: var(--ss-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }

/* ============================================
   MOVER TARJETA MENU
   ============================================ */
.ss-move-card-menu-global, .ss-move-card-menu-pc { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: white; border-radius: var(--ss-radius); box-shadow: var(--ss-shadow-lg); padding: 12px; width: 280px; max-height: 50vh; overflow-y: auto; z-index: 9999; display: none; }

.ss-move-card-menu-global.active, .ss-move-card-menu-pc.active { display: block; animation: ssSlideUp 0.2s ease; }

.ss-move-card-menu-item, .ss-move-card-menu-pc-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--ss-radius-sm); cursor: pointer; transition: var(--ss-transition); font-size: 14px; }
.ss-move-card-menu-item:hover, .ss-move-card-menu-pc-item:hover { background: var(--ss-bg); }
.ss-move-card-menu-item.active, .ss-move-card-menu-pc-item.active { background: rgba(8,145,178,0.08); color: var(--ss-primary); font-weight: 600; }

/* ============================================
   TOAST
   ============================================ */
.ss-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0891b2; color: white; padding: 12px 24px; border-radius: 8px; z-index: 99999; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: ssToastIn 0.3s ease; }

@keyframes ssToastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ============================================
   BODY LOCK
   ============================================ */
body.ss-modal-lock { overflow: hidden !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .ss-editor-container { flex-direction: column; padding: 16px; }
    .ss-video-sidebar { width: 100%; max-width: 100%; }
}

@media (max-width: 768px) {
    .ss-landing-wrap, .sirenas-skin-wrap { padding: 0 8px 80px; }
    .ss-main { padding-top: 16px; padding-bottom: 80px; }
    .ss-nav-links { display: none; }
    .ss-grid-view { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 8px 12px !important; }
    .ss-grid-view .ss-billions-card { width: 100%; margin: 0; }
    .ss-modal { padding: 8px; }
    .ss-modal-box { max-height: 95vh; border-radius: 16px; }
    .ss-preview-content { padding: 16px; }
    .ss-modal-footer { padding: 12px 16px; }
    .ss-edit-note-content { width: 95%; max-height: 90vh; }
    .ss-move-card-menu-global, .ss-move-card-menu-pc { width: 90%; bottom: 100px; }
}

@media (max-width: 480px) {
    .ss-grid-view { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 4px 8px !important; }
    .ss-billions-card__title { font-size: 12px !important; }
    .ss-editor-container { padding: 12px; }
    .ss-modal-btn { padding: 8px 12px; font-size: 12px; }
    .ss-preview-title { font-size: 18px; }
}

/* ============================================
   FIXES iOS — Productos
   ============================================ */

/* Fuerza capa GPU para evitar que el título desaparezca en Safari iOS */
.ss-product-name {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* iOS táctil: el hover se queda "pegado" tras el primer tap.
   Solo activamos el swap de imagen mientras se toca (:active) */
@media (hover: none) and (pointer: coarse) {
    .ss-product-card:hover .ss-prod-img-primary { opacity: 1; }
    .ss-product-card:hover .ss-prod-img-secondary { opacity: 0; }
    .ss-product-card:active .ss-prod-img-primary { opacity: 0; }
    .ss-product-card:active .ss-prod-img-secondary { opacity: 1; }
}

/* ============================================
   INPUT NUMBER — flechas nativas ocultas
   ============================================ */
.ss-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.ss-input[type="number"]::-webkit-inner-spin-button,
.ss-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}