/* =========================================
   COMMUTERS SANS — Local Webfonts
   ========================================= */
@font-face {
    font-family: 'Commuters Sans';
    src: url('../fonts/CommutersSans-Light.eot');
    src: url('../fonts/CommutersSans-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/CommutersSans-Light.woff2') format('woff2'),
         url('../fonts/CommutersSans-Light.woff') format('woff'),
         url('../fonts/CommutersSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Commuters Sans';
    src: url('../fonts/CommutersSans-SemiBold.eot');
    src: url('../fonts/CommutersSans-SemiBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/CommutersSans-SemiBold.woff2') format('woff2'),
         url('../fonts/CommutersSans-SemiBold.woff') format('woff'),
         url('../fonts/CommutersSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --bg-dark: #000000;
    --text-light: #ffffff;
    --text-muted: #888888;
    --accent-red: #ffffff;
    --accent-cyan: #e0e0e0;
    --accent-purple: #bbbbbb;
    --glass-bg: rgba(20, 20, 20, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --gradient-primary: #333333;
    --gradient-glow: #111111;

    /* Typography — Commuters Sans */
    --font-heading: 'Commuters Sans', sans-serif;
    --font-body: 'Commuters Sans', sans-serif;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) {
    background: #000000;
    color: #ffffff;
}

.btn-primary:disabled {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--text-light);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* General Section rules */
.section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 5% 4rem;
    gap: 3rem;
    position: relative;
    text-align: center;
}

.hero-image-container {
    width: 100%;
    max-width: 1200px;
}

.hero-main-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    clip-path: inset(10% 0 0 0);
    transform: translateX(-1.5%);
}

.hero-actions {
    margin-top: 2rem;
}

/* Què és El Redolí */
.que-es {
    background: #000000;
    min-height: auto;
    padding: 8rem 5%;
}

.que-es h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.definition {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
}

.concept-card {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(189, 0, 255, 0.05));
    border-left: 4px solid var(--accent-red);
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    max-width: 700px;
}

.concept-card h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Beat Pack Section */
.beat-pack-section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

.beats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.beat-item {
    padding: 0.8rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.beat-item:last-child {
    border-bottom: none;
}

.beat-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.beat-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    flex-grow: 1;
}

.beat-title {
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.beat-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.style-tag {
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.beat-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    width: 320px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.beat-actions audio::-webkit-media-controls-current-time-display,
.beat-actions audio::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-icon:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-download {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-download:hover {
    background: white;
    color: var(--bg-dark);
}

/* Docencia Section */
.docencia {
    min-height: auto;
    padding: 4rem 5%;
}

.docencia-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.docencia-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.docencia-content p {
    color: var(--text-muted);
}

.docencia-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Form Section */
.form-wrapper {
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
}

.form-step {
    margin-bottom: 3rem;
}

.form-step h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input[type="text"],
.input-group input[type="url"],
.input-group select,
.lyrics-input-panel input[type="url"],
.lyrics-input-panel textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.input-group input:focus,
.input-group select:focus,
.lyrics-input-panel input[type="url"]:focus,
.lyrics-input-panel textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.input-group select option {
    background: var(--bg-dark);
}

.lyric-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.lyric-options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.lyric-options input[type="radio"] {
    accent-color: var(--text-light);
    width: 1.2rem;
    height: 1.2rem;
}

.lyrics-input-panel {
    margin-top: 1rem;
}

.field-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.upload-group {
    margin-bottom: 2rem;
}

.hidden-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.file-upload-label:hover, .file-upload-label.dragover {
    background: rgba(189, 0, 255, 0.1);
    border-color: var(--accent-purple);
}

.upload-icon {
    font-size: 1.5rem;
}

.file-name {
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.checkbox-group input {
    margin-top: 0.3rem;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-purple);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer strong {
    color: var(--text-light);
}

/* Responsive (Tablets & iPads) */
@media (max-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }
    
    .hero {
        padding-top: 8rem;
        gap: 2rem;
    }

    .docencia-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive (Mobiles) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }
    
    .logo {
        text-align: center;
        display: none !important;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .nav-links a.btn-outline {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        text-align: center;
        padding: 7rem 5% 3rem;
        min-height: auto;
    }
    
    .section {
        padding: 4rem 5%; /* Menos altura de los bloques vacíos */
        min-height: auto;
    }

    .main-title {
        font-size: 3rem;
    }

    .que-es h2 {
        font-size: 2.3rem;
    }
    
    .definition {
        font-size: 1.15rem; /* Texto de la intro más pequeño */
        margin-bottom: 2rem;
    }

    .concept-card {
        padding: 1.5rem;
        border-radius: 12px;
        border-left: none;
        border-top: 4px solid var(--accent-red);
    }
    
    .concept-card h3 {
        font-size: 1.3rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .beat-header {
        display: none !important;
    }

    .beat-item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05); /* Burbuja/Tarjeta */
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }
    
    .beat-info {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 40%;
    }

    .beat-meta {
        justify-content: flex-end !important;
        gap: 0.8rem !important;
        flex-wrap: nowrap;
        width: auto !important;
        flex: 0 0 auto !important;
        margin-right: 0 !important;
    }

    .beat-meta span {
        width: auto !important;
        text-align: right !important;
    }
    
    .beat-producer { 
        text-align: right !important; 
        width: auto !important; 
    }
    
    .style-tag { display: none !important; }

    .hero-main-image {
        transform: translateX(-1.5%) scale(1.15);
    }
    
    .beat-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .beat-actions audio {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .beat-actions a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .btn-download {
        text-align: center;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-header h2 {
        font-size: 2rem;
    }

    .docencia-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Loader Animation */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.message-success {
    color: #00ff88;
}

.message-error {
    color: #ff3366;
}

.definition {
    color: var(--text-light, #ffffff);
}
