/* ==========================================================================
   MÍTAGO - PRODUCTORA ARTÍSTICA & PANEL DE ADMINISTRACIÓN DE PROYECTOS
   Design tokens, modern dark glassmorphism styling, and responsive layout.
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0f1422;
    --bg-card: rgba(18, 24, 40, 0.7);
    --glass-bg: rgba(18, 24, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.28);
    
    --primary: #7928ca;
    --primary-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-gold: #ffb703;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    
    --text-main: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    
    --font-heading: 'Outfit', 'Sansation', sans-serif;
    --font-body: 'Space Grotesk', 'Sansation', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(121, 40, 202, 0.35);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #15102a 0%, #07090e 70%);
}

/* Background canvas starfield */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(121, 40, 202, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

/* Header Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--accent-cyan);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 0, 128, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--glass-border-hover);
}

.btn-admin {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #07090e;
    font-weight: 700;
}

.btn-admin:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* Hero Section */
.hero-producer {
    min-height: 85vh;
    padding: 140px 50px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge-producer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(121, 40, 202, 0.2);
    border: 1px solid rgba(121, 40, 202, 0.4);
    color: #e0aaff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Section Containers */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Disciplines Grid */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.discipline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    transition: all 0.35 ease;
    position: relative;
    overflow: hidden;
}

.discipline-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass);
}

.discipline-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.discipline-card:nth-child(1) .discipline-icon { color: #ff0080; }
.discipline-card:nth-child(2) .discipline-icon { color: #00f2fe; }
.discipline-card:nth-child(3) .discipline-icon { color: #ffb703; }
.discipline-card:nth-child(4) .discipline-icon { color: #10b981; }

.discipline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.discipline-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Featured Projects Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.project-thumb-wrap {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.project-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-footer-actions .btn-primary,
.project-footer-actions .btn-secondary {
    font-size: 0.88rem;
    padding: 8px 16px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.contact-info-card,
.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-info-item a,
.contact-info-item p {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--accent-cyan);
}

.contact-socials-box {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.contact-socials-box h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.contact-social-icons {
    display: flex;
    gap: 12px;
}

.contact-social-icons a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-social-icons a:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.contact-msg-box {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.contact-msg-box.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #0f1424;
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 36px;
    box-shadow: var(--shadow-glass);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    justify-content: center;
    font-size: 1rem;
    margin-top: 10px;
}

.auth-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    display: none;
}

/* Admin Dashboard Large Modal */
.admin-modal-card {
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #0b0f1a;
}

.admin-header {
    padding: 20px 30px;
    background: rgba(18, 24, 42, 0.95);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header-title h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.admin-project-select {
    padding: 8px 14px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Admin Tabs */
.admin-tabs-bar {
    display: flex;
    background: rgba(7, 9, 14, 0.8);
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
}

.tab-btn {
    padding: 14px 22px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
}

/* Admin Body & Tabs Content */
.admin-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.grid-form-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.section-box {
    background: rgba(18, 24, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.section-box-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Repeater Items (Socials, Tracks, Albums) */
.repeater-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.repeater-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    position: relative;
    transition: border-color 0.2s ease;
}

.repeater-item:hover {
    border-color: var(--glass-border-hover);
}

.repeater-item-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.btn-remove-item {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.btn-add-item {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px dashed rgba(16, 185, 129, 0.4);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

/* Track Manager Special Styles */
.track-item-card {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 120px 100px;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .track-item-card {
        grid-template-columns: 1fr;
    }
}

.track-move-btns {
    display: flex;
    gap: 4px;
}

.btn-move {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-move:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f1424;
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.92rem;
    animation: toastIn 0.3s ease forwards;
}

.toast.error {
    border-color: var(--accent-red);
}

.toast.success {
    border-color: var(--accent-green);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(7, 9, 14, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 16px 20px;
    }
    .header-nav {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
