/* ===== VARIABLES Y RESET ===== */
:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --success: #27ae60;
    --error: #e74c3c;
    --light: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
    --dark: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe4c9 100%);
    min-height: 100vh;
    color: var(--secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #c0392b);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-logout {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-valorar {
    background: var(--success);
    color: var(--white);
    padding: 10px 20px;
    flex: 1;
}

.btn-valorar:hover {
    background: #219a52;
}

.btn-comentarios {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    flex: 1;
}

.btn-comentarios:hover {
    background: var(--dark);
}

/* ===== MODAL COMENTARIOS ===== */
.modal-comentarios {
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
}

.lista-comentarios {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.comentario-item {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comentario-usuario {
    font-weight: 600;
    color: var(--secondary);
}

.comentario-nota {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comentario-texto {
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.comentario-vacio {
    color: var(--gray);
}

.comentario-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray);
}

.comentario-detalles span {
    background: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
}

.sin-comentarios {
    text-align: center;
    color: var(--gray);
    padding: 30px;
    font-style: italic;
}

/* ===== LANDING PAGE ===== */
.landing-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
}

/* ===== VERSION BADGE ANIMADO ===== */
.version-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 100;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-content {
    max-width: 500px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 3.5rem;
    color: var(--primary);
    font-weight: 800;
}

.tagline {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 30px;
}

.landing-buttons {
    display: flex;
    gap: 15px;
}

.landing-image {
    display: flex;
    align-items: center;
}

.bocadillo-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-card {
    background: var(--white);
    padding: 25px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.preview-card:nth-child(2) {
    transform: rotate(2deg) translateX(30px);
}

.preview-card:nth-child(3) {
    transform: rotate(-1deg) translateX(10px);
}

.preview-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.preview-emoji {
    font-size: 2.5rem;
}

.preview-nota {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
}

/* ===== AUTH PAGES ===== */
.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.back-link {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.auth-header h1 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* ===== SELECT ===== */
.form-select {
    padding: 14px 16px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #e0e5e8;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label span {
    color: var(--dark);
    font-size: 0.9rem;
}

.checkbox-label span i {
    margin-right: 8px;
    color: var(--primary);
}

.checkbox-label:has(input:checked) {
    background: #fff5eb;
    border: 2px solid var(--primary);
}

.checkbox-label:has(input:checked) span {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== ALERTAS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fdeaea;
    color: var(--error);
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: var(--success);
    border: 1px solid #c3e6cb;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    font-size: 2rem;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting {
    color: var(--light);
    font-weight: 500;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.nav-link i {
    font-size: 1rem;
}

/* ===== DASHBOARD ===== */
.dashboard {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== FILTRO POR AÑOS ===== */
.filtro-anios {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filtro-label {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.filtro-label i {
    margin-right: 5px;
    color: var(--primary);
}

.anios-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.anio-badge {
    padding: 8px 16px;
    border: 2px solid var(--light);
    border-radius: 20px;
    background: var(--white);
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anio-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.anio-badge.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.anio-badge.anio-actual:not(.active) {
    border-color: var(--accent);
    background: rgba(243, 156, 18, 0.1);
}

.anio-badge.anio-actual:not(.active)::after {
    content: ' •';
    color: var(--accent);
}

/* ===== RANKING ===== */
.ranking-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.ranking-titulo {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-titulo i {
    color: var(--accent);
}

.sin-datos {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 40px;
}

/* Podio */
.podio {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.podio-item {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    width: 280px;
    position: relative;
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

.podio-item:hover {
    transform: translateY(-5px);
}

.podio-oro {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fffef0, #fff8dc);
    order: 0;
}

.podio-plata {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #fafafa, #e8e8e8);
    order: 1;
}

.podio-bronce {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #fdf5e6, #f5e6d3);
    order: 2;
}

.podio-medalla {
    font-size: 3rem;
    margin-bottom: 10px;
}

.podio-posicion {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray);
}

.podio-imagen {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.podio-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
}

.podio-nombre {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.podio-nota {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.podio-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}

.podio-info span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.podio-info i {
    color: var(--primary);
}

.ranking-anio {
    margin-top: 20px;
}

/* Podio Creadores */
.podio-creador .podio-avatar {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.podio-creador.podio-oro .podio-avatar {
    color: #ffd700;
}

.podio-creador.podio-plata .podio-avatar {
    color: #a0a0a0;
}

.podio-creador.podio-bronce .podio-avatar {
    color: #cd7f32;
}

.podio-creador .podio-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.podio-creador.podio-oro .podio-avatar-img {
    border-color: #ffd700;
}

.podio-creador.podio-plata .podio-avatar-img {
    border-color: #c0c0c0;
}

.podio-creador.podio-bronce .podio-avatar-img {
    border-color: #cd7f32;
}

/* ===== PERFIL ===== */
.perfil-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.perfil-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.perfil-avatar-section {
    text-align: center;
    width: 280px;
}

.perfil-datos-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.perfil-section-titulo {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.perfil-section-titulo i {
    color: var(--primary);
}

/* Avatar */
.perfil-avatar-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.perfil-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--gray);
    font-size: 5rem;
}

.perfil-avatar-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.perfil-avatar-hint {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Campos */
.perfil-campo {
    margin-bottom: 20px;
}

.perfil-campo label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.perfil-campo label i {
    color: var(--primary);
    margin-right: 5px;
}

.perfil-campo-valor {
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    color: var(--secondary);
}

.perfil-campo-readonly {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perfil-campo-hint {
    font-size: 0.8rem;
    color: var(--gray);
}

.perfil-campo-hint i {
    color: var(--gray);
    margin-right: 3px;
}

.perfil-campo-editable {
    display: flex;
    gap: 10px;
}

.perfil-campo-editable input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.perfil-campo-editable input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--error);
}

/* ===== MODAL CONFIRMAR ELIMINACION ===== */
.modal-confirmar {
    max-width: 380px;
    text-align: center;
}

.confirmar-icono {
    font-size: 3.5rem;
    color: var(--error);
    margin-bottom: 15px;
}

.confirmar-texto {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.confirmar-aviso {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.confirmar-botones {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmar-botones .btn {
    flex: 1;
    max-width: 140px;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--secondary);
    text-align: center;
}

/* ===== GRID DE BOCADILLOS ===== */
.bocadillos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.bocadillo-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bocadillo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== CARD HEADER ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header .badges-top {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header .acciones-creador {
    position: static;
    display: flex;
    gap: 5px;
}

/* ===== CARD BODY - DOS COLUMNAS ===== */
.card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.card-left {
    display: flex;
    flex-direction: column;
}

.card-right {
    display: flex;
    flex-direction: column;
}

.bocadillo-emoji {
    font-size: 4rem;
    text-align: center;
    padding: 30px 0;
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.bocadillo-nombre {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 8px;
    font-weight: 700;
}

.bocadillo-ingredientes {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.bocadillo-ingredientes i {
    margin-right: 5px;
    color: var(--primary);
}

.extra-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.extra-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* ===== DIFICULTAD ===== */
.bocadillo-dificultad {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.extras-iconos {
    display: flex;
    gap: 5px;
    margin-right: 5px;
}

.extras-iconos:empty {
    display: none;
}

.dificultad-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-left: auto;
}

.dificultad-label i {
    color: var(--accent);
    margin-right: 5px;
}

.dificultad-valor {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== TEXTO CONTEXTO ===== */
.bocadillo-contexto {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef9f3, #fff5eb);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.8rem;
    color: var(--dark);
    line-height: 1.5;
    font-style: italic;
}

/* ===== TIPO BADGE ===== */
.tipo-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tipo-badge i {
    margin-right: 4px;
}

.tipo-comprado {
    background: var(--light);
    color: var(--dark);
}

.tipo-artesanal {
    background: linear-gradient(135deg, var(--accent), #e67e22);
    color: var(--white);
}

/* ===== CARD FOOTER ===== */
.card-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light);
}

/* ===== VALORACION GENERAL ===== */
.valoracion-general {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 25px 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    color: var(--white);
}

.nota-grande {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.num-valoraciones {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.7rem;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
}

/* ===== BARRAS DE VALORACION MEDIA ===== */
.valoraciones-medias {
    margin-bottom: 20px;
}

.barra-aspecto {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.aspecto-label {
    font-size: 0.8rem;
    color: var(--dark);
    width: 90px;
    flex-shrink: 0;
}

.barra-container {
    flex: 1;
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
}

.barra-progreso {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.aspecto-valor {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    width: 30px;
    text-align: right;
}

/* ===== FORMULARIO VALORACION EN MODAL ===== */
.input-aspecto {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.input-aspecto label {
    font-size: 0.85rem;
    color: var(--dark);
    width: 100px;
    flex-shrink: 0;
    font-weight: 500;
}

.range-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    width: 25px;
    text-align: center;
}

/* ===== BADGES SUPERIORES ===== */
.badges-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mi-valoracion-badge {
    background: linear-gradient(135deg, var(--success), #219a52);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.creador-badge {
    background: var(--light);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.creador-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.creador-avatar-icon {
    font-size: 1.1rem;
    color: var(--gray);
}

.fecha-badge {
    background: var(--light);
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

.fecha-badge i {
    margin-right: 3px;
}

/* ===== BOTONES ACCIONES CREADOR ===== */
.acciones-creador {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.eliminar-form-inline {
    display: inline;
}

.btn-eliminar-top,
.btn-editar-top {
    background: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-eliminar-top {
    color: var(--error);
}

.btn-editar-top {
    color: var(--primary);
}

.btn-eliminar-top:hover {
    background: var(--error);
    color: var(--white);
}

.btn-editar-top:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== GALERIA DE IMAGENES ===== */
.bocadillo-galeria {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--light);
}

.galeria-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-img.active {
    opacity: 1;
}

.galeria-controles {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 20px;
}

.galeria-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.galeria-btn:hover {
    color: var(--primary);
}

.galeria-contador {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== INPUT FILE ===== */
.input-file-wrapper {
    position: relative;
    width: 100%;
}

.input-file {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.input-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 15px;
    border: 2px dashed var(--gray);
    border-radius: var(--radius-sm);
    background: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.input-file-wrapper:hover .input-file-label,
.input-file:focus + .input-file-label {
    border-color: var(--primary);
    background: #fff5eb;
}

.input-file-label i {
    font-size: 2rem;
    color: var(--primary);
}

.input-file-label span {
    color: var(--dark);
    font-size: 0.9rem;
}

.input-file-label .btn-elegir {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.input-file-wrapper.has-files .input-file-label {
    border-color: var(--success);
    background: #d4edda;
}

.input-file-wrapper.has-files .input-file-label i {
    color: var(--success);
}

.input-file-wrapper.has-files .input-file-label .btn-elegir {
    background: linear-gradient(135deg, var(--success), #219a52);
}

.input-file-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px dashed var(--gray);
    border-radius: var(--radius-sm);
    background: var(--light);
    opacity: 0.6;
    text-align: center;
}

.input-file-disabled i {
    font-size: 1.5rem;
    color: var(--gray);
}

.input-file-disabled span {
    color: var(--gray);
    font-size: 0.85rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 5px;
}

/* ===== MODAL DOS COLUMNAS ===== */
.modal-dos-columnas {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.form-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-columna-izq,
.form-columna-der {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-footer {
    grid-column: 1 / -1;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-dos-columnas {
        max-width: 95%;
    }

    .form-dos-columnas {
        grid-template-columns: 1fr;
    }
}

/* ===== IMAGENES EN EDICION ===== */
.imagenes-actuales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.imagen-editar-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--light);
}

.imagen-editar-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.checkbox-eliminar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    background: var(--light);
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--gray);
    transition: all 0.2s ease;
}

.checkbox-eliminar:hover {
    background: #fee;
    color: var(--error);
}

.checkbox-eliminar input {
    display: none;
}

.checkbox-eliminar input:checked + span {
    color: var(--error);
    font-weight: 600;
}

.checkbox-eliminar input:checked ~ span,
.imagen-editar-item:has(input:checked) {
    background: #fee;
}

.imagen-editar-item:has(input:checked) img {
    opacity: 0.4;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--primary);
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-controles {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--primary);
}

.lightbox-contador {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.galeria-img {
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer .version {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 40px;
    }

    .landing-buttons {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .preview-card {
        transform: none !important;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-user {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard {
        padding: 20px;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .bocadillos-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

    .card-left {
        order: 1;
    }

    .card-right {
        order: 2;
    }

    .nota-grande {
        font-size: 2.5rem;
    }

    .card-footer {
        flex-direction: column;
    }

    .auth-card {
        padding: 25px;
    }
}
