:root {
    --primary-color: #e0e0e0;
    --accent-color: #ff9d00;
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.byline {
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.disclaimer p {
    font-size: 0.75rem !important;
    line-height: 1.5;
    color: #666;
    text-align: justify;
}

/* Upload Card */
.upload-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.drop-zone.drag-over {
    border-color: var(--accent-color);
    background: rgba(255, 157, 0, 0.05);
}

.drop-zone i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.preview-container {
    display: none;
    width: 100%;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.preview-container img {
    max-width: 400px;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.preview-container .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background: #ffb133;
    box-shadow: 0 0 20px rgba(255, 157, 0, 0.4);
}

.btn-primary:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Results Section */
.results-section {
    display: none;
    margin-top: 4rem;
    width: 100%;
    max-width: 900px;
    animation: fadeInUp 0.8s forwards;
}

/* Results Section */
.results-section {
    display: none;
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
    /* Un poco más ancho para PC */
    animation: fadeInUp 0.8s forwards;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.score-square {
    min-width: 70px;
    /* Más pequeño según pedido */
    height: 70px;
    background: var(--accent-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    /* Ajustado al tamaño */
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(255, 157, 0, 0.2);
}

.summary-wrapper {
    flex: 1;
}

.score-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    font-weight: 700;
    opacity: 0.9;
}

.feedback-quote {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
}

.analysis-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    /* Asegura ancho completo */
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 157, 0, 0.3);
}

h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

#full-feedback {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
}

#full-feedback p {
    margin-bottom: 1.2rem;
}

#post-processing-list {
    padding-left: 1.5rem;
    color: var(--text-dim);
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dos columnas en PC */
    gap: 1rem;
}

#post-processing-list li {
    margin-bottom: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    list-style: none;
    border: 1px solid transparent;
}

#post-processing-list li:before {
    content: "→";
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 157, 0, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 157, 0, 0.2);
}

.instagram-card {
    border-color: rgba(225, 48, 108, 0.3);
    /* Color sutil de Instagram */
}

.instagram-card h3 {
    border-left-color: #E1306C;
    color: #E1306C;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    text-align: center;
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.credit {
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .results-section {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .results-header {
        flex-direction: row;
        /* Mantener horizontal si cabe */
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .score-square {
        min-width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .feedback-quote {
        font-size: 1rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    #post-processing-list {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .upload-card {
        padding: 1.5rem;
    }

    .drop-zone {
        padding: 2.5rem 1rem;
    }

    .result-card {
        padding: 1.5rem;
    }
}