.recurso-individual {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.recurso-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.recurso-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.recurso-header-content {
    position: relative;
    z-index: 2;
}

.recurso-titulo {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recurso-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 1.1em;
    opacity: 0.9;
}

.recurso-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recurso-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.recurso-contenido {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recurso-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recurso-imagen-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recurso-imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recurso-imagen-generica {
    width: 120px;
    height: 120px;
    opacity: 0.3;
}

.recurso-stats {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recurso-stats h3 {
    color: #4a5568;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.valoracion-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.estrellas-grandes {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.estrella-grande {
    font-size: 24px;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.estrella-grande.vacia {
    color: #e2e8f0;
}

.estrella-grande:hover {
    transform: scale(1.1);
}

.valoracion-info {
    font-size: 1.1em;
    color: #4a5568;
    font-weight: 600;
}

.valoracion-detalle {
    font-size: 0.9em;
    color: #718096;
    margin-top: 5px;
}

.btn-valorar {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-valorar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.recurso-accion {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.btn-ver-recurso {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-ver-recurso:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.url-recurso {
    font-size: 0.9em;
    color: #718096;
    word-break: break-all;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.recurso-descripcion {
    font-size: 1.1em;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 30px;
}

.recurso-detalles {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.recurso-detalles h3 {
    color: #4a5568;
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.detalle-grupo {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.detalle-titulo {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1em;
}

.detalle-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-detalle {
    background: white;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.tag-detalle.etapa {
    background: #e6fffa;
    color: #047857;
    border-color: #10b981;
}

.tag-detalle.tipo {
    background: #fef7e0;
    color: #92400e;
    border-color: #f59e0b;
}

.tag-detalle.uso {
    background: #ede9fe;
    color: #6b46c1;
    border-color: #8b5cf6;
}

.mensaje-valoracion {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.stats-label {
    color: #718096;
    font-size: 0.9em;
}

.stats-value {
    color: #4a5568;
    font-weight: 600;
}

.recurso-compartir {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

.btn-compartir {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-compartir:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 178, 172, 0.3);
}

.compartir-opciones {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.compartir-opciones.visible {
    display: flex;
}

.compartir-opcion {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    color: #4a5568;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.compartir-opcion:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

a.compartir-opcion[data-red="twitter"]:hover {
    background: #e8f5fd;
    border-color: #1da1f2;
    color: #1da1f2;
}

a.compartir-opcion[data-red="facebook"]:hover {
    background: #e8f0fe;
    border-color: #1877f2;
    color: #1877f2;
}

a.compartir-opcion[data-red="whatsapp"]:hover {
    background: #e7f9e7;
    border-color: #25d366;
    color: #128c7e;
}

a.compartir-opcion[data-red="email"]:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .recurso-main {
        grid-template-columns: 1fr;
    }
    
    .recurso-header {
        padding: 25px;
    }
    
    .recurso-titulo {
        font-size: 2em;
    }
    
    .detalles-grid {
        grid-template-columns: 1fr;
    }
}

.recurso-editar {
    margin-bottom: 10px;
}

.btn-editar-recurso {
    display: block;
    text-align: center;
    background: #f59e0b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-editar-recurso:hover {
    background: #d97706;
}
